bdcf521
Name:           xarchiver
bdcf521
Version:        0.4.9
bdcf521
Release:        0.1.20061213svn%{?dist}
bdcf521
Summary:        Archive manager for Xfce
bdcf521
bdcf521
Group:          Applications/Archiving
bdcf521
License:        GPL
bdcf521
URL:            http://xarchiver.xfce.org/
bdcf521
# Source0 was generated with the following commands:
bdcf521
# svn co http://svn.xfce.org/svn/goodies/xfce4-websearch-plugin/trunk xfce4-websearch-plugin
bdcf521
# tar -cjf xarchiver-`date +%G%m%d`svn.tar.bz2 xarchiver
bdcf521
Source0:	xarchiver-20061213svn.tar.bz2
bdcf521
#Source0:        http://dl.sf.net/sourceforge/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
bdcf521
BuildRequires:	xfce4-dev-tools >= 4.3.90.2
bdcf521
Requires:       arj, binutils, bzip2, cpio, gzip, htmlview, 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
bdcf521
%setup -qn xarchiver
bdcf521
bdcf521
bdcf521
%build
bdcf521
./autogen.sh
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         \
bdcf521
        --delete-original                                       \
bdcf521
        --add-mime-type=application/x-cd-image                  \
bdcf521
        --add-mime-type=application/x-rpm                       \
bdcf521
        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
bdcf521
bdcf521
bdcf521
%post
bdcf521
update-desktop-database &> /dev/null ||:
bdcf521
touch --no-create %{_datadir}/icons/hicolor || :
bdcf521
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
bdcf521
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
bdcf521
fi
bdcf521
bdcf521
bdcf521
%postun
bdcf521
update-desktop-database &> /dev/null ||:
bdcf521
touch --no-create %{_datadir}/icons/hicolor || :
bdcf521
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
bdcf521
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
bdcf521
fi
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
bdcf521
%lang(it) %doc LEGGIMI
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}/
bdcf521
%{_datadir}/pixmaps/%{name}/*.png
bdcf521
%dir %{_libexecdir}/thunar-archive-plugin/
bdcf521
%{_libexecdir}/thunar-archive-plugin/fedora-xarchiver.tap
bdcf521
%{_docdir}/%{name}/
bdcf521
# exculde duplicate docs
bdcf521
%exclude %{_docdir}/%{name}/AUTHORS
bdcf521
%exclude %{_docdir}/%{name}/COPYING
bdcf521
%exclude %{_docdir}/%{name}/ChangeLog
bdcf521
%exclude %{_docdir}/%{name}/NEWS
bdcf521
%exclude %{_docdir}/%{name}/README
bdcf521
%exclude %{_docdir}/%{name}/TODO
bdcf521
bdcf521
bdcf521
%changelog
bdcf521
* Wed Dec 13 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.9-0.1.20061213svn
bdcf521
- Update to SVN r24096 of December 13th 2006.
bdcf521
bdcf521
* Wed Dec 06 2006 Christoph Wickert <fedora christoph-wickert de> - 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
bdcf521
* Wed Nov 29 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.6-2
bdcf521
- Add htmlview.patch.
bdcf521
bdcf521
* Tue Nov 28 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.6-1
bdcf521
- Update to 0.4.6.
bdcf521
- Update description.
bdcf521
- Require binutils, cpio and htmlview.
bdcf521
- Add mimetypes application/x-ar, application/x-cd-image and application/x-deb.
bdcf521
bdcf521
* Tue Nov 27 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.4-1
bdcf521
- Update to 0.4.4.
bdcf521
bdcf521
* Sat Nov 25 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.2-0.3.rc2
bdcf521
- Install xarchiver.png also in %%{_datadir}/icons/hicolor/48x48/apps/.
bdcf521
bdcf521
* Sat Nov 25 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.2-0.2.rc2
bdcf521
- Drop subpackage and own %%{_libexecdir}/thunar-archive-plugin/ (#198098).
bdcf521
bdcf521
* Sun Nov 12 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.2-0.1.rc2
bdcf521
- Update to 0.4.2.RC2.
bdcf521
bdcf521
* Wed Sep 13 2006 Christoph Wickert <fedora christoph-wickert de> - 0.4.0-1
bdcf521
- Update to 0.4.0.
bdcf521
bdcf521
* Tue Sep 05 2006 Christoph Wickert <fedora christoph-wickert de> - 0.3.9.2-0.beta2
bdcf521
- Initial package.