gthumb-vl.spec 7.5 KB

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