gthumb-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. %define gtk2_version 2.10.0
  2. %define glib2_version 2.10.0
  3. %define libxml_version 2.4.4
  4. %define libgnome_version 2.6.0
  5. %define libgnomeui_version 2.6.0
  6. %define libgnomecanvas_version 2.6.0
  7. %define libgnomevfs_version 2.6.0
  8. %define libglade_version 2.4.0
  9. %define libgnomeprint_version 2.6.0
  10. %define libgnomeprintui_version 2.6.0
  11. %define libbonobo_version 2.6.0
  12. %define libbonoboui_version 2.6.0
  13. %define libexif_version 0.6.13
  14. %define desktop_file_utils_version 0.3
  15. %define gnome_doc_utils_version 0.3.2
  16. Summary: Image viewer, editor, organizer
  17. Summary(ja): 画像閲覧、編集、管理ツール
  18. Name: gthumb
  19. Version: 2.10.12
  20. Release: 1%{?_dist_release}
  21. URL: http://gthumb.sourceforge.net/
  22. Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.10/%{name}-%{version}.tar.bz2
  23. License: GPL
  24. Group: Applications/Multimedia
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. BuildRequires: gtk2-devel >= %{gtk2_version}
  27. BuildRequires: glib2-devel >= %{glib2_version}
  28. BuildRequires: libgnome-devel >= %{libgnome_version}
  29. BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
  30. BuildRequires: libgnomecanvas-devel >= %{libgnomecanvas_version}
  31. BuildRequires: gnome-vfs2-devel >= %{libgnomevfs_version}
  32. BuildRequires: libxml2-devel >= %{libxml_version}
  33. BuildRequires: libglade2-devel >= %{libglade_version}
  34. BuildRequires: libgnomeprint-devel >= %{libgnomeprint_version}
  35. BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
  36. BuildRequires: libbonobo-devel >= %{libbonobo_version}
  37. BuildRequires: libbonoboui-devel >= %{libbonoboui_version}
  38. BuildRequires: libpng-devel, libjpeg-devel, libtiff-devel
  39. BuildRequires: libexif-devel >= %{libexif_version}
  40. BuildRequires: gphoto2-devel
  41. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  42. BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
  43. BuildRequires: libSM-devel
  44. #BuildRequires: automake17, autoconf, libtool
  45. Requires(post): scrollkeeper, GConf2
  46. #Requires(post): desktop-file-utils >= %{desktop_file_utils_version}
  47. Requires(preun): GConf2
  48. Requires(postun): scrollkeeper
  49. #Requires(postun): desktop-file-utils >= %{desktop_file_utils_version}
  50. %description
  51. gthumb is an application for viewing, editing, and organizing
  52. collections of images.
  53. %description -l ja
  54. gthumb は画像ファイル集の閲覧、編集、管理をするためのアプリケーションです。
  55. %prep
  56. %setup -q
  57. %build
  58. %configure --disable-scrollkeeper --disable-schemas-install
  59. make
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. #export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  63. %makeinstall
  64. #unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  65. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.*a
  67. rm -f $RPM_BUILD_ROOT%{_libdir}/gthumb/modules/lib*.*a
  68. rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  69. #desktop-file-install --vendor gnome --delete-original \
  70. # --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  71. # $RPM_BUILD_ROOT%{_datadir}/applications/*
  72. %find_lang %{name}
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT
  75. %post
  76. scrollkeeper-update -q ||:
  77. update-desktop-database -q ||:
  78. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  79. SCHEMAS="gthumb.schemas"
  80. for S in $SCHEMAS; do
  81. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null ||:
  82. done
  83. %preun
  84. if [ "$1" -gt 0 ] ; then
  85. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  86. SCHEMAS="gthumb.schemas"
  87. for S in $SCHEMAS; do
  88. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null ||:
  89. done
  90. fi
  91. %postun
  92. scrollkeeper-update -q ||:
  93. update-desktop-database -q ||:
  94. %files -f %{name}.lang
  95. %defattr(-,root,root)
  96. %{_bindir}/*
  97. %{_sysconfdir}/gconf/schemas/*
  98. %{_libdir}/lib*.so
  99. %{_libdir}/bonobo/servers/*.server
  100. %{_libdir}/gthumb/modules/*
  101. %{_datadir}/applications/*.desktop
  102. %{_datadir}/gnome/help/gthumb
  103. %{_datadir}/gthumb
  104. %{_datadir}/icons/*
  105. %{_datadir}/omf/gthumb
  106. %{_mandir}/man1/*
  107. %changelog
  108. * Tue May 11 2010 Yoji TOYODA <bsyamato@sea.plala.ro.jp> 2.10.12-1
  109. - new upstream release
  110. * Sun Jan 17 2010 Yoji TOYODA <bsyamato@sea.plala.ro.jp> 2.10.11-1
  111. - new upstream release
  112. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.10.8-1vl5
  113. - applied new versioning policy, spec in utf-8
  114. * Sun Jan 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.8-0vl1
  115. - new upstream release
  116. * Sun Aug 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.5-0vl1
  117. - new upstream release
  118. * Sat Dec 23 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.6.9-0vl3
  119. - fix dependencies:
  120. - add BuildRequires:
  121. - libgnome{,ui}-devel
  122. - libgnomecanvas-devel
  123. - gnome-vfs2-devel
  124. - libxml2-devel
  125. - libglade2-devel
  126. - libgnomeprint{,ui}-devel instead of libgnomeprint{,ui}
  127. - libbonobo{,ui}-devel
  128. - libpng-devel, libjpeg-devel, libtiff-devel, libexif-devel
  129. - drop BuildRequires: nautilus
  130. - drop Requires: scrollkeeper
  131. - add Requires(post): scrollkeeper, GConf2, desktop-file-utils
  132. - add Requires(pre): GConf2
  133. - add Requires(postun): scrollkeeper, desktop-file-utils
  134. - fix scripts:
  135. - run scrollkeeper-update with '-q' at %%post,postun
  136. - run gconftool-2 --makefile-uninstall-rule at %%preun
  137. - run destop-database-update -q at %%post,postun
  138. * Thu Aug 31 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.6.9-0vl2
  139. - rebuilt without gphoto2-devel
  140. * Thu Mar 09 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.9-0vl1
  141. - new upstream release
  142. * Thu Oct 06 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.8-0vl1
  143. - new upstream release
  144. * Mon Nov 22 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.1-0vl1
  145. - new upstream release
  146. * Sun Jul 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-0vl1
  147. - new upstream release
  148. * Thu Apr 1 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1-0vl1
  149. - new upstream release
  150. * Fri Dec 26 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  151. - new upstream release
  152. * Tue Jan 28 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.1-0vl1
  153. - new upstream release
  154. * Tue Jan 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.0-0vl1
  155. - new upstream release
  156. - build for Vine Linux
  157. - add patch0 to use libgnomeprint-2.2
  158. * Tue Jan 7 2003 Havoc Pennington <hp@redhat.com>
  159. - 1.108
  160. - disable schema install during makeinstall
  161. * Thu Jan 02 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  162. - require scrollkeeper
  163. * Mon Dec 16 2002 Havoc Pennington <hp@redhat.com>
  164. - rebuild
  165. * Thu Dec 12 2002 Havoc Pennington <hp@redhat.com>
  166. - Initial build.