xarchiver-vl.spec 8.5 KB

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