gnome-web-photo-vl.spec 5.6 KB

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