bdcf521
Name:           xarchiver
4596d3a
Version:        0.5.2
4596d3a
Release:        2%{?dist}
bdcf521
Summary:        Archive manager for Xfce
bdcf521
bdcf521
Group:          Applications/Archiving
6d253f1
License:        GPLv2+
bdcf521
URL:            http://xarchiver.xfce.org/
4596d3a
Source0:        http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
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
4596d3a
%setup -q
4596d3a
# fix spurious executable permissions of some debug files
4596d3a
chmod -x src/mime.*
bdcf521
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         \
4596d3a
        --add-category="Compression"                            \
bdcf521
        --delete-original                                       \
bdcf521
        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
bdcf521
4596d3a
# remove duplicate docs
4596d3a
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{AUTHORS,COPYING,ChangeLog,NEWS,README,TODO}
4596d3a
bdcf521
bdcf521
%post
4596d3a
touch --no-create %{_datadir}/icons/hicolor
4596d3a
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
4596d3a
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
4596d3a
fi
4596d3a
update-desktop-database &> /dev/null || :
bdcf521
bdcf521
bdcf521
%postun
4596d3a
touch --no-create %{_datadir}/icons/hicolor
4596d3a
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
4596d3a
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
4596d3a
fi
4596d3a
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
4596d3a
%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}/
4596d3a
%{_datadir}/pixmaps/%{name}/%{name}*.png
bdcf521
%dir %{_libexecdir}/thunar-archive-plugin/
bdcf521
%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
bdcf521
bdcf521
bdcf521
%changelog
4596d3a
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-2
4596d3a
- Include HTML documentation
4596d3a
4596d3a
* Tue Nov 25 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
4596d3a
- Update to 0.5.2
4596d3a
4596d3a
* Sun Nov 09 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
4596d3a
- Update to 0.5.1 stable release
4596d3a
4596d3a
* Sun Oct 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.rc1
4596d3a
- Update to 0.5.0rc1
4596d3a
- Fix crash when opening zipped PDF files (#467619)
4596d3a
- Update gtk-icon-cache scriptlets
4596d3a
4596d3a
* Sat Oct 11 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta2
4596d3a
- Update to 0.5.0beta2
4596d3a
4596d3a
* Sun Aug 31 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-0.1.beta1
4596d3a
- Update to 0.5.0beta1
4596d3a
- Remove xdg-open.patch as xarchiver now uses xdg-open by default
4596d3a
4596d3a
* 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
4596d3a
* 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
4596d3a
* 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
4596d3a
* 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
4596d3a
* 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
4596d3a
* 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
4596d3a
* 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
4596d3a
* 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
4596d3a
* Wed Nov 29 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.6-2
bdcf521
- Add htmlview.patch.
bdcf521
4596d3a
* 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
4596d3a
* Tue Nov 27 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.4-1
bdcf521
- Update to 0.4.4.
bdcf521
4596d3a
* 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
4596d3a
* 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
4596d3a
* Sun Nov 12 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-0.1.rc2
bdcf521
- Update to 0.4.2.RC2.
bdcf521
4596d3a
* Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
bdcf521
- Update to 0.4.0.
bdcf521
4596d3a
* Tue Sep 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.9.2-0.beta2
bdcf521
- Initial package.