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