fotoxx-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Summary: Digital Photo editor
  2. Summary(ja): デジタル写真編集ソフトウェア
  3. Name: fotoxx
  4. Version: 6.0
  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. BuildRequires: freeimage-devel
  15. Requires: exiv2
  16. Requires: printoxx
  17. Patch0: fotoxx-5.8.constchar.patch
  18. Patch1: fotoxx-dynamically-link.patch
  19. %description
  20. Fotoxx is a free open source Linux program for editing image files
  21. from a digital camera. The goal of fotoxx is to meet most image editing
  22. needs while remaining easy to use.
  23. %prep
  24. %setup -q -n %{name}
  25. rm libfreeimage.a
  26. %patch0 -p1 -b .constchar
  27. %patch1 -p1 -b .dynamic
  28. # To use our CFLAGS (exported)
  29. sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile
  30. %build
  31. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
  32. make %{?_smp_mflags} PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
  36. install -Dm 644 -p data/icons/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
  37. desktop-file-install --vendor="" \
  38. --mode 644 \
  39. --remove-category="Application" \
  40. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  41. %{SOURCE1}
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root,-)
  46. %doc doc/*
  47. %dir %{_datadir}/%{name}
  48. %{_bindir}/%{name}
  49. %{_datadir}/%{name}/icons/
  50. %{_datadir}/%{name}/locales/
  51. %{_datadir}/applications/%{name}.desktop
  52. %{_datadir}/pixmaps/%{name}.png
  53. %changelog
  54. * Thu Jun 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-1
  55. - initial build for Vine Linux
  56. * Wed Feb 25 2009 Dennis Gilmore <dennis@ausil.us> - 6.0-3
  57. - add patch to dynamically link to libfreeimage
  58. * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-2
  59. - Forgot patch
  60. * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-1
  61. - New version 6.0
  62. - Adjust Source0 url (inspired by Kevin Fenzi in fedora-devel-list: https://www.redhat.com/archives/fedora-devel-list/2009-February/msg01622.html ).
  63. * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 5.8-2
  64. - Add patch0 fotoxx-5.8.constchar.patch
  65. - Reformat spec with tabs, remove trailing spaces.
  66. * Sun Jan 4 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.8-1
  67. - Rebuild for 5.8
  68. * Mon Dec 1 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.7-1
  69. - Rebuild for 5.7
  70. * Sun Nov 16 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.6-1
  71. - Rebuild for 5.6
  72. * Tue Nov 4 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.5-1
  73. - Rebuild for 5.5
  74. * Thu Oct 9 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.4-1
  75. - Rebuild for 5.4
  76. * Thu Sep 18 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.3-1
  77. - Rebuild for 5.3
  78. * Sun Aug 31 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.2-1
  79. - Rebuild for 5.2
  80. * Sun Aug 24 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.1-1
  81. - Rebuild for 5.1
  82. * Fri Aug 8 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0.1-1
  83. - Rebuild for 5.0.1
  84. * Sat Aug 2 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0-1
  85. - Rebuild for 5.0
  86. * Tue Jul 22 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.9-1
  87. - Initial build