xarchiver-vl.spec 8.6 KB

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