]>
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 |
4514fbe1 JR |
6 | Version: 0.5.3 |
7 | Release: 1 | |
d010bf6e MB |
8 | License: GPL |
9 | Group: X11/Applications | |
793f0521 | 10 | Source0: http://downloads.sourceforge.net/xarchiver/xarchiver-%{version}.tar.bz2 |
4514fbe1 | 11 | # Source0-md5: fd390bbd2df76a5f8a007bdeae82d4aa |
56b8cb95 | 12 | Patch0: %{name}-desktop.patch |
4514fbe1 | 13 | Patch1: format-security.patch |
4def0de7 | 14 | URL: https://github.com/ib/xarchiver/wiki |
9593b4f9 | 15 | BuildRequires: autoconf >= 2.50 |
d010bf6e | 16 | BuildRequires: automake |
7f412493 | 17 | BuildRequires: gettext-tools |
2561653a | 18 | BuildRequires: gtk+2-devel >= 2:2.8.20 |
459fc076 | 19 | BuildRequires: intltool |
d010bf6e | 20 | BuildRequires: libtool |
2561653a MB |
21 | BuildRequires: pkgconfig |
22 | BuildRequires: rpmbuild(macros) >= 1.311 | |
9593b4f9 | 23 | BuildRequires: xfce4-dev-tools >= %{xfce_version} |
d010bf6e | 24 | Requires(post,postun): desktop-file-utils |
793f0521 | 25 | Requires(post,postun): gtk-update-icon-cache |
2561653a | 26 | Requires(post,postun): hicolor-icon-theme |
d010bf6e MB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
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. | |
34 | ||
a4cbac68 JR |
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 | |
40 | hasłem. | |
d010bf6e MB |
41 | |
42 | %prep | |
2561653a | 43 | %setup -q -n xarchiver-%{version} |
56b8cb95 | 44 | %patch0 -p1 |
4514fbe1 | 45 | %patch1 -p1 |
9ce8db24 AG |
46 | mv -f po/nb{_NO,}.po |
47 | mv -f po/pt{_PT,}.po | |
48 | sed -e 's/nb_NO/nb/;s/pt_PT/pt/' -i po/LINGUAS | |
d010bf6e MB |
49 | |
50 | %build | |
03c9f12e | 51 | %{__intltoolize} |
d010bf6e MB |
52 | %{__libtoolize} |
53 | %{__aclocal} | |
54 | %{__autoconf} | |
55 | %{__autoheader} | |
56 | %{__automake} | |
57 | %configure | |
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
d010bf6e MB |
62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
8074d429 | 65 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/xarchiver/{AUTHORS,ChangeLog,COPYING,NEWS,README,TODO} |
64b6cdcb | 66 | |
d010bf6e MB |
67 | %find_lang xarchiver |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | %update_desktop_database_post | |
2561653a | 74 | %update_icon_cache hicolor |
d010bf6e MB |
75 | |
76 | %postun | |
77 | %update_desktop_database_postun | |
2561653a | 78 | %update_icon_cache hicolor |
d010bf6e MB |
79 | |
80 | %files -f xarchiver.lang | |
81 | %defattr(644,root,root,755) | |
2561653a | 82 | %doc AUTHORS ChangeLog README TODO |
d010bf6e MB |
83 | %attr(755,root,root) %{_bindir}/xarchiver |
84 | %attr(755,root,root) %{_libdir}/thunar-archive-plugin/*.tap | |
883be17f | 85 | %dir %{_docdir}/xarchiver |
64b6cdcb MB |
86 | %docdir %{_docdir}/xarchiver |
87 | %{_docdir}/xarchiver/html | |
8074d429 ER |
88 | %{_iconsdir}/hicolor/*/apps/xarchiver.png |
89 | %{_iconsdir}/hicolor/scalable/apps/xarchiver.svg | |
2561653a | 90 | %{_pixmapsdir}/xarchiver |
d010bf6e | 91 | %{_desktopdir}/*.desktop |