]> git.pld-linux.org Git - packages/file-roller.git/blob - file-roller.spec
34b64ecafd1b1220ebac012151d05305601172b4
[packages/file-roller.git] / file-roller.spec
1 #
2 # Conditional build:
3 %bcond_without  nautilus        # Nautilus extension
4 #
5 Summary:        An archive manager for GNOME
6 Summary(pl.UTF-8):      Zarządca archiwów dla GNOME
7 Summary(pt_BR.UTF-8):   Gerenciador de arquivos compactados para o GNOME
8 Name:           file-roller
9 Version:        3.38.1
10 Release:        1
11 License:        GPL v2+
12 Group:          X11/Applications
13 Source0:        https://download.gnome.org/sources/file-roller/3.38/%{name}-%{version}.tar.xz
14 # Source0-md5:  53583aeb16a89185b132af4e9dc96db2
15 Patch0:         %{name}-packages.patch
16 URL:            https://wiki.gnome.org/Apps/FileRoller
17 BuildRequires:  desktop-file-utils
18 BuildRequires:  docbook-dtd412-xml
19 BuildRequires:  gettext-tools
20 BuildRequires:  glib2-devel >= 1:2.38
21 BuildRequires:  gtk+3-devel >= 3.22.0
22 BuildRequires:  json-glib-devel >= 0.14.0
23 BuildRequires:  libarchive-devel >= 3.0.0
24 BuildRequires:  libnotify-devel >= 0.4.3
25 BuildRequires:  libtool >= 2:2
26 BuildRequires:  libxml2-progs
27 BuildRequires:  meson >= 0.50
28 %{?with_nautilus:BuildRequires: nautilus-devel >= 3.28.0}
29 BuildRequires:  ninja >= 1.5
30 BuildRequires:  pkgconfig
31 BuildRequires:  rpmbuild(find_lang) >= 1.23
32 BuildRequires:  rpmbuild(macros) >= 1.736
33 BuildRequires:  tar >= 1:1.22
34 BuildRequires:  xz
35 BuildRequires:  yelp-tools
36 Requires(post,postun):  desktop-file-utils
37 Requires(post,postun):  glib2 >= 1:2.38
38 Requires(post,postun):  gtk-update-icon-cache
39 Requires:       glib2 >= 1:2.38
40 Requires:       gtk+3 >= 3.22.0
41 Requires:       hicolor-icon-theme
42 Requires:       json-glib >= 0.14.0
43 Requires:       libarchive >= 3.0.0
44 Requires:       libnotify >= 0.4.3
45 Suggests:       bzip2
46 Suggests:       gzip
47 Suggests:       p7zip
48 %ifarch %{ix86}
49 Suggests:       rar
50 %else
51 Suggests:       unrar
52 %endif
53 Suggests:       tar
54 Suggests:       zip
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 File Roller is an archive manager for the GNOME environment. With File
59 Roller you can: create and modify archives; view the content of an
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
62 various archiving programs. The supported file types are:
63 - Tar archives uncompressed (.tar) or compressed with
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)
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.
74
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:
81 - archiwa tar nieskompresowane (.tar) lub skompresowane programami:
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)
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.
93
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
98 pacote e extrair os arquivos de um pacote.
99
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}
105 Requires:       nautilus >= 3.28.0
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
115 %prep
116 %setup -q
117 %patch0 -p1
118
119 %build
120 %meson build
121
122 %ninja_build -C build \
123         %{!?with_nautilus:-Dnautilus-actions=false}
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127
128 %ninja_install -C build
129
130 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian}
131
132 %find_lang %{name} --with-gnome
133
134 %clean
135 rm -rf $RPM_BUILD_ROOT
136
137 %post
138 %update_desktop_database_post
139 %update_icon_cache hicolor
140 %glib_compile_schemas
141
142 %postun
143 %update_desktop_database_postun
144 %update_icon_cache hicolor
145 %glib_compile_schemas
146
147 %files -f %{name}.lang
148 %defattr(644,root,root,755)
149 %doc AUTHORS MAINTAINERS NEWS README.md README_COMMANDLINE
150 %attr(755,root,root) %{_bindir}/file-roller
151 %dir %{_libexecdir}/file-roller
152 %attr(755,root,root) %{_libexecdir}/file-roller/isoinfo.sh
153 %attr(755,root,root) %{_libexecdir}/file-roller/rpm2cpio
154 %{_datadir}/dbus-1/services/org.gnome.FileRoller.service
155 %{_datadir}/dbus-1/services/org.gnome.FileRoller.ArchiveManager1.service
156 %{_datadir}/file-roller
157 %{_datadir}/glib-2.0/schemas/org.gnome.FileRoller.gschema.xml
158 %{_datadir}/metainfo/org.gnome.FileRoller.appdata.xml
159 %{_desktopdir}/org.gnome.FileRoller.desktop
160 %{_iconsdir}/hicolor/scalable/apps/org.gnome.ArchiveManager.svg
161 %{_iconsdir}/hicolor/scalable/apps/org.gnome.ArchiveManager.Devel.svg
162 %{_iconsdir}/hicolor/symbolic/apps/org.gnome.ArchiveManager-symbolic.svg
163
164 %if %{with nautilus}
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
168 %endif
This page took 0.0528 seconds and 2 git commands to generate.