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