ristretto-vl.spec 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. # Review at https://bugzilla.redhat.com/show_bug.cgi?id=351531
  2. %global majorversion 0.8
  3. %global xfceversion 4.12.0
  4. Name: ristretto
  5. Version: 0.8.0
  6. Release: 2%{?_dist_release}
  7. Summary: Image-viewer for the Xfce desktop environment
  8. Summary(ja): Xfce デスクトップ環境向けの画像ビューア
  9. Summary(de): Bildbetrachter für die Xfce Desktop-Umgebung
  10. Group: Applications/Graphics
  11. License: GPLv2+
  12. URL: http://goodies.xfce.org/projects/applications/ristretto/
  13. Source0: http://archive.xfce.org/src/apps/%{name}/%{majorversion}/%{name}-%{version}.tar.bz2
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: dbus-glib-devel >= 0.34
  16. BuildRequires: gtk2-devel >= 2.20.0
  17. BuildRequires: libexo-devel >= 0.4.0
  18. BuildRequires: libexif-devel >= 0.6.0
  19. BuildRequires: libxfce4ui-devel >= %{xfceversion}
  20. BuildRequires: xfconf-devel >= %{xfceversion}
  21. BuildRequires: desktop-file-utils, gettext, intltool
  22. Requires: tumbler
  23. %description
  24. Ristretto is a fast and lightweight image-viewer for the Xfce desktop
  25. environment.
  26. %description -l ja
  27. Xfce デスクチップ環境向けの高速で軽量な画像ビューアです。
  28. %description -l de
  29. Ristretto ist ein schneller und leichtgewichtiger Bildbetrachter für die Xfce
  30. Desktop-Umgebung.
  31. %prep
  32. %setup -q
  33. %build
  34. %configure
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf %{buildroot}
  38. make install DESTDIR=%{buildroot} INSTALL='install -p'
  39. %find_lang %{name}
  40. desktop-file-install \
  41. --dir %{buildroot}%{_datadir}/applications \
  42. --add-mime-type=image/x-bmp \
  43. --add-mime-type=image/x-png \
  44. --add-mime-type=image/x-pcx \
  45. --add-mime-type=image/x-tga \
  46. --add-mime-type=image/xpm \
  47. --delete-original \
  48. %{buildroot}%{_datadir}/applications/%{name}.desktop
  49. %clean
  50. rm -rf %{buildroot}
  51. %post
  52. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  53. update-desktop-database &> /dev/null || :
  54. %postun
  55. if [ $1 -eq 0 ] ; then
  56. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  57. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  58. fi
  59. update-desktop-database &> /dev/null || :
  60. %posttrans
  61. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  62. %files -f %{name}.lang
  63. %defattr(-,root,root,-)
  64. %doc AUTHORS COPYING ChangeLog README
  65. %{_bindir}/%{name}
  66. %{_datadir}/appdata/%{name}.appdata.xml
  67. %{_datadir}/applications/*%{name}.desktop
  68. %{_datadir}/icons/hicolor/*/*/*
  69. %changelog
  70. * Sun Mar 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.8.0-2
  71. - fixed Group typo
  72. - added Japanese description
  73. * Sun Mar 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.8.0-1
  74. - Initial build for Vine Linux
  75. * Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.6.3-7
  76. - Rebuilt for Fedora 23 Change
  77. https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
  78. * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-6
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  80. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  82. * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-4
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  84. * Wed May 01 2013 Jon Ciesla <limburgher@gmail.com> - 0.6.3-3
  85. - Drop desktop vendor tag.
  86. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  88. * Tue Jan 01 2013 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.3-1
  89. - Update to 0.6.3 (#891037)
  90. * Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  92. * Sun Apr 29 2012 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0
  93. - Update to 0.6.0
  94. * Fri Apr 27 2012 Kevin Fenzi <kevin@scrye.com> - 0.3.7-1
  95. - Update to 0.3.7
  96. * Wed Apr 04 2012 Kevin Fenzi <kevin@scrye.com> - 0.3.6-2
  97. - Rebuild for Xfce 4.10
  98. * Tue Apr 03 2012 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.6-1
  99. - Update to 0.3.6
  100. - Add VCS key
  101. * Sat Mar 03 2012 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.5-1
  102. - Update to 0.3.5
  103. * Sat Jan 28 2012 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.4-1
  104. - Update to 0.3.4
  105. * Sat Jan 14 2012 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.2-1
  106. - Update to 0.3.2
  107. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  109. * Tue Nov 08 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.0-2
  110. - Require tumbler for thumbnail generation
  111. * Sun Nov 06 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.0-1
  112. - Update to 0.3.0
  113. * Sun Nov 06 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.3-1
  114. - Update to 0.2.3 (fixes #750657)
  115. * Sat Oct 29 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.2-1
  116. - Update to 0.2.2
  117. * Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
  118. - Rebuilt for glibc bug#747377
  119. * Sun Oct 23 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.1-1
  120. - Update to 0.2.1
  121. * Tue Oct 18 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0-1
  122. - Update to 0.2.0
  123. * Sun Oct 09 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.1-1
  124. - Update to 0.1.1
  125. - Drop DSO patch, fixed upstream
  126. * Thu Oct 06 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.0-1
  127. - Update to 0.1.0
  128. * Wed Aug 16 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.93-2
  129. - Fix two major memory leaks (bugzilla.xfce.org #7882)
  130. * Thu Mar 03 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.93-1
  131. - Update to 0.0.93 (fixes #542141 and #679808)
  132. - No longer require xfce4-doc
  133. - Run update-desktop-database in %%post and %%postun
  134. * Wed Feb 09 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.91-2
  135. - BR xfconf-devel to fix build after Xfce 4.8 update
  136. * Tue Jul 13 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.91-1
  137. - Update to 0.0.91 (Development release for next major version)
  138. - Require xfce4-doc for directory ownership of the nex docs
  139. * Wed Feb 17 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.22-3
  140. - Add patch to fix DSO linking (#565114)
  141. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.22-2
  142. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  143. * Fri May 15 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.22-1
  144. - Update to 0.0.22
  145. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.21-2
  146. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  147. * Thu Nov 27 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.21-1
  148. - Update to 0.0.21
  149. - Remove marshaller fix, included upstream now
  150. * Tue Jul 01 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.20-2
  151. - Add patch to fix x86_64 bit bug caused by a wrong marshaller (#351531)
  152. * Sat May 24 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.20-1
  153. - Update to 0.0.20
  154. * Sat May 10 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.19-1
  155. - Update to 0.0.19
  156. * Sat Apr 05 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.18-1
  157. - Update to 0.0.18
  158. * Wed Feb 17 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.17-1
  159. - Update to 0.0.17
  160. * Wed Jan 30 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.16-1
  161. - Update to 0.0.16
  162. * Mon Dec 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.15-1
  163. - Update to 0.0.15
  164. * Mon Dec 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.14-1
  165. - Update to 0.0.14
  166. * Mon Nov 26 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.13-1
  167. - Update to 0.0.13
  168. * Wed Nov 21 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.12-2
  169. - Try manual_adjustments.patch
  170. * Tue Nov 20 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.12-1
  171. - Update to 0.0.12
  172. * Wed Nov 07 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.11-1
  173. - Update to 0.0.11
  174. - BuildRequire dbus-glib-devel
  175. * Sat Nov 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.10-1
  176. - Update to 0.0.10
  177. - Add more mimetypes: tiff, x-bmp, x-png, x-pcx, x-tga and xpm
  178. - Correct build requirements
  179. * Fri Oct 19 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.9-1
  180. - Update to 0.0.9
  181. * Sun Oct 14 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.8-1
  182. - Update to 0.0.8
  183. * Sun Sep 30 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.7-1
  184. - Update to 0.0.7
  185. * Sun Sep 09 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.4-1
  186. - Update to 0.0.4
  187. * Wed Sep 05 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.3-1
  188. - Initial RPM package