bdcf52
Name:           xarchiver
05b96a
Version:        0.5.2
Jaromir Capik 819755
Release:        16%{?dist}
bdcf52
Summary:        Archive manager for Xfce
bdcf52
bdcf52
Group:          Applications/Archiving
6d253f
License:        GPLv2+
bdcf52
URL:            http://xarchiver.xfce.org/
05b96a
Source0:        http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
d7b070
Patch0:         xarchiver-0.5.2-no-donators-menu.patch
d7b070
Patch1:         xarchiver-0.5.2-default-archive-format.patch
349398
# add_xz_support.patch by Robby Workman taken from
349398
# http://slackbuilds.org/slackbuilds/13.1/system/xarchiver/xarchiver-0.5.2-add_xz_support.patch
349398
# sent upstream through
349398
# https://sourceforge.net/tracker/?func=detail&aid=2847624&group_id=140153&atid=745600
349398
Patch2:         xarchiver-0.5.2-add_xz_support.patch
349398
# rpm2cpio.patch by Daniel Hokka Zakrisson
349398
# taken from https://bugzilla.redhat.com/show_bug.cgi?id=577480
349398
# sent upstream through
349398
# https://sourceforge.net/tracker/?func=detail&aid=3310768&group_id=140153&atid=745602
349398
Patch3:         xarchiver-0.5.2-rpm2cpio.patch
349398
# segfault-open-with.patch by Bastiaan Jacques
349398
# taken from https://bugzilla.redhat.com/show_bug.cgi?id=690012
349398
# sent upstream through
349398
# https://sourceforge.net/tracker/?func=detail&aid=3310778&group_id=140153&atid=745600
349398
Patch4:         xarchiver-0.5.2-segfault-open-with.patch
349398
# fix-7z-support.patch by taken from
349398
# https://sourceforge.net/tracker/?func=detail&aid=3137589&group_id=140153&atid=745602
349398
Patch5:         xarchiver-0.5.2-fix_7z_support.patch
Jaromir Capik 9bcbb0
# rhbz#784075 - extraction fails when the Drag'n'Drop target path contains spaces
Jaromir Capik 9bcbb0
Patch6:         xarchiver-0.5.2-drag-n-drop_escaped_path.patch
Jaromir Capik 9bcbb0
bdcf52
BuildRequires:  gtk2-devel, libxml2-devel, gettext, desktop-file-utils
0ffeda
BuildRequires:  xfce4-dev-tools >= 4.3.90.2
Jaromir Capik 819755
BuildRequires:  autoconf >= 2.69
Jaromir Capik 819755
BuildRequires:  libtool
Jaromir Capik 819755
BuildRequires:  automake
Jaromir Capik 819755
BuildRequires:  intltool
Jaromir Capik 819755
86a128
Requires:       arj, binutils, bzip2, cpio, gzip, xdg-utils, tar, unzip, zip
bdcf52
bdcf52
%description
Jaromir Capik 819755
Xarchiver is a lightweight GTK2 only frontend for manipulating 7z, arj, bzip2,
Jaromir Capik 819755
gzip, iso, rar, lha, tar, zip, RPM and deb files. It allows you to create
Jaromir Capik 819755
archives and add, extract, and delete files from them. Password protected
bdcf52
archives in the arj, 7z, rar, and zip formats are supported.
bdcf52
bdcf52
bdcf52
%prep
05b96a
%setup -q
05b96a
# fix spurious executable permissions of some debug files
05b96a
chmod -x src/mime.*
35b346
%patch0 -p2 -b .no-donators-menu
35b346
%patch1 -p1 -b .default-archive-format
349398
%patch2 -p1 -b .add_xz_support
349398
%patch3 -p1 -b .rpm2cpio
349398
%patch4 -p1 -b .segfault-open-with
349398
%patch5 -p1 -b .fix_7z_support
Jaromir Capik 9bcbb0
%patch6 -p1 -b .dnd_escaped_path
bdcf52
bdcf52
%build
Jaromir Capik 819755
autoreconf -vif
bdcf52
%configure
bdcf52
make %{?_smp_mflags}
bdcf52
bdcf52
bdcf52
%install
Parag Nemade 82c11b
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
bdcf52
bdcf52
# We need to install xarchiver.tap as fedora-xarchiver.tap, because the name 
bdcf52
# has to match the basename of the desktop-file in %{_datadir}/applications.
bdcf52
rm $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/xarchiver.tap
bdcf52
install -p -m 755 xarchiver.tap \
bdcf52
   $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
bdcf52
bdcf52
%find_lang %{name}
Parag Nemade 82c11b
desktop-file-install                            \
bdcf52
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
05b96a
        --add-category="Compression"                            \
5e8f4b
        --add-mime-type="application/x-xz"                      \
5e8f4b
        --add-mime-type="application/x-xz-compressed-tar"       \
35b346
        --remove-mime-type="multipart/x-zip"                    \
bdcf52
        --delete-original                                       \
bdcf52
        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
