gnome-web-photo-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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: 2%{?_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 Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.6-2
  95. - rebuild with VineSeed environment
  96. * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.6-1
  97. - new upstream release
  98. * Sun Jan 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.5-1
  99. - new upstream release
  100. * Sat Apr 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-4
  101. - remove %%{gecko_version} macro and specify explicit minimum version
  102. * Sat Mar 06 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-3
  103. - rebuild with xulrunner-%{gecko_version}
  104. * Wed Jan 27 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-2
  105. - rebuild with xulrunner-%{gecko_version}
  106. - add Patch0 to fix xulrunner-1.9.2 build
  107. * Fri Jan 15 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9-1
  108. - new upstream release
  109. - build with xulrunner-1.9.1.7 (gecko-libs)
  110. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8-1
  111. - initial build for Vine Linux based on fedora development
  112. * Fri Sep 11 2009 Jan Horak <jhorak@redhat.com> - 0.8-6
  113. - Rebuild against newer gecko
  114. * Thu Aug 06 2009 Jan Horak <jhorak@redhat.com> - 0.8-5
  115. - Rebuild against newer gecko
  116. * Tue Aug 04 2009 Jan Horak <jhorak@redhat.com> - 0.8-4
  117. - Rebuild against newer gecko
  118. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
  119. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  120. * Mon Jul 20 2009 Jan Horak <jhorak@redhat.com> - 0.8-2
  121. - Rebuild against newer gecko
  122. * Tue Jun 30 2009 Matthias Clasen <mclasen@redhat.com> - 0.8-1
  123. - Update to 0.8
  124. * Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 0.7-2
  125. - Rebuild against newer gecko
  126. * Mon Apr 13 2009 Matthias Clasen <mclasen@redhat.com> - 0.7-1
  127. - Update to 0.7
  128. * Tue Mar 24 2009 Jan Horak <jhorak@redhat.com> - 0.6-2
  129. - Fix for rebuild against newer gecko
  130. * Tue Mar 17 2009 Matthias Clasen <mclasen@redhat.com> - 0.6-1
  131. - Update to 0.6
  132. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-14
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  134. * Tue Jan 06 2009 Christopher Aillon <caillon@redhat.com> - 0.3-13
  135. - Rebuild against newer gecko
  136. * Wed Nov 12 2008 Christopher Aillon <caillon@redhat.com> - 0.3-12
  137. - Rebuild against newer gecko
  138. * Wed Mar 12 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.3-11
  139. - Better xulrunner-1.9 patch which also works with very long pages
  140. * Fri Mar 7 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.3-10
  141. - Add patch to make it work with xulrunner 1.9
  142. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3-9
  143. - Autorebuild for GCC 4.3
  144. * Tue Nov 27 2007 Christopher Aillon <caillon@redhat.com> - 0.3-8
  145. - Rebuild against newer gecko
  146. * Fri Nov 23 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-7
  147. - Rebuilding against xulrunner will require a lot of porting,
  148. disable for now
  149. * Fri Nov 16 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-6
  150. - Try to rebuild with xulrunner
  151. * Thu Oct 25 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-5
  152. - Rebuild for new Gecko, tighten dependencies
  153. * Mon Sep 10 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-4
  154. - Fix license, as mentioned by Kevin Fenzi
  155. * Thu Sep 06 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-3
  156. - Update following Matthias Clasen's comments
  157. * Wed Sep 05 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-2
  158. - Update following Peter Gordon's comments
  159. * Tue Mar 20 2007 - Bastien Nocera <bnocera@redhat.com> - 0.3-1
  160. - First post!