]>
Commit | Line | Data |
---|---|---|
b976055d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without nautilus # Nautilus extension | |
4 | # | |
31c27243 | 5 | Summary: An archive manager for GNOME |
ae212014 ER |
6 | Summary(pl.UTF-8): Zarządca archiwów dla GNOME |
7 | Summary(pt_BR.UTF-8): Gerenciador de arquivos compactados para o GNOME | |
31c27243 | 8 | Name: file-roller |
29ddf263 | 9 | Version: 3.36.3 |
b7584506 | 10 | Release: 1 |
a1d63170 | 11 | License: GPL v2+ |
bc516785 | 12 | Group: X11/Applications |
c11af8e7 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/file-roller/3.36/%{name}-%{version}.tar.xz |
29ddf263 | 14 | # Source0-md5: 1cadd4b42837d848e5d2da191f4112d6 |
ff319169 JB |
15 | Patch0: %{name}-packages.patch |
16 | URL: https://wiki.gnome.org/Apps/FileRoller | |
17fa215e | 17 | BuildRequires: desktop-file-utils |
b4483204 | 18 | BuildRequires: docbook-dtd412-xml |
8fa5ed8a | 19 | BuildRequires: gettext-tools |
c11af8e7 JB |
20 | BuildRequires: glib2-devel >= 1:2.38 |
21 | BuildRequires: gtk+3-devel >= 3.22.0 | |
51032c45 ŁK |
22 | BuildRequires: json-glib-devel >= 0.14.0 |
23 | BuildRequires: libarchive-devel >= 3.0.0 | |
24 | BuildRequires: libnotify-devel >= 0.4.3 | |
a1d63170 | 25 | BuildRequires: libtool >= 2:2 |
a3da2866 | 26 | BuildRequires: libxml2-progs |
c11af8e7 JB |
27 | BuildRequires: meson >= 0.50 |
28 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.28.0} | |
ff319169 | 29 | BuildRequires: ninja >= 1.5 |
8a61b2ca | 30 | BuildRequires: pkgconfig |
65b8f65c | 31 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
ff319169 JB |
32 | BuildRequires: rpmbuild(macros) >= 1.736 |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
51032c45 | 35 | BuildRequires: yelp-tools |
00c5670b | 36 | Requires(post,postun): desktop-file-utils |
c11af8e7 | 37 | Requires(post,postun): glib2 >= 1:2.38 |
b8b8b51d | 38 | Requires(post,postun): gtk-update-icon-cache |
c11af8e7 JB |
39 | Requires: glib2 >= 1:2.38 |
40 | Requires: gtk+3 >= 3.22.0 | |
10d48041 | 41 | Requires: hicolor-icon-theme |
a1d63170 JB |
42 | Requires: json-glib >= 0.14.0 |
43 | Requires: libarchive >= 3.0.0 | |
44 | Requires: libnotify >= 0.4.3 | |
9e9f3fb0 PG |
45 | Suggests: bzip2 |
46 | Suggests: gzip | |
47 | Suggests: p7zip | |
c2c6cb0d | 48 | %ifarch %{ix86} |
9e9f3fb0 | 49 | Suggests: rar |
c2c6cb0d JB |
50 | %else |
51 | Suggests: unrar | |
52 | %endif | |
9e9f3fb0 PG |
53 | Suggests: tar |
54 | Suggests: zip | |
31c27243 | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
cec9f965 | 56 | |
57 | %description | |
31c27243 | 58 | File Roller is an archive manager for the GNOME environment. With File |
b9656a53 | 59 | Roller you can: create and modify archives; view the content of an |
31c27243 | 60 | archive; view a file contained in the archive; extract files from the |
61 | archive. File Roller is only a front-end (a graphical interface) to | |
b9656a53 | 62 | various archiving programs. The supported file types are: |
48b730b6 | 63 | - Tar archives uncompressed (.tar) or compressed with |
84d723ef MB |
64 | - gzip (.tar.gz , .tgz) |
65 | - bzip (.tar.bz , .tbz) | |
66 | - bzip2 (.tar.bz2 , .tbz2) | |
67 | - compress (.tar.Z , .taz) | |
68 | - lzop (.tar.lzo , .tzo) | |
48b730b6 | 69 | - Zip archives (.zip) |
70 | - Jar archives (.jar , .ear , .war) | |
71 | - Lha archives (.lzh) | |
72 | - Rar archives (.rar) | |
73 | - Single files compressed with gzip, bzip, bzip2, compress, lzop. | |
b9656a53 | 74 | |
10ce1a3a JR |
75 | %description -l pl.UTF-8 |
76 | File Roller to zarządca archiwów dla środowiska GNOME. Przy jego | |
77 | pomocy można: tworzyć i modyfikować archiwa, oglądać ich zawartość, | |
78 | oglądać poszczególne pliki zawarte w archiwum oraz rozpakowywać pliki | |
79 | z archiwów. File Roller jest tylko interfejsem graficznym do | |
80 | właściwych programów archiwizujących. Obsługiwane typy plików to: | |
b9656a53 | 81 | - archiwa tar nieskompresowane (.tar) lub skompresowane programami: |
84d723ef MB |
82 | - gzip (.tar.gz, .tgz) |
83 | - bzip (.tar.bz, .tbz) | |
84 | - bzip2 (.tar.bz2, .tbz2) | |
85 | - compress (.tar.Z, .taz) | |
86 | - lzop (.tar.lzo, .tzo) | |
b9656a53 JB |
87 | - archiwa zip (.zip) |
88 | - archiwa jar (.jar, .ear, .war) | |
89 | - archiwa lha (.lzh) | |
90 | - archiwa rar (.rar) | |
91 | - pojedyncze pliki skompresowane programami gzip, bzip, bzip2, | |
92 | compress, lzop. | |
cec9f965 | 93 | |
10ce1a3a JR |
94 | %description -l pt_BR.UTF-8 |
95 | File Roller é um gerenciador de pacotes de arquivos compactados para o | |
96 | ambiente GNOME. Com ele é possível criar arquivos, visualizar o | |
97 | conteúdo de arquivos existentes, visualizar um arquivo contido em um | |
aede5ef1 | 98 | pacote e extrair os arquivos de um pacote. |
99 | ||
598d6bde MB |
100 | %package -n nautilus-extension-file-roller |
101 | Summary: File Roller (archive manager) extension for Nautilus (GNOME file manager) | |
102 | Summary(pl.UTF-8): Rozszerzenie File Roller (zarządca archiwów) Nautilusa (zarządcy plików GNOME) | |
103 | Group: X11/Applications | |
104 | Requires: %{name} = %{version}-%{release} | |
c11af8e7 | 105 | Requires: nautilus >= 3.28.0 |
598d6bde MB |
106 | |
107 | %description -n nautilus-extension-file-roller | |
108 | File Roller (archive manager) extension for Nautilus (GNOME file | |
109 | manager). | |
110 | ||
111 | %description -n nautilus-extension-file-roller -l pl.UTF-8 | |
112 | Rozszerzenie File Roller (zarządca archiwów) Nautilusa (zarządcy | |
113 | plików GNOME). | |
114 | ||
cec9f965 | 115 | %prep |
31c27243 | 116 | %setup -q |
ff319169 | 117 | %patch0 -p1 |
36d56671 | 118 | |
cec9f965 | 119 | %build |
ff319169 JB |
120 | %meson build |
121 | ||
122 | %ninja_build -C build \ | |
123 | %{!?with_nautilus:-Dnautilus-actions=false} | |
cec9f965 | 124 | |
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
31c27243 | 127 | |
ff319169 | 128 | %ninja_install -C build |
b976055d JB |
129 | |
130 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
266b1094 | 131 | |
de9df885 | 132 | %find_lang %{name} --with-gnome |
cec9f965 | 133 | |
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
bc516785 | 137 | %post |
f52ca67d | 138 | %update_desktop_database_post |
0012084e | 139 | %update_icon_cache hicolor |
10d48041 | 140 | %glib_compile_schemas |
bc516785 | 141 | |
f9bd93bf | 142 | %postun |
f52ca67d | 143 | %update_desktop_database_postun |
0012084e | 144 | %update_icon_cache hicolor |
10d48041 | 145 | %glib_compile_schemas |
bc516785 | 146 | |
31c27243 | 147 | %files -f %{name}.lang |
148 | %defattr(644,root,root,755) | |
c11af8e7 | 149 | %doc AUTHORS MAINTAINERS NEWS README.md README_COMMANDLINE |
31c27243 | 150 | %attr(755,root,root) %{_bindir}/file-roller |
ff319169 JB |
151 | %dir %{_libexecdir}/file-roller |
152 | %attr(755,root,root) %{_libexecdir}/file-roller/isoinfo.sh | |
153 | %attr(755,root,root) %{_libexecdir}/file-roller/rpm2cpio | |
10d48041 | 154 | %{_datadir}/dbus-1/services/org.gnome.FileRoller.service |
3d46338e | 155 | %{_datadir}/dbus-1/services/org.gnome.FileRoller.ArchiveManager1.service |
31c27243 | 156 | %{_datadir}/file-roller |
10d48041 | 157 | %{_datadir}/glib-2.0/schemas/org.gnome.FileRoller.gschema.xml |
ff319169 | 158 | %{_datadir}/metainfo/org.gnome.FileRoller.appdata.xml |
3d46338e | 159 | %{_desktopdir}/org.gnome.FileRoller.desktop |
ff319169 | 160 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.ArchiveManager.svg |
c11af8e7 | 161 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.ArchiveManager.Devel.svg |
ff319169 | 162 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.ArchiveManager-symbolic.svg |
598d6bde | 163 | |
b976055d | 164 | %if %{with nautilus} |
598d6bde MB |
165 | %files -n nautilus-extension-file-roller |
166 | %defattr(644,root,root,755) | |
167 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-fileroller.so | |
b976055d | 168 | %endif |