gnome-web-photo-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. %define build_vine7 0
  2. %if "%{?_dist_release}" == "vl7"
  3. %define build_vine7 1
  4. %endif
  5. Summary: HTML pages thumbnailer
  6. Summary(ja): HTML ページのサムネール作成ツール
  7. Name: gnome-web-photo
  8. Version: 0.10.6
  9. Release: 1%{?_dist_release}
  10. License: LGPLv2+
  11. Group: Applications/Internet
  12. URL: http://ftp.gnome.org/pub/GNOME/sources/gnome-web-photo/%{version}/
  13. Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-web-photo/%{version}/%{name}-%{version}.tar.xz
  14. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  15. %if %{build_vine7}
  16. BuildRequires: gtk3-devel >= 2.14.0
  17. BuildRequires: WebKit3-gtk-devel >= 1.1.23
  18. %else
  19. Requires(post): GConf2
  20. Requires(preun):GConf2
  21. BuildRequires: gtk2-devel >= 2.14.0
  22. BuildRequires: GConf2-devel
  23. BuildRequires: WebKit-gtk-devel >= 1.1.23
  24. %endif
  25. BuildRequires: gettext intltool
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: kazutaka
  29. %description
  30. gnome-web-photo contains a thumbnailer that will be used by
  31. GNOME applications, including the file manager, to generate
  32. screenshots of web pages.
  33. %prep
  34. %setup -q
  35. %build
  36. %if %{build_vine7}
  37. %configure --with-gtk=3.0
  38. %else
  39. %configure --with-gtk=2.0
  40. %endif
  41. %{__make} %{?_smp_mflags}
  42. %install
  43. %{__rm} -rf $RPM_BUILD_ROOT
  44. %if %{build_vine7}
  45. %{__make} DESTDIR=$RPM_BUILD_ROOT install
  46. %else
  47. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  48. %{__make} DESTDIR=$RPM_BUILD_ROOT install
  49. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  50. %{__mv} $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/schemas/thumbnailer.schemas \
  51. $RPM_BUILD_ROOT/%{_sysconfdir}/gconf/schemas/gnome-web-photo.schemas
  52. %endif
  53. %find_lang %{name}
  54. %if %{build_vine7}
  55. %post -p /sbin/ldconfig
  56. %postun -p /sbin/ldconfig
  57. %else
  58. %post
  59. /sbin/ldconfig
  60. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  61. gconftool-2 --makefile-install-rule \
  62. %{_sysconfdir}/gconf/schemas/gnome-web-photo.schemas >& /dev/null
  63. %pre
  64. if [ "$1" -gt 1 ]; then
  65. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  66. gconftool-2 --makefile-uninstall-rule \
  67. %{_sysconfdir}/gconf/schemas/gnome-web-photo.schemas \
  68. >& /dev/null || :
  69. fi
  70. %preun
  71. if [ "$1" -eq 0 ]; then
  72. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  73. gconftool-2 --makefile-uninstall-rule \
  74. %{_sysconfdir}/gconf/schemas/gnome-web-photo.schemas >& /dev/null
  75. fi
  76. %postun -p /sbin/ldconfig
  77. %endif
  78. %clean
  79. %{__rm} -rf $RPM_BUILD_ROOT
  80. %files -f %{name}.lang
  81. %defattr(-,root,root,-)
  82. %doc ChangeLog AUTHORS README TODO COPYING.README
  83. %if !%{build_vine7}
  84. %{_sysconfdir}/gconf/schemas/gnome-web-photo.schemas
  85. %endif
  86. %{_bindir}/gnome-web-photo
  87. %{_bindir}/gnome-web-print
  88. %{_bindir}/gnome-web-thumbnail
  89. %{_datadir}/gnome-web-photo
  90. %if %{build_vine7}
  91. %{_datadir}/thumbnailers/gnome-web-photo.thumbnailer
  92. %endif
  93. %changelog
  94. * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.6-1
  95. - new upstream release
  96. * Sun Jan 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.5-1
  97. - new upstream release
  98. * Sat Apr 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-4
  99. - remove %%{gecko_version} macro and specify explicit minimum version
  100. * Sat Mar 06 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-3
  101. - rebuild with xulrunner-%{gecko_version}
  102. * Wed Jan 27 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-2
  103. - rebuild with xulrunner-%{gecko_version}
  104. - add Patch0 to fix xulrunner-1.9.2 build
  105. * Fri Jan 15 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-1
  106. - new upstream release
  107. - build with xulrunner-1.9.1.7 (gecko-libs)
  108. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8-1
  109. - initial build for Vine Linux based on fedora development
  110. * Fri Sep 11 2009 Jan Horak <jhorak@redhat.com> - 0.8-6
  111. - Rebuild against newer gecko
  112. * Thu Aug 06 2009 Jan Horak <jhorak@redhat.com> - 0.8-5
  113. - Rebuild against newer gecko
  114. * Tue Aug 04 2009 Jan Horak <jhorak@redhat.com> - 0.8-4
  115. - Rebuild against newer gecko
  116. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
  117. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  118. * Mon Jul 20 2009 Jan Horak <jhorak@redhat.com> - 0.8-2
  119. - Rebuild against newer gecko
  120. * Tue Jun 30 2009 Matthias Clasen <mclasen@redhat.com> - 0.8-1
  121. - Update to 0.8
  122. * Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 0.7-2
  123. - Rebuild against newer gecko
  124. * Mon Apr 13 2009 Matthias Clasen <mclasen@redhat.com> - 0.7-1
  125. - Update to 0.7
  126. * Tue Mar 24 2009 Jan Horak <jhorak@redhat.com> - 0.6-2
  127. - Fix for rebuild against newer gecko
  128. * Tue Mar 17 2009 Matthias Clasen <mclasen@redhat.com> - 0.6-1
  129. - Update to 0.6
  130. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-14
  131. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  132. * Tue Jan 06 2009 Christopher Aillon <caillon@redhat.com> - 0.3-13
  133. - Rebuild against newer gecko
  134. * Wed Nov 12 2008 Christopher Aillon <caillon@redhat.com> - 0.3-12
  135. - Rebuild against newer gecko
  136. * Wed Mar 12 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.3-11
  137. - Better xulrunner-1.9 patch which also works with very long pages
  138. * Fri Mar 7 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.3-10
  139. - Add patch to make it work with xulrunner 1.9
  140. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3-9
  141. - Autorebuild for GCC 4.3
  142. * Tue Nov 27 2007 Christopher Aillon <caillon@redhat.com> - 0.3-8
  143. - Rebuild against newer gecko
  144. * Fri Nov 23 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-7
  145. - Rebuilding against xulrunner will require a lot of porting,
  146. disable for now
  147. * Fri Nov 16 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-6
  148. - Try to rebuild with xulrunner
  149. * Thu Oct 25 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-5
  150. - Rebuild for new Gecko, tighten dependencies
  151. * Mon Sep 10 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-4
  152. - Fix license, as mentioned by Kevin Fenzi
  153. * Thu Sep 06 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-3
  154. - Update following Matthias Clasen's comments
  155. * Wed Sep 05 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-2
  156. - Update following Peter Gordon's comments
  157. * Tue Mar 20 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-1
  158. - First post!