]>
Commit | Line | Data |
---|---|---|
9a1058cd | 1 | # |
2 | # Conditinal build: | |
29b9984f | 3 | %bcond_without apidocs # disable API documentation |
fdbbe933 | 4 | %bcond_without selinux # SELinux context support in file properties dialog |
fd14bf9f | 5 | |
fdbbe933 JB |
6 | %ifarch alpha ia64 m68k parisc parisc64 sh4 sparc sparcv9 sparc64 |
7 | %define use_seccomp 0 | |
8 | %else | |
9 | %define use_seccomp 1 | |
10 | %endif | |
38fc004d | 11 | Summary: Nautilus is a file manager for the GNOME desktop environment |
8c9c4b24 ER |
12 | Summary(pl.UTF-8): Nautilus - powłoka GNOME i zarządca plików |
13 | Summary(pt_BR.UTF-8): Nautilus é um gerenciador de arquivos para o GNOME | |
5022deb0 | 14 | Name: nautilus |
e3d1a2aa | 15 | Version: 3.32.3 |
3f4a3dcd | 16 | Release: 1 |
fdbbe933 | 17 | License: GPL v3+ |
707ac973 | 18 | Group: X11/Applications |
fdbbe933 | 19 | Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus/3.32/%{name}-%{version}.tar.xz |
e3d1a2aa | 20 | # Source0-md5: b93eb082e70eee5811ed6fce20a6fff7 |
fdbbe933 | 21 | URL: https://wiki.gnome.org/Apps/Files |
e8c191e0 | 22 | BuildRequires: docbook-dtd412-xml |
fdbbe933 JB |
23 | BuildRequires: fontconfig-devel |
24 | # -std=c11 | |
25 | BuildRequires: gcc >= 6:4.7 | |
0d11ad7f | 26 | BuildRequires: gettext-tools >= 0.19.7 |
fdbbe933 JB |
27 | BuildRequires: gexiv2-devel >= 0.10.0 |
28 | BuildRequires: glib2-devel >= 1:2.58.1 | |
bf4c5db5 | 29 | BuildRequires: gnome-autoar-devel >= 0.2.1 |
7e6e46c3 | 30 | BuildRequires: gobject-introspection-devel >= 0.6.4 |
709b23a5 | 31 | BuildRequires: gsettings-desktop-schemas-devel >= 3.8.0 |
fdbbe933 JB |
32 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 |
33 | BuildRequires: gtk+3-devel >= 3.22.27 | |
90350828 | 34 | BuildRequires: gtk-doc >= 1.10 |
fdbbe933 JB |
35 | %if %{use_seccomp} |
36 | BuildRequires: libseccomp-devel | |
37 | %endif | |
38 | %{?with_selinux:BuildRequires: libselinux-devel >= 2.0} | |
93ae7777 | 39 | BuildRequires: libxml2-devel >= 1:2.7.8 |
fdbbe933 JB |
40 | BuildRequires: meson >= 0.47.0 |
41 | BuildRequires: ninja >= 1.5 | |
1eee0929 | 42 | BuildRequires: pkgconfig |
e3d1a2aa | 43 | BuildRequires: rpmbuild(macros) >= 1.736 |
fdbbe933 JB |
44 | BuildRequires: tracker-devel >= 2.0 |
45 | BuildRequires: xorg-lib-libX11-devel | |
b441649d | 46 | Requires(post,postun): desktop-file-utils |
fdbbe933 | 47 | Requires(post,postun): glib2 >= 1:2.58.1 |
0d11ad7f | 48 | Requires(post,postun): gtk-update-icon-cache |
8caf1403 | 49 | Requires: %{name}-libs = %{version}-%{release} |
fdbbe933 | 50 | Requires: glib2 >= 1:2.58.1 |
bf4c5db5 | 51 | Requires: gnome-autoar >= 0.2.1 |
709b23a5 | 52 | Requires: gsettings-desktop-schemas >= 3.8.0 |
d089021e | 53 | Requires: gvfs >= 1.16.0 |
0d11ad7f | 54 | Requires: hicolor-icon-theme |
58d47af8 | 55 | Requires: libxml2 >= 1:2.7.8 |
fdbbe933 | 56 | Requires: tracker >= 2.0 |
dc0b317e | 57 | Provides: gnome-volume-manager |
5b4f83db | 58 | Obsoletes: eel |
dc0b317e | 59 | Obsoletes: gnome-volume-manager |
22d2e9fa | 60 | Obsoletes: gstreamer-player-nautilus |
c5f9c15a | 61 | Obsoletes: nautilus-gtkhtml |
ec5a29d6 | 62 | Obsoletes: nautilus-media |
5022deb0 PG |
63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
64 | ||
c6b5c285 | 65 | %description |
5022deb0 PG |
66 | Nautilus integrates access to files, applications, media, |
67 | Internet-based resources and the Web. Nautilus delivers a dynamic and | |
68 | rich user experience. Nautilus is an free software project developed | |
69 | under the GNU General Public License and is a core component of the | |
70 | GNOME desktop project. | |
c6b5c285 | 71 | |
2b737679 JR |
72 | %description -l pl.UTF-8 |
73 | GNU Nautilus jest programem do zarządzania plikami i graficzną powłoką | |
74 | dla GNOME. Służy również bardzo dobrze jako przeglądarka stron WWW. | |
c6b5c285 | 75 | |
2b737679 JR |
76 | %description -l pt_BR.UTF-8 |
77 | O nautilus é um excelente gerenciador de arquivos para o GNOME. | |
dae44d33 | 78 | |
707ac973 | 79 | %package libs |
80 | Summary: Nautilus libraries | |
8c9c4b24 | 81 | Summary(pl.UTF-8): Biblioteki Nautilusa |
707ac973 | 82 | Group: X11/Libraries |
fdbbe933 JB |
83 | Requires: glib2 >= 1:2.58.1 |
84 | Requires: gtk+3 >= 3.22.27 | |
707ac973 | 85 | |
86 | %description libs | |
87 | Nautilus libraries. | |
88 | ||
2b737679 | 89 | %description libs -l pl.UTF-8 |
707ac973 | 90 | Biblioteki Nautilusa. |
91 | ||
bc314b50 | 92 | %package devel |
4ed3035e | 93 | Summary: Libraries and include files for developing Nautilus components |
8c9c4b24 ER |
94 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia komponentów dla Nautilusa |
95 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos para desenvolvimento com o nautilus | |
707ac973 | 96 | Group: X11/Development/Libraries |
1eee0929 | 97 | Requires: %{name}-libs = %{version}-%{release} |
fdbbe933 JB |
98 | Requires: glib2-devel >= 1:2.58.1 |
99 | Requires: gtk+3-devel >= 3.22.27 | |
5b4f83db | 100 | Obsoletes: eel-devel |
f36e1b58 | 101 | Obsoletes: nautils-static |
bc314b50 | 102 | |
103 | %description devel | |
4ed3035e KT |
104 | This package provides the necessary development libraries and include |
105 | files to allow you to develop Nautilus components. | |
bc314b50 | 106 | |
2b737679 JR |
107 | %description devel -l pl.UTF-8 |
108 | Biblioteki i pliki nagłówkowe potrzebne do programowania. | |
bc314b50 | 109 | |
2b737679 JR |
110 | %description devel -l pt_BR.UTF-8 |
111 | Este pacote fornece os arquivos necessários para desenvolvimento | |
38fc004d | 112 | utilizando componentes do nautilus. |
dae44d33 | 113 | |
29b9984f MB |
114 | %package apidocs |
115 | Summary: Nautilus API documentation | |
116 | Summary(pl.UTF-8): Dokumentacja API Nautilusa | |
117 | Group: Documentation | |
118 | Requires: gtk-doc-common | |
45107b56 ER |
119 | %if "%{_rpmversion}" >= "5" |
120 | BuildArch: noarch | |
121 | %endif | |
29b9984f MB |
122 | |
123 | %description apidocs | |
124 | Nautilus API documentation. | |
125 | ||
126 | %description apidocs -l pl.UTF-8 | |
127 | Dokumentacja API Nautilusa. | |
128 | ||
707ac973 | 129 | %prep |
ef313bbe | 130 | %setup -q |
ef313bbe | 131 | |
132 | %build | |
f36e1b58 | 133 | %meson build \ |
fdbbe933 | 134 | -Ddocs=%{__true_false apidocs} \ |
735ebd45 | 135 | -Dpackagekit=true \ |
fdbbe933 | 136 | %{?with_selinux:-Dselinux=true} |
f36e1b58 JR |
137 | |
138 | %meson_build -C build | |
ef313bbe | 139 | |
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
f36e1b58 | 143 | %meson_install -C build |
93ae7777 | 144 | |
09483640 MB |
145 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
146 | ||
58d47af8 JB |
147 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
148 | # not supported by glibc | |
fdbbe933 | 149 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
58d47af8 | 150 | |
ef313bbe | 151 | %find_lang %{name} --with-gnome --all-name |
152 | ||
153 | %clean | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
b441649d | 156 | %post |
0d11ad7f | 157 | %update_icon_cache hicolor |
0c38bfba | 158 | %update_desktop_database_post |
93ae7777 | 159 | %glib_compile_schemas |
b441649d | 160 | |
161 | %postun | |
0d11ad7f | 162 | %update_icon_cache hicolor |
0c38bfba | 163 | %update_desktop_database_postun |
93ae7777 MB |
164 | if [ "$1" = "0" ]; then |
165 | %glib_compile_schemas | |
166 | fi | |
b441649d | 167 | |
d072a499 | 168 | %post libs -p /sbin/ldconfig |
169 | %postun libs -p /sbin/ldconfig | |
b3b1f241 | 170 | |
c52d9b8d | 171 | %files -f %{name}.lang |
5022deb0 | 172 | %defattr(644,root,root,755) |
f36e1b58 | 173 | %doc NEWS README.md |
2063fb7d PZ |
174 | %attr(755,root,root) %{_bindir}/nautilus |
175 | %attr(755,root,root) %{_bindir}/nautilus-autorun-software | |
8d5f7d8d | 176 | %dir %{_libdir}/nautilus |
93ae7777 | 177 | %dir %{_libdir}/nautilus/extensions-3.0 |
735ebd45 | 178 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-image-properties.so |
93ae7777 | 179 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-sendto.so |
fdbbe933 | 180 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libtotem-properties-page.so |
735ebd45 | 181 | %{_datadir}/metainfo/org.gnome.Nautilus.appdata.xml |
43ed4905 | 182 | %{_datadir}/dbus-1/services/org.freedesktop.FileManager1.service |
93ae7777 | 183 | %{_datadir}/dbus-1/services/org.gnome.Nautilus.service |
58d47af8 | 184 | %{_datadir}/glib-2.0/schemas/org.gnome.nautilus.gschema.xml |
141ae54e | 185 | %{_desktopdir}/nautilus-autorun-software.desktop |
141ae54e | 186 | %{_desktopdir}/org.gnome.Nautilus.desktop |
141ae54e | 187 | %{_mandir}/man1/nautilus.1* |
9a0845ed | 188 | %{_datadir}/gnome-shell/search-providers/org.gnome.Nautilus.search-provider.ini |
fdbbe933 | 189 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Nautilus.svg |
0d11ad7f | 190 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Nautilus-symbolic.svg |
707ac973 | 191 | |
192 | %files libs | |
193 | %defattr(644,root,root,755) | |
2063fb7d PZ |
194 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so.*.*.* |
195 | %attr(755,root,root) %ghost %{_libdir}/libnautilus-extension.so.1 | |
58d47af8 | 196 | %{_libdir}/girepository-1.0/Nautilus-3.0.typelib |
bc314b50 | 197 | |
198 | %files devel | |
5022deb0 | 199 | %defattr(644,root,root,755) |
2063fb7d | 200 | %attr(755,root,root) %{_libdir}/libnautilus-extension.so |
2063fb7d | 201 | %{_includedir}/nautilus |
58d47af8 | 202 | %{_datadir}/gir-1.0/Nautilus-3.0.gir |
2063fb7d | 203 | %{_pkgconfigdir}/libnautilus-extension.pc |
38fc004d | 204 | |
29b9984f MB |
205 | %if %{with apidocs} |
206 | %files apidocs | |
207 | %defattr(644,root,root,755) | |
208 | %{_gtkdocdir}/libnautilus-extension | |
209 | %endif |