fotoxx-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. %define mapname fotoxx-maps
  2. %define mapver 1.1
  3. %define mapsrc %{mapname}-%{mapver}
  4. Summary: Digital Photo editor
  5. Summary(ja): デジタル写真編集ソフトウェア
  6. Name: fotoxx
  7. Version: 15.03.1
  8. Release: 2%{?_dist_release}
  9. Group: Applications/Multimedia
  10. License: GPLv3+
  11. URL: http://www.kornelix.com/fotoxx.html
  12. Source0: http://www.kornelix.com/uploads/1/3/0/3/13035936/%{name}-%{version}.tar.gz
  13. Source1: http://www.kornelix.com/uploads/1/3/0/3/13035936/%{mapsrc}.tar.gz
  14. Source2: %{name}.desktop
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: freeimage-devel
  18. BuildRequires: gtk3-devel
  19. BuildRequires: libtiff-devel
  20. BuildRequires: perl-Image-ExifTool
  21. BuildRequires: ufraw
  22. BuildRequires: xdg-utils
  23. BuildRequires: lcms2-devel
  24. Requires: dcraw
  25. Requires: ufraw
  26. Requires: perl-Image-ExifTool
  27. Requires: xdg-utils
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. %description
  31. Fotoxx is a free open source Linux program for editing image files
  32. from a digital camera. The goal of fotoxx is to meet most image editing
  33. needs while remaining easy to use.
  34. %prep
  35. %setup -q -a 1
  36. %build
  37. # This package's Makefile is bizarre
  38. # Misc. environment tweaks to let Makefile honor %%{optflags}
  39. make %{?_smp_mflags} PREFIX=%{_prefix} \
  40. CXXFLAGS="%{optflags}" \
  41. LDFLAGS="%{optflags}"
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
  45. install -Dm 644 -p icons/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
  46. pushd %{mapsrc}
  47. make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
  48. popd
  49. desktop-file-install \
  50. --vendor="" \
  51. --mode 644 \
  52. --remove-category="Application" \
  53. --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
  54. %{SOURCE2}
  55. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/appdata/
  56. install -m 644 appdata/%{name}.appdata.xml $RPM_BUILD_ROOT/%{_datadir}/appdata/%{name}.appdata.xml
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %posttrans
  60. update-desktop-database -q &> /dev/null ||:
  61. %postun
  62. if [ $1 -eq 0 ] ; then
  63. update-desktop-database -q &> /dev/null ||:
  64. fi
  65. %files
  66. %defattr(-,root,root,-)
  67. %doc doc/*
  68. %dir %{_datadir}/%{name}
  69. %dir %{_datadir}/%{mapname}
  70. %{_bindir}/%{name}
  71. %{_datadir}/%{name}/*
  72. %{_datadir}/%{mapname}/*
  73. %{_datadir}/appdata/%{name}.appdata.xml
  74. %{_datadir}/applications/%{name}.desktop
  75. %{_datadir}/pixmaps/%{name}.png
  76. %{_mandir}/man1/*
  77. %changelog
  78. * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 15.03.1-2
  79. - rebuild with gcc-5.4.0
  80. * Tue Mar 10 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 15.03.1-1
  81. - new upstream release including fotoxx-maps-1.1
  82. - updated desktop file (SOURCE2)
  83. - rebuilt with libtiff 4.0.3
  84. - added Vendor and Distribution tag
  85. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.1-1
  86. - updated to 10.11.1
  87. - built with new toolchains
  88. * Thu Jun 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-1
  89. - initial build for Vine Linux
  90. * Wed Feb 25 2009 Dennis Gilmore <dennis@ausil.us> - 6.0-3
  91. - add patch to dynamically link to libfreeimage
  92. * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-2
  93. - Forgot patch
  94. * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-1
  95. - New version 6.0
  96. - Adjust Source0 url (inspired by Kevin Fenzi in fedora-devel-list: https://www.redhat.com/archives/fedora-devel-list/2009-February/msg01622.html ).
  97. * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 5.8-2
  98. - Add patch0 fotoxx-5.8.constchar.patch
  99. - Reformat spec with tabs, remove trailing spaces.
  100. * Sun Jan 4 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.8-1
  101. - Rebuild for 5.8
  102. * Mon Dec 1 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.7-1
  103. - Rebuild for 5.7
  104. * Sun Nov 16 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.6-1
  105. - Rebuild for 5.6
  106. * Tue Nov 4 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.5-1
  107. - Rebuild for 5.5
  108. * Thu Oct 9 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.4-1
  109. - Rebuild for 5.4
  110. * Thu Sep 18 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.3-1
  111. - Rebuild for 5.3
  112. * Sun Aug 31 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.2-1
  113. - Rebuild for 5.2
  114. * Sun Aug 24 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.1-1
  115. - Rebuild for 5.1
  116. * Fri Aug 8 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0.1-1
  117. - Rebuild for 5.0.1
  118. * Sat Aug 2 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0-1
  119. - Rebuild for 5.0
  120. * Tue Jul 22 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.9-1
  121. - Initial build