bdcf521
Name:           xarchiver
05b96ae
Version:        0.5.2
fa817ee
Release:        5%{?dist}
bdcf521
Summary:        Archive manager for Xfce
bdcf521
bdcf521
Group:          Applications/Archiving
6d253f1
License:        GPLv2+
bdcf521
URL:            http://xarchiver.xfce.org/
05b96ae
Source0:        http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
d7b070f
Patch0:         xarchiver-0.5.2-no-donators-menu.patch
d7b070f
Patch1:         xarchiver-0.5.2-default-archive-format.patch
bdcf521
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bdcf521
bdcf521
BuildRequires:  gtk2-devel, libxml2-devel, gettext, desktop-file-utils
0ffeda2
BuildRequires:  xfce4-dev-tools >= 4.3.90.2
86a1285
Requires:       arj, binutils, bzip2, cpio, gzip, xdg-utils, tar, unzip, zip
bdcf521
bdcf521
%description
bdcf521
Xarchiver is a lightweight GTK2 only frontend for manipulating 7z, arj, bzip2, 
bdcf521
gzip, iso, rar, lha, tar, zip, RPM and deb files. It allows you to create 
bdcf521
archives and add, extract, and delete files from them. Password protected 
bdcf521
archives in the arj, 7z, rar, and zip formats are supported.
bdcf521
bdcf521
bdcf521
%prep
05b96ae
%setup -q
05b96ae
# fix spurious executable permissions of some debug files
05b96ae
chmod -x src/mime.*
d7b070f
%patch0 -p2 -b .donate
d7b070f
%patch1 -p1 -b .default
bdcf521
bdcf521
%build
bdcf521
%configure
bdcf521
make %{?_smp_mflags}
bdcf521
bdcf521
bdcf521
%install
bdcf521
rm -rf $RPM_BUILD_ROOT
bdcf521
make install DESTDIR=$RPM_BUILD_ROOT
bdcf521
bdcf521
# We need to install xarchiver.tap as fedora-xarchiver.tap, because the name 
bdcf521
# has to match the basename of the desktop-file in %{_datadir}/applications.
bdcf521
rm $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/xarchiver.tap
bdcf521
install -p -m 755 xarchiver.tap \
bdcf521
   $RPM_BUILD_ROOT%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
bdcf521
bdcf521
%find_lang %{name}
bdcf521
desktop-file-install --vendor fedora                            \
bdcf521
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
05b96ae
        --add-category="Compression"                            \
bdcf521
        --delete-original                                       \
bdcf521
        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
bdcf521
05b96ae
# remove duplicate docs
7d1241c
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
05b96ae
bdcf521
bdcf521
%post
05b96ae
touch --no-create %{_datadir}/icons/hicolor
05b96ae
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
05b96ae
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
05b96ae
fi
05b96ae
update-desktop-database &> /dev/null || :
bdcf521
bdcf521
bdcf521
%postun
05b96ae
touch --no-create %{_datadir}/icons/hicolor
05b96ae
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
05b96ae
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
05b96ae
fi
05b96ae
update-desktop-database &> /dev/null || :
bdcf521
bdcf521
bdcf521
%clean
bdcf521
rm -rf $RPM_BUILD_ROOT
bdcf521
bdcf521
bdcf521
%files -f %{name}.lang
bdcf521
%defattr(-,root,root,-)
bdcf521
%doc AUTHORS COPYING ChangeLog NEWS README TODO
7d1241c
%doc %{_docdir}/%{name}/
bdcf521
%{_bindir}/%{name}
bdcf521
%{_datadir}/applications/fedora-%{name}.desktop
bdcf521
%{_datadir}/icons/hicolor/*/apps/%{name}.png
bdcf521
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
bdcf521
%dir %{_datadir}/pixmaps/%{name}/
05b96ae
%{_datadir}/pixmaps/%{name}/%{name}*.png
bdcf521
%dir %{_libexecdir}/thunar-archive-plugin/
bdcf521
%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
bdcf521
bdcf521
bdcf521
%changelog
fa817ee
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-5
fa817ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fa817ee
d7b070f
* Sun Mar 22 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-4
d7b070f
- Gui fixes (#491115)
d7b070f
a75951f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-3
a75951f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a75951f
7d1241c
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
7d1241c
- Include HTML documentation
7d1241c
05b96ae
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
05b96ae
- Update to 0.5.2
05b96ae
05b96ae
* Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
05b96ae
- Update to 0.5.1 stable release
05b96ae
05b96ae
* Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
05b96ae
- Update to 0.5.0rc1
05b96ae
- Fix crash when opening zipped PDF files (#467619)
05b96ae
- Update gtk-icon-cache scriptlets
05b96ae
05b96ae
* Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
05b96ae
- Update to 0.5.0beta2
05b96ae
05b96ae
* Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
05b96ae
- Update to 0.5.0beta1
05b96ae
- Remove xdg-open.patch as xarchiver now uses xdg-open by default
05b96ae
05b96ae
* Sat Apr 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.6.20070103svn24249
75994ed
- Remove additional mime-types from desktop-file-install to make sure we don't break livecds
75994ed
05b96ae
* Fri Mar 14 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.5.20070103svn24249
075c455
- Use xdg-open instead of htmlview (#437554)
86a1285
84ff5f9
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.9-0.4.20070103svn24249
84ff5f9
- Autorebuild for GCC 4.3
84ff5f9
05b96ae
* Tue Aug 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.3.20070103svn24249
6d253f1
- Rebuild for BuildID feature
6d253f1
- Update license tag
6d253f1
05b96ae
* Fri Mar 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.2.20070103svn24249
1c78e29
- Downgrade to SVN release 24249 in order to fix #230154 temporarily.
1c78e29
05b96ae
* Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070128svn24772
1c78e29
- Update to SVN release 24772 of January 28th 2007.
f7e81e1
05b96ae
* Wed Jan 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20070103svn
0ffeda2
- Update to SVN r24249 of January 3rd 2007.
0ffeda2
- Add mimetype application/x-deb again since opening of debs now is secure.
0ffeda2
05b96ae
* Wed Dec 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.9-0.1.20061213svn
bdcf521
- Update to SVN r24096 of December 13th 2006.
bdcf521
05b96ae
* Wed Dec 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-3
bdcf521
- Add deb.patch to prevent opening of .a files as debs.
bdcf521
- Don't add mimetype for x-ar (archiver can't handle ar archive).
bdcf521
05b96ae
* Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
bdcf521
- Add htmlview.patch.
bdcf521
05b96ae
* Tue Nov 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-1
bdcf521
- Update to 0.4.6.
0ffeda2
- Update %%description.
bdcf521
- Require binutils, cpio and htmlview.
bdcf521
- Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
bdcf521
05b96ae
* Tue Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
bdcf521
- Update to 0.4.4.
bdcf521
05b96ae
* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.3.rc2
bdcf521
- Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
bdcf521
05b96ae
* Sat Nov 25 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.2.rc2
bdcf521
- Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
bdcf521
05b96ae
* Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
bdcf521
- Update to 0.4.2.RC2.
bdcf521
05b96ae
* Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
bdcf521
- Update to 0.4.0.
bdcf521
05b96ae
* Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
bdcf521
- Initial package.