]> git.pld-linux.org Git - packages/file-roller.git/blame - file-roller.spec
- updated to 44.3
[packages/file-roller.git] / file-roller.spec
CommitLineData
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 8Summary: An archive manager for GNOME
ae212014
ER
9Summary(pl.UTF-8): Zarządca archiwów dla GNOME
10Summary(pt_BR.UTF-8): Gerenciador de arquivos compactados para o GNOME
31c27243 11Name: file-roller
2fb3f8b2 12Version: 44.3
b7584506 13Release: 1
a1d63170 14License: GPL v2+
bc516785 15Group: X11/Applications
04b0aca2 16Source0: https://download.gnome.org/sources/file-roller/44/%{name}-%{version}.tar.xz
2fb3f8b2 17# Source0-md5: 8f309a2af9788b2291512bdf0cd76ffd
ff319169
JB
18Patch0: %{name}-packages.patch
19URL: https://wiki.gnome.org/Apps/FileRoller
4514881b 20BuildRequires: cpio
17fa215e 21BuildRequires: desktop-file-utils
b4483204 22BuildRequires: docbook-dtd412-xml
8fa5ed8a 23BuildRequires: gettext-tools
4514881b 24%{?with_apidocs:BuildRequires: gi-docgen >= 2021.1}
c11af8e7 25BuildRequires: glib2-devel >= 1:2.38
4514881b 26BuildRequires: gobject-introspection-devel
04b0aca2 27BuildRequires: gtk4-devel >= 4.8.1
51032c45 28BuildRequires: json-glib-devel >= 0.14.0
04b0aca2 29BuildRequires: libadwaita-devel >= 1.2
c0d9d764 30BuildRequires: 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
33BuildRequires: meson >= 0.59
34%{?with_nautilus:BuildRequires: nautilus-devel >= 43}
ff319169 35BuildRequires: ninja >= 1.5
8a61b2ca 36BuildRequires: pkgconfig
65b8f65c 37BuildRequires: rpmbuild(find_lang) >= 1.23
ff319169
JB
38BuildRequires: rpmbuild(macros) >= 1.736
39BuildRequires: tar >= 1:1.22
40BuildRequires: xz
51032c45 41BuildRequires: yelp-tools
00c5670b 42Requires(post,postun): desktop-file-utils
c11af8e7 43Requires(post,postun): glib2 >= 1:2.38
b8b8b51d 44Requires(post,postun): gtk-update-icon-cache
c11af8e7 45Requires: glib2 >= 1:2.38
04b0aca2 46Requires: gtk4 >= 4.8.1
10d48041 47Requires: hicolor-icon-theme
a1d63170 48Requires: json-glib >= 0.14.0
04b0aca2 49Requires: libadwaita >= 1.2
c0d9d764 50Requires: libarchive >= 3.2.0
9e9f3fb0 51Suggests: bzip2
4514881b 52Suggests: cpio
9e9f3fb0
PG
53Suggests: gzip
54Suggests: p7zip
c2c6cb0d 55%ifarch %{ix86}
9e9f3fb0 56Suggests: rar
c2c6cb0d
JB
57%else
58Suggests: unrar
59%endif
9e9f3fb0
PG
60Suggests: tar
61Suggests: zip
31c27243 62BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
cec9f965 63
64%description
31c27243 65File Roller is an archive manager for the GNOME environment. With File
b9656a53 66Roller you can: create and modify archives; view the content of an
31c27243 67archive; view a file contained in the archive; extract files from the
68archive. File Roller is only a front-end (a graphical interface) to
b9656a53 69various 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
83File Roller to zarządca archiwów dla środowiska GNOME. Przy jego
84pomocy można: tworzyć i modyfikować archiwa, oglądać ich zawartość,
85oglądać poszczególne pliki zawarte w archiwum oraz rozpakowywać pliki
86z archiwów. File Roller jest tylko interfejsem graficznym do
87wł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
102File Roller é um gerenciador de pacotes de arquivos compactados para o
103ambiente GNOME. Com ele é possível criar arquivos, visualizar o
104conteúdo de arquivos existentes, visualizar um arquivo contido em um
aede5ef1 105pacote e extrair os arquivos de um pacote.
106
598d6bde
MB
107%package -n nautilus-extension-file-roller
108Summary: File Roller (archive manager) extension for Nautilus (GNOME file manager)
109Summary(pl.UTF-8): Rozszerzenie File Roller (zarządca archiwów) Nautilusa (zarządcy plików GNOME)
110Group: X11/Applications
111Requires: %{name} = %{version}-%{release}
4514881b 112Requires: nautilus >= 43
598d6bde
MB
113
114%description -n nautilus-extension-file-roller
115File Roller (archive manager) extension for Nautilus (GNOME file
116manager).
117
118%description -n nautilus-extension-file-roller -l pl.UTF-8
119Rozszerzenie File Roller (zarządca archiwów) Nautilusa (zarządcy
120plikó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
136rm -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
148rm -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
This page took 0.12092 seconds and 5 git commands to generate.