file-roller-vl.spec 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. %define glib2_version 2.24.0
  2. %define gtk2_version 2.20.0
  3. %define gconf2_version 2.28.1
  4. %define nautilus_version 2.30.0
  5. %define desktop_file_utils_version 0.9
  6. %define gnome_doc_utils_version 0.3.2
  7. Summary: File Roller is a tool for viewing and creating archives.
  8. Summary(ja): File Roller - アーカイブの表示・作成ツール
  9. Name: file-roller
  10. Version: 2.30.2
  11. Release: 2%{?_dist_release}
  12. License: GPL
  13. Group: Applications/Archiving
  14. Source0: http://ftp.gnome.org/pub/GNOME/sources/file-roller/2.30/%{name}-%{version}.tar.bz2
  15. Patch: file-roller-dlg-update.patch
  16. URL: http://ftp.gnome.org/pub/gnome/sources/file-roller/
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Requires(post,postun): scrollkeeper >= 0.3.11
  19. Requires(post,postun): desktop-file-utils >= %{desktop_file_utils_version}
  20. Requires(post,pre,preun): GConf2
  21. BuildRequires: glib2-devel >= %{glib2_version}
  22. BuildRequires: gtk2-devel >= %{gtk2_version}
  23. BuildRequires: GConf2-devel >= %{gconf2_version}
  24. BuildRequires: nautilus >= %{nautilus_version}
  25. BuildRequires: nautilus-devel >= %{nautilus_version}
  26. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  27. BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
  28. BuildRequires: libSM-devel
  29. BuildRequires: docbook-dtds
  30. %description
  31. File Roller is an application for creating and viewing archives files,
  32. such as tar files.
  33. %description -l ja
  34. File Roller は tar ファイルのようなアーカイブの表示や作成をするための
  35. アプリケーションです。
  36. %prep
  37. %setup -q
  38. %patch -p1
  39. # regenerate to fix path
  40. rm -f src/fr-enum-types.c
  41. %build
  42. %configure --disable-scrollkeeper
  43. export tagname=CC
  44. make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  48. export tagname=CC
  49. make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool
  50. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  51. # temporary hack to add missing semicolon, fix sent upstream
  52. #perl -pi -e 's/Categories=Application;Utility$/Categories=Application;Utility;/' $RPM_BUILD_ROOT%{_datadir}/applications/*
  53. desktop-file-install --vendor gnome --delete-original \
  54. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  55. --add-only-show-in GNOME \
  56. $RPM_BUILD_ROOT%{_datadir}/applications/*
  57. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  58. rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/lib*.*a
  59. rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  60. %find_lang %{name} --all-name --with-gnome
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post
  64. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  65. scrollkeeper-update > /dev/null 2>&1 || :
  66. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  67. gconftool-2 --makefile-install-rule \
  68. %{_sysconfdir}/gconf/schemas/file-roller.schemas > /dev/null
  69. touch --no-create %{_datadir}/icons/hicolor
  70. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  71. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  72. fi
  73. %pre
  74. if [ "$1" -gt 1 ]; then
  75. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  76. gconftool-2 --makefile-uninstall-rule \
  77. %{_sysconfdir}/gconf/schemas/file-roller.schemas > /dev/null
  78. fi
  79. %preun
  80. if [ "$1" -eq 0 ]; then
  81. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  82. gconftool-2 --makefile-uninstall-rule \
  83. %{_sysconfdir}/gconf/schemas/file-roller.schemas > /dev/null
  84. fi
  85. %postun
  86. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  87. scrollkeeper-update > /dev/null 2>&1 || :
  88. touch --no-create %{_datadir}/icons/hicolor
  89. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  90. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  91. fi
  92. %files -f %{name}.lang
  93. %defattr(-, root, root)
  94. %doc README COPYING ChangeLog NEWS AUTHORS
  95. %{_sysconfdir}/gconf/schemas/*.schemas
  96. %{_bindir}/*
  97. %{_datadir}/applications/*
  98. %{_datadir}/file-roller
  99. %{_datadir}/icons/hicolor/*
  100. %{_libexecdir}/file-roller
  101. %{_libdir}/nautilus/extensions-2.0/libnautilus-fileroller.so
  102. %changelog
  103. * Sat Aug 21 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.30.2-2
  104. - add patch from https://bugzilla.gnome.org/show_bug.cgi?id=627387
  105. * Tue Jun 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  106. - new upstream release
  107. - add BuildRequires: docbook-dtds
  108. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  109. - new upstream release
  110. * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  111. - new upstream release
  112. * Sat Mar 13 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1
  113. - new upstream release
  114. - add BuildRequires: nautilus-devel, gnome-doc-utils, libSM-devel
  115. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.1-1
  116. - new upstream release
  117. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.3-1
  118. - new upstream release
  119. * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.2-1
  120. - new upstream release
  121. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-1
  122. - new upstream release
  123. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  124. - new upstream release
  125. - remove BR: libgnomeprint-devel, libgnomeprintui-devel
  126. * Mon Jan 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.3-1
  127. - new upstream release
  128. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
  129. - new upstream release
  130. * Fri Sep 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  131. - new upstream release
  132. * Tue Apr 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1vl5
  133. - new upstream release
  134. * Sun Apr 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  135. - new upstream release
  136. * Sun Dec 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.2-0vl1
  137. - new upstream release
  138. * Sun Aug 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.4-0vl1
  139. - new upstream release
  140. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.1-0vl1
  141. - new upstream release
  142. * Sat Jun 03 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.3-0vl1
  143. - new upstream release
  144. * Wed Apr 12 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.1-0vl1
  145. - new upstream release
  146. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  147. - new upstream release
  148. * Wed Mar 08 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.92-0vl1
  149. - new upstream release
  150. * Sat Oct 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.1-0vl1
  151. - new upstream release
  152. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  153. - new upstream release
  154. * Tue Mar 22 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.0-0vl1
  155. - new upstream version
  156. * Sun Feb 27 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.4-0vl1
  157. - new upsteram release
  158. * Thu Nov 18 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.3-0vl1
  159. - new upsteram release
  160. * Sun Jul 11 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.4.4-0vl3
  161. - fix typo
  162. * Sun Feb 15 2004 Tomoya TAKA <taka@vinelinux.org> 2.4.4-0vl2
  163. - add Patch0 to fix segfaults on 64-bit architectures.
  164. * Sat Jan 31 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-0vl1
  165. - new upstream release
  166. * Wed Dec 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-0vl2
  167. - rebuild with new toolchain
  168. * Tue Dec 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-0vl1
  169. - new upstream release
  170. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  171. - new upstream release
  172. * Wed Sep 03 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.6-0vl1
  173. - new upstream release
  174. * Tue Jun 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-0vl1
  175. - revert version to 2.2.4
  176. * Tue Jun 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.2-0vl2
  177. - rebuilt
  178. * Wed Jun 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.2-0vl2
  179. - new upstream release
  180. * Thu Jan 30 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1-0vl1
  181. - new upstream release
  182. * Tue Jan 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  183. - new upstream release
  184. * Fri Jan 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  185. - new upstream release
  186. * Thu Jan 9 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl1
  187. - new upstream release
  188. * Mon Dec 9 2002 Alexander Larsson <alexl@redhat.com> 2.1.3-3
  189. - fix server file path
  190. * Mon Dec 9 2002 Alexander Larsson <alexl@redhat.com> 2.1.3-2
  191. - Remove unpackaged files
  192. * Mon Dec 9 2002 Alexander Larsson <alexl@redhat.com> 2.1.3-1
  193. - Update to 2.1.3
  194. * Fri Dec 6 2002 Havoc Pennington <hp@redhat.com>
  195. - 2.1.2
  196. - fix unpackaged files
  197. * Wed Jul 31 2002 Havoc Pennington <hp@redhat.com>
  198. - fix URL field
  199. - put icon in file list
  200. - 2.0.0 stable release
  201. * Fri Jun 21 2002 Havoc Pennington <hp@redhat.com>
  202. - initial build