file-roller-vl.spec 9.0 KB

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