2 %define xfce_version 4.4.0
4 Summary: Xarchiver - a GTK+2 frontend to popular compression formats
5 Summary(pl.UTF-8): Xarchiver - nakładka GTK+2 na popularne formaty kompresji
10 Group: X11/Applications
11 Source0: http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2
12 # Source0-md5: 2bc7f06403cc6582dd4a8029ec9d038d
13 Patch0: %{name}-desktop.patch
14 URL: http://xarchiver.xfce.org/
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake
17 BuildRequires: gettext-devel
18 BuildRequires: gtk+2-devel >= 2:2.8.20
19 BuildRequires: intltool
20 BuildRequires: libtool
21 BuildRequires: pkgconfig
22 BuildRequires: rpmbuild(macros) >= 1.311
23 BuildRequires: xfce4-dev-tools >= %{xfce_version}
24 Requires(post,postun): desktop-file-utils
25 Requires(post,postun): gtk-update-icon-cache
26 Requires(post,postun): hicolor-icon-theme
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Xarchiver is a GTK+2 frontend to 7z, zip, rar, tar, bzip2, gzip, arj
31 and rpm (open and extract only). Xarchiver allows to create, add,
32 extract and delete files in the above formats. 7z, zip, rar and arj
33 password protected archives are supported.
35 %description -l pl.UTF-8
36 Xarchiver to nakładka GTK+2 na 7z, zip, rar, tar, bzip2, gzip, arj i
37 rpm (tylko otwieranie i rozpakowywanie). Xarchiver umożliwia
38 tworzenie, dodawanie, rozpakowywanie oraz usuwanie plików w powyższych
39 formatach. Obsługuje również archiwa 7z, zip, rar i arj zabezpieczone
43 %setup -q -n xarchiver-%{version}
47 sed -e 's/nb_NO/nb/;s/pt_PT/pt/' -i po/LINGUAS
60 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
65 rm -f $RPM_BUILD_ROOT%{_docdir}/xarchiver/{AUTHORS,ChangeLog,COPYING,NEWS,README,TODO}
70 rm -rf $RPM_BUILD_ROOT
73 %update_desktop_database_post
74 %update_icon_cache hicolor
77 %update_desktop_database_postun
78 %update_icon_cache hicolor
80 %files -f xarchiver.lang
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog README TODO
83 %attr(755,root,root) %{_bindir}/xarchiver
84 %attr(755,root,root) %{_libdir}/thunar-archive-plugin/*.tap
85 %dir %{_docdir}/xarchiver
86 %docdir %{_docdir}/xarchiver
87 %{_docdir}/xarchiver/html
88 %{_iconsdir}/hicolor/*/apps/*
89 %{_pixmapsdir}/xarchiver
90 %{_desktopdir}/*.desktop