printoxx-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Summary: Print image files
  2. Summary(ja): 画像ファイル印刷ソフトウエア
  3. Name: printoxx
  4. Version: 1.8.1
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Multimedia
  7. License: GPLv2
  8. URL: http://kornelix.squarespace.com/%{name}/
  9. Source0: http://kornelix.squarespace.com/storage/downloads/%{name}-%{version}.tar.gz
  10. Source1: %{name}.desktop
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: gtk2-devel
  13. BuildRequires: desktop-file-utils
  14. Requires: cups
  15. # Bugtracker not found. Patch e-mailed to maintainer.
  16. Patch0: printoxx-1.8.1.constchar.patch
  17. %description
  18. Printoxx is a free open source Linux program for printing one or more image
  19. files with a user-defined page layout. Images can be added to a layout page
  20. using the mouse to select and drop. Images can be moved around and resized
  21. using the mouse. Adding text (titles, notes) works the same way.
  22. Any available font can be used.
  23. %prep
  24. %setup -q -n %{name}
  25. %patch0 -p1 -b .constchar
  26. # To use our CFLAGS (exported)
  27. sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile
  28. %build
  29. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
  30. make %{?_smp_mflags} PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
  34. install -Dm 644 -p data/icons/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
  35. desktop-file-install --vendor="" \
  36. --mode 644 \
  37. --remove-category="Application" \
  38. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  39. %{SOURCE1}
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc doc/*
  45. %dir %{_datadir}/%{name}
  46. %{_bindir}/%{name}
  47. %{_datadir}/%{name}/%{name}.xtext
  48. %{_datadir}/%{name}/icons/
  49. %{_datadir}/%{name}/locales/
  50. %{_datadir}/applications/%{name}.desktop
  51. %{_datadir}/pixmaps/%{name}.png
  52. %changelog
  53. * Thu Jun 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.1-1
  54. - initial build for Vine Linux
  55. * Tue Feb 24 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 1.8.1-2
  56. - Step to version 1.8.1
  57. - Adjust Source0 url.
  58. - Reformat header of spec with tabs.
  59. - Add Patch0: printoxx-1.8.1.constchar.patch to build on gcc 4.4
  60. * Sun Jan 4 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.8-1
  61. - Rebuild for 1.8
  62. * Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.7-2
  63. - Include unowned /usr/share/printoxx/locales directory.
  64. * Mon Dec 1 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.7-1
  65. - Rebuild for 1.7
  66. * Mon Oct 13 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.6-4
  67. - Better management of documentation
  68. * Sun Oct 12 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.6-3
  69. - Desktop file ameliorations
  70. - Doc files are now reachable
  71. * Mon Oct 6 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.6-2
  72. - add escape char in prep section
  73. * Sun Oct 5 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.6-1
  74. - Rebuild for 1.6
  75. * Sat Sep 27 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.5-1
  76. - Rebuild for 1.5
  77. * Thu Sep 18 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.4-1
  78. - Rebuild for 1.4
  79. * Mon Sep 8 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.3.1-1
  80. - Rebuild for 1.3.1
  81. * Wed Sep 3 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.2-1
  82. - Rebuild for 1.2
  83. * Tue Sep 2 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.1-2
  84. - Added desktop file support
  85. * Mon Sep 1 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 1.1-1
  86. - Initital build