xarchiver-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. Name: xarchiver
  2. Version: 0.5.2
  3. Release: 4%{?_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. --delete-original \
  66. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  67. # remove duplicate docs
  68. rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
  69. %post
  70. touch --no-create %{_datadir}/icons/hicolor
  71. if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  72. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  73. fi
  74. update-desktop-database &> /dev/null || :
  75. %postun
  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. %clean
  82. rm -rf $RPM_BUILD_ROOT
  83. %files -f %{name}.lang
  84. %defattr(-,root,root,-)
  85. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  86. %doc %{_docdir}/%{name}/
  87. %{_bindir}/%{name}
  88. %{_datadir}/applications/vine-%{name}.desktop
  89. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  90. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  91. %dir %{_datadir}/pixmaps/%{name}/
  92. %{_datadir}/pixmaps/%{name}/%{name}*.png
  93. %dir %{_libexecdir}/thunar-archive-plugin/
  94. %{_libexecdir}/thunar-archive-plugin/vine-xarchiver.tap
  95. %changelog
  96. * Fri Jun 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-4
  97. - added patch0,1,2,3,4,5 from Fedora development
  98. - added BuildRequires: libtool
  99. * Fri May 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-3
  100. - fixed desktop-file-install --add-category section
  101. - added BuildRequires: glib2-devel >= 2.10.0 intltool >= 0.31
  102. * Sun Apr 5 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-2vl5
  103. - fixed BuildRoot tag
  104. * Mon Mar 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.2-1vl5
  105. - initial release for VineSeed (import Fedora Package)
  106. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  108. * Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
  109. - Include HTML documentation
  110. * Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
  111. - Update to 0.5.2
  112. * Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
  113. - Update to 0.5.1 stable release
  114. * Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
  115. - Update to 0.5.0rc1
  116. - Fix crash when opening zipped PDF files (#467619)
  117. - Update gtk-icon-cache scriptlets
  118. * Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
  119. - Update to 0.5.0beta2
  120. * Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
  121. - Update to 0.5.0beta1
  122. - Remove xdg-open.patch as xarchiver now uses xdg-open by default
  123. * Sat Apr 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.6.20070103svn24249
  124. - Remove additional mime-types from desktop-file-install to make sure we don't break livecds
  125. * Fri Mar 14 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.5.20070103svn24249
  126. - Use xdg-open instead of htmlview (#437554)
  127. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.9-0.4.20070103svn24249
  128. - Autorebuild for GCC 4.3
  129. * Tue Aug 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.3.20070103svn24249
  130. - Rebuild for BuildID feature
  131. - Update license tag
  132. * Fri Mar 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.2.20070103svn24249
  133. - Downgrade to SVN release 24249 in order to fix #230154 temporarily.
  134. * Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070128svn24772
  135. - Update to SVN release 24772 of January 28th 2007.
  136. * Wed Jan 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070103svn
  137. - Update to SVN r24249 of January 3rd 2007.
  138. - Add mimetype application/x-deb again since opening of debs now is secure.
  139. * Wed Dec 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20061213svn
  140. - Update to SVN r24096 of December 13th 2006.
  141. * Wed Dec 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-3
  142. - Add deb.patch to prevent opening of .a files as debs.
  143. - Don't add mimetype for x-ar (archiver can't handle ar archive).
  144. * Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
  145. - Add htmlview.patch.
  146. * Tue Nov 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-1
  147. - Update to 0.4.6.
  148. - Update %%description.
  149. - Require binutils, cpio and htmlview.
  150. - Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
  151. * Tue Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
  152. - Update to 0.4.4.
  153. * Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.3.rc2
  154. - Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
  155. * Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.2.rc2
  156. - Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
  157. * Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
  158. - Update to 0.4.2.RC2.
  159. * Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
  160. - Update to 0.4.0.
  161. * Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
  162. - Initial package.