]> git.pld-linux.org Git - packages/Xarchiver.git/blobdiff - Xarchiver.spec
- up to 0.5.4.21
[packages/Xarchiver.git] / Xarchiver.spec
index 7e5b43265611dd04b5615dfecc9852d646741237..b35381ae44b1bd56f9cc6577037e1e0d6bcb9697 100644 (file)
@@ -1,42 +1,52 @@
-# $Revision: 1.1 $Date: 2006-09-16 22:11:19 $
-#
-%define                xfce_version 4.3.99.1
-#
-Summary:       Xarchiver is a GTK+2 frontend to popular compression formats
-Summary(pl):   Xarchiver to nak³adka GTK+2 na popularne formaty kompresji
+
+%define                xfce_version    4.4.0
+Summary:       Xarchiver - a GTK+3 frontend to popular compression formats
+Summary(pl.UTF-8):     Xarchiver - nakładka GTK+3 na popularne formaty kompresji
 Name:          Xarchiver
-Version:       0.4.0
+Version:       0.5.4.21
 Release:       1
 License:       GPL
 Group:         X11/Applications
-Source0:       http://www.xfce.org/archive/xfce-%{xfce_version}/src/xarchiver-%{version}.tar.bz2
-# Source0-md5: b74d61fd0998fa36c14ccb24e91e8ded
-URL:           http://xarchiver.xfce.org/
-BuildRequires: autoconf
+Source0:       https://github.com/ib/xarchiver/archive/%{version}/xarchiver-%{version}.tar.gz
+# Source0-md5: 94621a793a45521ef55702e940442552
+Patch0:                %{name}-desktop.patch
+URL:           https://github.com/ib/xarchiver/wiki
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
-BuildRequires: gtk+2-devel >= 2:2.10.1
+BuildRequires: gettext-tools
+BuildRequires: gtk+3-devel >= 3.10
+BuildRequires: intltool >= 0.40.0
 BuildRequires: libtool
-BuildRequires: rpmbuild(macros) >= 1.198
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: xfce4-dev-tools >= %{xfce_version}
 Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Xarchiver is a GTK+2 frontend to 7z, zip, rar, tar, bzip2, gzip, arj
+Xarchiver is a GTK+3 frontend to 7z, zip, rar, tar, bzip2, gzip, arj
 and rpm (open and extract only). Xarchiver allows to create, add,
 extract and delete files in the above formats. 7z, zip, rar and arj
 password protected archives are supported.
 
-%description -l pl
-Xarchiver to nak³adka GTK+2 na 7z, zip, rar, tar, bzip2, gzip, arj i
-rpm (tylko otwieranie i rozpakowywanie). Xarchiver umo¿liwia
-tworzenie, dodawanie, rozpakowywanie oraz usuwanie plików w powy¿szych
-formatach. Wspiera równie¿ archiwa 7z, zip, rar i arj zabezpieczone
-has³em.
+%description -l pl.UTF-8
+Xarchiver to nakładka GTK+3 na 7z, zip, rar, tar, bzip2, gzip, arj i
+rpm (tylko otwieranie i rozpakowywanie). Xarchiver umożliwia
+tworzenie, dodawanie, rozpakowywanie oraz usuwanie plików w powyższych
+formatach. Obsługuje również archiwa 7z, zip, rar i arj zabezpieczone
+hasłem.
 
 %prep
 %setup -q -n xarchiver-%{version}
+%patch0 -p1
+mv -f po/pt{_PT,}.po
+sed -e 's/pt_PT/pt/' -i po/LINGUAS
 
 %build
+mkdir m4
+%{__intltoolize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -47,10 +57,11 @@ has
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/xarchiver/{ChangeLog,COPYING,README}
+
 %find_lang xarchiver
 
 %clean
@@ -58,15 +69,21 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %update_desktop_database_post
+%update_icon_cache hicolor
 
 %postun
 %update_desktop_database_postun
+%update_icon_cache hicolor
 
 %files -f xarchiver.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog FAQ README TODO
+%doc ChangeLog README
 %attr(755,root,root) %{_bindir}/xarchiver
-%attr(755,root,root) %{_libdir}/thunar-archive-plugin/*.tap
-%{_datadir}/xarchiver
+%attr(755,root,root) %{_libexecdir}/thunar-archive-plugin/*.tap
+%docdir %{_docdir}/xarchiver
+%{_docdir}/xarchiver
+%{_iconsdir}/hicolor/*/apps/xarchiver.png
+%{_iconsdir}/hicolor/scalable/apps/xarchiver.svg
+%{_pixmapsdir}/xarchiver
 %{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.png
+%{_mandir}/man1/xarchiver.1*
This page took 0.104888 seconds and 4 git commands to generate.