xarchiver-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. Name: xarchiver
  2. Version: 0.5.4
  3. Release: 1%{?_dist_release}
  4. Summary: Archive manager for Xfce
  5. Summary(ja): Xfce のアーカイブマネージャー
  6. Group: Applications/Archiving
  7. License: GPLv2+
  8. URL: http://xarchiver.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
  10. Patch0: xarchiver-0.5.2-no-donators-menu.patch
  11. Patch1: xarchiver-0.5.2-default-archive-format.patch
  12. # add_xz_support.patch by Robby Workman taken from
  13. # http://slackbuilds.org/slackbuilds/13.1/system/xarchiver/xarchiver-0.5.2-add_xz_support.patch
  14. # sent upstream through
  15. # https://sourceforge.net/tracker/?func=detail&aid=2847624&group_id=140153&atid=745600
  16. Patch2: xarchiver-0.5.2-add_xz_support.patch
  17. # rpm2cpio.patch by Daniel Hokka Zakrisson
  18. # taken from https://bugzilla.redhat.com/show_bug.cgi?id=577480
  19. # sent upstream through
  20. # https://sourceforge.net/tracker/?func=detail&aid=3310768&group_id=140153&atid=745602
  21. Patch3: xarchiver-0.5.2-rpm2cpio.patch
  22. # segfault-open-with.patch by Bastiaan Jacques
  23. # taken from https://bugzilla.redhat.com/show_bug.cgi?id=690012
  24. # sent upstream through
  25. # https://sourceforge.net/tracker/?func=detail&aid=3310778&group_id=140153&atid=745600
  26. Patch4: xarchiver-0.5.2-segfault-open-with.patch
  27. # fix-7z-support.patch by taken from
  28. # https://sourceforge.net/tracker/?func=detail&aid=3137589&group_id=140153&atid=745602
  29. Patch5: xarchiver-0.5.2-fix_7z_support.patch
  30. # rhbz#784075 - extraction fails when the Drag'n'Drop target path contains spaces
  31. Patch6: xarchiver-0.5.2-drag-n-drop_escaped_path.patch
  32. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  33. BuildRequires: desktop-file-utils
  34. BuildRequires: gettext
  35. BuildRequires: glib2-devel >= 2.10.0
  36. BuildRequires: gtk2-devel >= 2.10
  37. BuildRequires: intltool >= 0.31
  38. BuildRequires: libtool
  39. BuildRequires: libxml2-devel
  40. Requires: unarj, binutils, bzip2, cpio, gzip, xdg-utils, tar, unzip, zip
  41. # is it useful?
  42. Requires: thunar-archive-plugin
  43. %description
  44. Xarchiver is a lightweight GTK2 only frontend for manipulating 7z, bzip2,
  45. gzip, iso, rar, lha, tar, zip, RPM and deb files. It allows you to create
  46. archives and add, extract, and delete files from them. Password protected
  47. archives in the 7z, rar, and zip formats are supported.
  48. %prep
  49. %setup -q
  50. # fix spurious executable permissions of some debug files
  51. chmod -x src/mime.*
  52. #patch0 -p2 -b .no-donators-menu
  53. #patch1 -p1 -b .default-archive-format
  54. #patch2 -p1 -b .add_xz_support
  55. #patch3 -p1 -b .rpm2cpio
  56. #patch4 -p1 -b .segfault-open-with
  57. #patch5 -p1 -b .fix_7z_support
  58. #patch6 -p1 -b .drag-n-drop_escaped
  59. %build
  60. %configure
  61. make %{?_smp_mflags}
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. make install DESTDIR=$RPM_BUILD_ROOT
  65. # We need to install xarchiver.tap as fedora-xarchiver.tap, because the name
  66. # has to match the basename of the desktop-file in %{_datadir}/applications.
  67. rm $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/xarchiver.tap
  68. install -p -m 755 xarchiver.tap \
  69. $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/vine-xarchiver.tap
  70. %find_lang %{name}
  71. desktop-file-install --vendor vine \
  72. --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
  73. --add-category="Utility" \
  74. --add-mime-type="application/x-xz" \
  75. --add-mime-type="application/x-xz-compressed-tar" \
  76. --remove-mime-type="multipart/x-zip" \
  77. --delete-original \
  78. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  79. # remove duplicate docs
  80. rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
  81. %post
  82. touch --no-create %{_datadir}/icons/hicolor
  83. if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  84. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  85. fi
  86. update-desktop-database &> /dev/null || :
  87. %postun
  88. touch --no-create %{_datadir}/icons/hicolor
  89. if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  90. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  91. fi
  92. update-desktop-database &> /dev/null || :
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT
  95. %files -f %{name}.lang
  96. %defattr(-,root,root,-)
  97. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  98. %doc %{_docdir}/%{name}/
  99. %{_bindir}/%{name}
  100. %{_datadir}/applications/vine-%{name}.desktop
  101. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  102. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  103. %dir %{_datadir}/pixmaps/%{name}/
  104. %{_datadir}/pixmaps/%{name}/%{name}*.png
  105. %dir %{_libexecdir}/thunar-archive-plugin/
  106. %{_libexecdir}/thunar-archive-plugin/vine-xarchiver.tap
  107. %changelog
  108. * Sun Mar 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.5.4-1
  109. - updated to 0.5.4
  110. - dropt patches
  111. - added R: thunar-archive-plugin
  112. * Sat May 03 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-6
  113. - added patch6 from Fedora development
  114. * Wed Jul 13 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-5
  115. - re-imported Fedora development patches
  116. * Fri Jun 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-4
  117. - added patch0,1,2,3,4,5 from Fedora development
  118. - added BuildRequires: libtool
  119. * Fri May 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-3
  120. - fixed desktop-file-install --add-category section
  121. - added BuildRequires: glib2-devel >= 2.10.0 intltool >= 0.31
  122. * Sun Apr 5 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-2vl5
  123. - fixed BuildRoot tag
  124. * Mon Mar 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1vl5
  125. - initial release for VineSeed (import Fedora Package)
  126. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
  127. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  128. * Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
  129. - Include HTML documentation
  130. * Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
  131. - Update to 0.5.2
  132. * Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
  133. - Update to 0.5.1 stable release
  134. * Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
  135. - Update to 0.5.0rc1
  136. - Fix crash when opening zipped PDF files (#467619)
  137. - Update gtk-icon-cache scriptlets
  138. * Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
  139. - Update to 0.5.0beta2
  140. * Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
  141. - Update to 0.5.0beta1
  142. - Remove xdg-open.patch as xarchiver now uses xdg-open by default
  143. * Sat Apr 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.6.20070103svn24249
  144. - Remove additional mime-types from desktop-file-install to make sure we don't break livecds
  145. * Fri Mar 14 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.5.20070103svn24249
  146. - Use xdg-open instead of htmlview (#437554)
  147. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.9-0.4.20070103svn24249
  148. - Autorebuild for GCC 4.3
  149. * Tue Aug 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.3.20070103svn24249
  150. - Rebuild for BuildID feature
  151. - Update license tag
  152. * Fri Mar 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.2.20070103svn24249
  153. - Downgrade to SVN release 24249 in order to fix #230154 temporarily.
  154. * Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070128svn24772
  155. - Update to SVN release 24772 of January 28th 2007.
  156. * Wed Jan 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070103svn
  157. - Update to SVN r24249 of January 3rd 2007.
  158. - Add mimetype application/x-deb again since opening of debs now is secure.
  159. * Wed Dec 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20061213svn
  160. - Update to SVN r24096 of December 13th 2006.
  161. * Wed Dec 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-3
  162. - Add deb.patch to prevent opening of .a files as debs.
  163. - Don't add mimetype for x-ar (archiver can't handle ar archive).
  164. * Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
  165. - Add htmlview.patch.
  166. * Tue Nov 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-1
  167. - Update to 0.4.6.
  168. - Update %%description.
  169. - Require binutils, cpio and htmlview.
  170. - Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
  171. * Mon Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
  172. - Update to 0.4.4.
  173. * Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.3.rc2
  174. - Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
  175. * Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.2.rc2
  176. - Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
  177. * Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
  178. - Update to 0.4.2.RC2.
  179. * Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
  180. - Update to 0.4.0.
  181. * Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
  182. - Initial package.