bdcf52
05b96a
# remove duplicate docs
7d1241
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
05b96a
bdcf52
bdcf52
%post
05b96a
touch --no-create %{_datadir}/icons/hicolor
05b96a
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
05b96a
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
05b96a
fi
05b96a
update-desktop-database &> /dev/null || :
bdcf52
bdcf52
bdcf52
%postun
35b346
if [ $1 -eq 0 ] ; then
35b346
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
35b346
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
05b96a
fi
05b96a
update-desktop-database &> /dev/null || :
bdcf52
bdcf52
35b346
%posttrans
35b346
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
35b346
35b346
bdcf52
%files -f %{name}.lang
bdcf52
%doc AUTHORS COPYING ChangeLog NEWS README TODO
7d1241
%doc %{_docdir}/%{name}/
bdcf52
%{_bindir}/%{name}
Parag Nemade 82c11b
%{_datadir}/applications/%{name}.desktop
bdcf52
%{_datadir}/icons/hicolor/*/apps/%{name}.png
bdcf52
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
bdcf52
%dir %{_datadir}/pixmaps/%{name}/
05b96a
%{_datadir}/pixmaps/%{name}/%{name}*.png
bdcf52
%dir %{_libexecdir}/thunar-archive-plugin/
bdcf52
%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
bdcf52
bdcf52
bdcf52
%changelog
Jaromir Capik 819755
* Thu Apr 04 2013 Jaromir Capik <jcapik@redhat.com> - 0.5.2-16
Jaromir Capik 819755
- aarch64 support (#926742)
Jaromir Capik 819755
- fixing bogus date in the changelog
Jaromir Capik 819755
Parag Nemade 82c11b
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 0.5.2-15
Parag Nemade 82c11b
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade 82c11b
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade 82c11b
70a796
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-14
70a796
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
70a796
Jaromir Capik 9bcbb0
* Thu Jan 26 2012 Jaromir Capik <jcapik@redhat.com> - 0.5.2-13
Jaromir Capik 9bcbb0
- Fix extraction failures when the Drag'n'Drop target path contains spaces (#784075)
Jaromir Capik 9bcbb0
e40cf8
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-12
e40cf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e40cf8
d796cf
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.5.2-11
d796cf
- Rebuild for new libpng
d796cf
5e8f4b
* Sun Jun 19 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-10
5e8f4b
- Fix xz MIME types
5e8f4b
b19f69
* Sat Jun 11 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-9
b19f69
- Fix xz support. A big thanks to Daniel Hokka Zakrisson (#577480)
b19f69
349398
* Thu Jun 02 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-8
349398
- Fix 7zip. Encrypted archives are still not supported.
349398
35b346
* Thu Jun 02 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-7
349398
- Add xz support. Thanks to Robby Workman and Daniel Hokka Zakrisson (#577480)
35b346
- Remove mime-type multipart/x-zip (#666066)
349398
- Fix crash in IA__gtk_tree_model_get_valist. Thanks to Bastiaan Jacques (#690012)
35b346
- Update icon-cache scriptlets
35b346
bd889b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-6
bd889b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bd889b
fa817e
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-5
fa817e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fa817e
d7b070
* Sun Mar 22 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-4
d7b070
- Gui fixes (#491115)
d7b070
a75951
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
a75951
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a75951
7d1241
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
7d1241
- Include HTML documentation
7d1241
05b96a
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
05b96a
- Update to 0.5.2
05b96a
05b96a
* Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
05b96a
- Update to 0.5.1 stable release
05b96a
05b96a
* Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
05b96a
- Update to 0.5.0rc1
05b96a
- Fix crash when opening zipped PDF files (#467619)
05b96a
- Update gtk-icon-cache scriptlets
05b96a
05b96a
* Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
05b96a
- Update to 0.5.0beta2
05b96a
05b96a
* Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
05b96a
- Update to 0.5.0beta1
05b96a
- Remove xdg-open.patch as xarchiver now uses xdg-open by default
05b96a
05b96a
* Sat Apr 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.6.20070103svn24249
75994e
- Remove additional mime-types from desktop-file-install to make sure we don't break livecds
75994e
05b96a
* Fri Mar 14 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.5.20070103svn24249
075c45
- Use xdg-open instead of htmlview (#437554)
86a128
84ff5f
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.9-0.4.20070103svn24249
84ff5f
- Autorebuild for GCC 4.3
84ff5f
05b96a
* Tue Aug 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.3.20070103svn24249
6d253f
- Rebuild for BuildID feature
6d253f
- Update license tag
6d253f
05b96a
* Fri Mar 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.2.20070103svn24249
1c78e2
- Downgrade to SVN release 24249 in order to fix #230154 temporarily.
1c78e2
05b96a
* Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070128svn24772
1c78e2
- Update to SVN release 24772 of January 28th 2007.
f7e81e
05b96a
* Wed Jan 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070103svn
0ffeda
- Update to SVN r24249 of January 3rd 2007.
0ffeda
- Add mimetype application/x-deb again since opening of debs now is secure.
0ffeda
05b96a
* Wed Dec 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20061213svn
bdcf52
- Update to SVN r24096 of December 13th 2006.
bdcf52
05b96a
* Wed Dec 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-3
bdcf52
- Add deb.patch to prevent opening of .a files as debs.
bdcf52
- Don't add mimetype for x-ar (archiver can't handle ar archive).
bdcf52
05b96a
* Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
bdcf52
- Add htmlview.patch.
bdcf52
05b96a
* Tue Nov 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-1
bdcf52
- Update to 0.4.6.
0ffeda
- Update %%description.
bdcf52
- Require binutils, cpio and htmlview.
bdcf52
- Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
bdcf52
Jaromir Capik 819755
* Mon Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
bdcf52
- Update to 0.4.4.
bdcf52
05b96a
* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.3.rc2
bdcf52
- Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
bdcf52
05b96a
* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.2.rc2
bdcf52
- Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
bdcf52
05b96a
* Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
bdcf52
- Update to 0.4.2.RC2.
bdcf52
05b96a
* Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
bdcf52
- Update to 0.4.0.
bdcf52
05b96a
* Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
bdcf52
- Initial package.