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