]>
Commit | Line | Data |
---|---|---|
8074d429 | 1 | |
2561653a | 2 | %define xfce_version 4.4.0 |
3d7e2ccb | 3 | Summary: Xarchiver - a GTK+2 frontend to popular compression formats |
15484dab | 4 | Summary(pl.UTF-8): Xarchiver - nakładka GTK+2 na popularne formaty kompresji |
d010bf6e | 5 | Name: Xarchiver |
b75471af | 6 | Version: 0.5.4.14 |
ac462fed | 7 | Release: 1 |
d010bf6e MB |
8 | License: GPL |
9 | Group: X11/Applications | |
b366cb7b | 10 | Source0: https://github.com/ib/xarchiver/archive/%{version}/xarchiver-%{version}.tar.gz |
b75471af | 11 | # Source0-md5: 70e60118c59fe647f620b07f83907fc9 |
56b8cb95 | 12 | Patch0: %{name}-desktop.patch |
4def0de7 | 13 | URL: https://github.com/ib/xarchiver/wiki |
9593b4f9 | 14 | BuildRequires: autoconf >= 2.50 |
d010bf6e | 15 | BuildRequires: automake |
7f412493 | 16 | BuildRequires: gettext-tools |
2561653a | 17 | BuildRequires: gtk+2-devel >= 2:2.8.20 |
459fc076 | 18 | BuildRequires: intltool |
d010bf6e | 19 | BuildRequires: libtool |
2561653a MB |
20 | BuildRequires: pkgconfig |
21 | BuildRequires: rpmbuild(macros) >= 1.311 | |
9593b4f9 | 22 | BuildRequires: xfce4-dev-tools >= %{xfce_version} |
d010bf6e | 23 | Requires(post,postun): desktop-file-utils |
793f0521 | 24 | Requires(post,postun): gtk-update-icon-cache |
2561653a | 25 | Requires(post,postun): hicolor-icon-theme |
d010bf6e MB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Xarchiver is a GTK+2 frontend to 7z, zip, rar, tar, bzip2, gzip, arj | |
30 | and rpm (open and extract only). Xarchiver allows to create, add, | |
31 | extract and delete files in the above formats. 7z, zip, rar and arj | |
32 | password protected archives are supported. | |
33 | ||
a4cbac68 JR |
34 | %description -l pl.UTF-8 |
35 | Xarchiver to nakładka GTK+2 na 7z, zip, rar, tar, bzip2, gzip, arj i | |
36 | rpm (tylko otwieranie i rozpakowywanie). Xarchiver umożliwia | |
37 | tworzenie, dodawanie, rozpakowywanie oraz usuwanie plików w powyższych | |
38 | formatach. Obsługuje również archiwa 7z, zip, rar i arj zabezpieczone | |
39 | hasłem. | |
d010bf6e MB |
40 | |
41 | %prep | |
2561653a | 42 | %setup -q -n xarchiver-%{version} |
56b8cb95 | 43 | %patch0 -p1 |
9ce8db24 | 44 | mv -f po/pt{_PT,}.po |
b366cb7b | 45 | sed -e 's/pt_PT/pt/' -i po/LINGUAS |
d010bf6e MB |
46 | |
47 | %build | |
03c9f12e | 48 | %{__intltoolize} |
d010bf6e MB |
49 | %{__libtoolize} |
50 | %{__aclocal} | |
51 | %{__autoconf} | |
52 | %{__autoheader} | |
53 | %{__automake} | |
54 | %configure | |
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
d010bf6e MB |
59 | %{__make} install \ |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
b366cb7b | 62 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/xarchiver/{ChangeLog,COPYING,README} |
64b6cdcb | 63 | |
d010bf6e MB |
64 | %find_lang xarchiver |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post | |
70 | %update_desktop_database_post | |
2561653a | 71 | %update_icon_cache hicolor |
d010bf6e MB |
72 | |
73 | %postun | |
74 | %update_desktop_database_postun | |
2561653a | 75 | %update_icon_cache hicolor |
d010bf6e MB |
76 | |
77 | %files -f xarchiver.lang | |
78 | %defattr(644,root,root,755) | |
b366cb7b | 79 | %doc ChangeLog README |
d010bf6e | 80 | %attr(755,root,root) %{_bindir}/xarchiver |
b366cb7b | 81 | %attr(755,root,root) %{_libexecdir}/thunar-archive-plugin/*.tap |
64b6cdcb | 82 | %docdir %{_docdir}/xarchiver |
b366cb7b | 83 | %{_docdir}/xarchiver |
8074d429 ER |
84 | %{_iconsdir}/hicolor/*/apps/xarchiver.png |
85 | %{_iconsdir}/hicolor/scalable/apps/xarchiver.svg | |
2561653a | 86 | %{_pixmapsdir}/xarchiver |
d010bf6e | 87 | %{_desktopdir}/*.desktop |
b366cb7b | 88 | %{_mandir}/man1/xarchiver.1* |