]>
Commit | Line | Data |
---|---|---|
2417c09b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
927eb550 | 5 | %define clutter_ver 1.21.5 |
66cfec93 JB |
6 | # max(ecal_req, eds_req) |
7 | %define evolution_data_server_ver 3.33.1 | |
3938a55a JB |
8 | %define gcr_ver 3.90.0 |
9 | %define gjs_ver 1.73.1 | |
2417c09b | 10 | %define glib_ver 1:2.57.2 |
927eb550 | 11 | %define gnome_bluetooth_ver 3.9.0 |
e41d9569 | 12 | %define gnome_desktop_ver 40 |
d3d8624d | 13 | %define gsettings_desktop_schemas_ver 42 |
927eb550 | 14 | %define gtk_ver 3.15.0 |
895e1d39 | 15 | %define ibus_ver 1.5.19 |
927eb550 | 16 | %define json_glib_ver 0.13.90 |
927eb550 | 17 | %define libsecret_ver 0.18 |
e41d9569 | 18 | %define mutter_ver 44.0 |
927eb550 JB |
19 | %define NetworkManager_ver 1.10.4 |
20 | %define polkit_ver 0.100 | |
f066ba12 | 21 | %define pulseaudio_ver 13 |
927eb550 | 22 | %define startup_notification_ver 0.11 |
9eff3152 ER |
23 | |
24 | Summary: Window manager and application launcher for GNOME | |
5b31201b | 25 | Summary(pl.UTF-8): Zarządca okien i uruchamiania aplikacji dla GNOME |
9eff3152 | 26 | Name: gnome-shell |
45c9756b | 27 | Version: 44.4 |
bf4ec37c | 28 | Release: 1 |
9eff3152 ER |
29 | License: GPL v2+ |
30 | Group: X11/Window Managers | |
e41d9569 | 31 | Source0: https://download.gnome.org/sources/gnome-shell/44/%{name}-%{version}.tar.xz |
45c9756b | 32 | # Source0-md5: 7448870f7537ece593e0ca2eaf547379 |
d3d8624d | 33 | Patch0: %{name}-no-update.patch |
66cfec93 | 34 | URL: https://wiki.gnome.org/Projects/GnomeShell |
927eb550 | 35 | BuildRequires: NetworkManager-devel >= %{NetworkManager_ver} |
895e1d39 | 36 | BuildRequires: asciidoc |
927eb550 | 37 | BuildRequires: at-spi2-atk-devel |
3938a55a | 38 | BuildRequires: bash-completion-devel >= 1:2.0 |
927eb550 JB |
39 | BuildRequires: clutter-devel >= %{clutter_ver} |
40 | BuildRequires: evolution-data-server-devel >= %{evolution_data_server_ver} | |
3938a55a | 41 | BuildRequires: gcr4-devel >= %{gcr_ver} |
e1a28f5f | 42 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
d655008b | 43 | BuildRequires: gettext-tools >= 0.19.6 |
927eb550 JB |
44 | BuildRequires: gjs-devel >= %{gjs_ver} |
45 | BuildRequires: glib2-devel >= %{glib_ver} | |
4752e510 | 46 | BuildRequires: gnome-autoar-devel |
d3d8624d | 47 | BuildRequires: gnome-bluetooth3-devel >= %{gnome_bluetooth_ver} |
18eae144 | 48 | BuildRequires: gnome-control-center-devel |
e41d9569 | 49 | BuildRequires: gnome-desktop4-devel >= %{gnome_desktop_ver} |
1a06835a | 50 | BuildRequires: gobject-introspection-devel >= 1.50.0 |
927eb550 | 51 | BuildRequires: gsettings-desktop-schemas-devel >= %{gsettings_desktop_schemas_ver} |
1255cf42 ŁK |
52 | BuildRequires: gstreamer-devel >= 1.0.0 |
53 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.0 | |
927eb550 | 54 | BuildRequires: gtk+3-devel >= %{gtk_ver} |
95fb3a76 | 55 | BuildRequires: gtk4-devel >= 4 |
2417c09b | 56 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.15} |
895e1d39 | 57 | BuildRequires: ibus-devel >= %{ibus_ver} |
927eb550 | 58 | BuildRequires: json-glib-devel >= %{json_glib_ver} |
18eae144 | 59 | BuildRequires: libcanberra-devel |
6e495a72 | 60 | BuildRequires: libcanberra-gtk3-devel |
927eb550 | 61 | BuildRequires: libsecret-devel >= %{libsecret_ver} |
3938a55a JB |
62 | # or libsoup 2.4 with -Dsoup2=true, must be in sync with libgweather |
63 | BuildRequires: libsoup3-devel >= 3.0 | |
927eb550 | 64 | BuildRequires: libxml2-devel >= 2.0 |
cfbe7068 | 65 | BuildRequires: libxslt-progs |
d3d8624d | 66 | BuildRequires: meson >= 0.58.0 |
927eb550 JB |
67 | BuildRequires: mutter-devel >= %{mutter_ver} |
68 | BuildRequires: ninja >= 1.5 | |
2417c09b | 69 | BuildRequires: pipewire-devel >= 0.3 |
80f1cab6 | 70 | BuildRequires: pkgconfig >= 1:0.22 |
927eb550 JB |
71 | BuildRequires: polkit-devel >= %{polkit_ver} |
72 | BuildRequires: pulseaudio-devel >= %{pulseaudio_ver} | |
2417c09b | 73 | BuildRequires: python3 >= 1:3 |
927eb550 | 74 | BuildRequires: python3-pygobject3 >= 3 |
f066ba12 | 75 | BuildRequires: rpm-build >= 4.6 |
a985b63a | 76 | BuildRequires: rpm-pythonprov |
ce20bc45 | 77 | BuildRequires: rpmbuild(macros) >= 1.752 |
d22882ab | 78 | BuildRequires: sassc |
e1a28f5f | 79 | BuildRequires: sed >= 4.0 |
927eb550 | 80 | BuildRequires: startup-notification-devel >= %{startup_notification_ver} |
fa065de0 | 81 | BuildRequires: systemd-devel |
2417c09b | 82 | BuildRequires: systemd-units |
293b02ce | 83 | BuildRequires: tar >= 1:1.22 |
18eae144 AF |
84 | BuildRequires: xorg-lib-libX11-devel |
85 | BuildRequires: xorg-lib-libXfixes-devel | |
293b02ce | 86 | BuildRequires: xz |
2417c09b | 87 | Requires(post,postun): glib2 >= %{glib_ver} |
927eb550 | 88 | # gjs->gi->NMA.gir |
927eb550 | 89 | Requires: NetworkManager-libs >= %{NetworkManager_ver} |
efd1d74e | 90 | Requires: adwaita-icon-theme |
90f9906f | 91 | Requires: at-spi2-atk >= 2.4.0 |
927eb550 JB |
92 | Requires: clutter >= %{clutter_ver} |
93 | Requires: evolution-data-server >= %{evolution_data_server_ver} | |
3938a55a | 94 | Requires: gcr4 >= %{gcr_ver} |
927eb550 JB |
95 | Requires: gjs >= %{gjs_ver} |
96 | Requires: glib2 >= %{glib_ver} | |
da81a1dc | 97 | Requires: gnome-bluetooth3-libs >= %{gnome_bluetooth_ver} |
e41d9569 | 98 | Requires: gnome-desktop4 >= %{gnome_desktop_ver} |
18eae144 | 99 | Requires: gnome-settings-daemon >= 3.8.0 |
927eb550 JB |
100 | Requires: gsettings-desktop-schemas >= %{gsettings_desktop_schemas_ver} |
101 | Requires: gtk+3 >= %{gtk_ver} | |
895e1d39 | 102 | Requires: ibus >= %{ibus_ver} |
927eb550 | 103 | Requires: json-glib >= %{json_glib_ver} |
927eb550 JB |
104 | Requires: libsecret >= %{libsecret_ver} |
105 | Requires: mutter >= %{mutter_ver} | |
18eae144 | 106 | Requires: nautilus >= 3.8.0 |
927eb550 JB |
107 | Requires: polkit >= %{polkit_ver} |
108 | Requires: pulseaudio-libs >= %{pulseaudio_ver} | |
109 | Requires: startup-notification >= %{startup_notification_ver} | |
110 | # gjs->gir->TelepathyGLib | |
111 | Requires: telepathy-glib >= 0.17.5 | |
112 | # gjs->gir->TelepathyLogger | |
e8594913 | 113 | Requires: telepathy-logger-libs >= 0.2 |
90f9906f | 114 | Requires: telepathy-mission-control |
21482538 | 115 | Suggests: gnome-contacts >= 3.2.0 |
18eae144 | 116 | Suggests: gnome-icon-theme-symbolic >= 3.8.0 |
6e495a72 | 117 | Provides: gdm-wm = 3.8.0 |
a3fecae6 | 118 | Obsoletes: browser-plugin-gnome-shell < 3.32.2-1 |
1a7ebb2b | 119 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
120 | ||
121 | %description | |
80f1cab6 ŁK |
122 | GNOME Shell is the defining technology of the GNOME 3 desktop user |
123 | experience. It provides core interface functions like switching to | |
124 | windows and launching applications. GNOME Shell takes advantage of the | |
125 | capabilities of modern graphics hardware and introduces innovative | |
126 | user interface concepts to provide a delightful and easy to use | |
127 | experience. | |
1a7ebb2b | 128 | |
5b31201b JB |
129 | %description -l pl.UTF-8 |
130 | GNOME Shell to technologia definiująca doznania użytkownika środowiska | |
131 | graficznego GNOME 3. Zapewnia podstawowe funkcje interfejsu, takie jak | |
132 | przełączanie między oknami czy uruchamianie aplikacji. GNOME Shell | |
133 | wykorzystuje mozliwości współczesnego sprzętu graficznego i wprowadza | |
134 | innowacyjne koncepcje interfejsu użytkownika, zapewniające przyjemne | |
135 | doznania i łatwość użycia. | |
136 | ||
f066ba12 JB |
137 | %package -n bash-completion-gnome-shell |
138 | Summary: Bash completion for GNOME Shell commands | |
139 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów poleceń GNOME Shell | |
140 | Group: Applications/Shells | |
141 | Requires: %{name} = %{version}-%{release} | |
3938a55a | 142 | Requires: bash-completion >= 1:2.0 |
95fb3a76 | 143 | BuildArch: noarch |
f066ba12 JB |
144 | |
145 | %description -n bash-completion-gnome-shell | |
146 | Bash completion for GNOME Shell commands. | |
147 | ||
148 | %description -n bash-completion-gnome-shell -l pl.UTF-8 | |
149 | Bashowe dopełnianie parametrów poleceń GNOME Shell. | |
150 | ||
7e95cc9d MB |
151 | %package devel |
152 | Summary: Development files for GNOME Shell | |
153 | Summary(pl.UTF-8): Pliki programistyczne dla GNOME Shell | |
154 | Group: Development/Libraries | |
f066ba12 | 155 | BuildArch: noarch |
7e95cc9d MB |
156 | |
157 | %description devel | |
158 | This package provides development files for GNOME Shell. | |
159 | ||
160 | %description devel -l pl.UTF-8 | |
161 | Ten pakiet dostarcza pliki programistyczne dla GNOME Shell. | |
162 | ||
a860f861 ŁK |
163 | %package apidocs |
164 | Summary: GNOME Shell API documentation | |
165 | Summary(pl.UTF-8): Dokumentacja API GNOME Shell | |
166 | Group: Documentation | |
167 | Requires: gtk-doc-common | |
100086ca | 168 | BuildArch: noarch |
a860f861 ŁK |
169 | |
170 | %description apidocs | |
171 | This package provides GNOME Shell API documentation. | |
172 | ||
173 | %description apidocs -l pl.UTF-8 | |
174 | Ten pakiet dostarcza dokumentację API GNOME Shell. | |
175 | ||
1a7ebb2b | 176 | %prep |
177 | %setup -q | |
d3d8624d | 178 | %patch0 -p1 |
1a7ebb2b | 179 | |
e1a28f5f JB |
180 | %{__sed} -i -e '/^libshew =/ s/ library/ shared_library/' subprojects/shew/src/meson.build |
181 | ||
1a7ebb2b | 182 | %build |
d22882ab | 183 | %meson build \ |
895e1d39 JB |
184 | %{?with_apidocs:-Dgtk_doc=true} \ |
185 | -Dtests=false | |
e1a28f5f | 186 | |
d22882ab | 187 | %meson_build -C build |
1a7ebb2b | 188 | |
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
d5cb8e80 | 191 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/{extensions,search-providers} |
1a7ebb2b | 192 | |
d22882ab | 193 | %meson_install -C build |
1a7ebb2b | 194 | |
de18dffa | 195 | # useless |
e41d9569 | 196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-shell/lib*.a |
80f1cab6 | 197 | |
de18dffa JB |
198 | # not supported by glibc (as of 2.37) |
199 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
ed741a84 | 200 | |
80f1cab6 | 201 | %find_lang %{name} |
1a7ebb2b | 202 | |
203 | %clean | |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
206 | %post | |
80f1cab6 | 207 | %glib_compile_schemas |
1a7ebb2b | 208 | |
80f1cab6 ŁK |
209 | %postun |
210 | if [ "$1" = "0" ]; then | |
211 | %glib_compile_schemas | |
212 | fi | |
1a7ebb2b | 213 | |
214 | %files -f %{name}.lang | |
215 | %defattr(644,root,root,755) | |
927eb550 | 216 | %doc NEWS README.md |
4752e510 | 217 | %attr(755,root,root) %{_bindir}/gnome-extensions |
e1a28f5f | 218 | %attr(755,root,root) %{_bindir}/gnome-extensions-app |
9f710482 | 219 | %attr(755,root,root) %{_bindir}/gnome-shell |
a860f861 | 220 | %attr(755,root,root) %{_bindir}/gnome-shell-extension-prefs |
80f1cab6 | 221 | %attr(755,root,root) %{_bindir}/gnome-shell-extension-tool |
1255cf42 | 222 | %attr(755,root,root) %{_bindir}/gnome-shell-perf-tool |
d22882ab MB |
223 | %attr(755,root,root) %{_libexecdir}/gnome-shell-calendar-server |
224 | %attr(755,root,root) %{_libexecdir}/gnome-shell-hotplug-sniffer | |
225 | %attr(755,root,root) %{_libexecdir}/gnome-shell-perf-helper | |
226 | %attr(755,root,root) %{_libexecdir}/gnome-shell-portal-helper | |
80f1cab6 | 227 | %dir %{_libdir}/gnome-shell |
2b953177 | 228 | %attr(755,root,root) %{_libdir}/gnome-shell/libgnome-shell-menu.so |
62836e06 | 229 | %attr(755,root,root) %{_libdir}/gnome-shell/libgvc.so |
e41d9569 | 230 | %attr(755,root,root) %{_libdir}/gnome-shell/libshell-12.so |
899bb8e4 | 231 | %attr(755,root,root) %{_libdir}/gnome-shell/libshew-0.so |
e41d9569 | 232 | %attr(755,root,root) %{_libdir}/gnome-shell/libst-12.so |
80f1cab6 | 233 | %{_libdir}/gnome-shell/Gvc-1.0.typelib |
e41d9569 JB |
234 | %{_libdir}/gnome-shell/Shell-12.typelib |
235 | %{_libdir}/gnome-shell/St-12.typelib | |
899bb8e4 JR |
236 | %dir %{_libdir}/gnome-shell/girepository-1.0 |
237 | %{_libdir}/gnome-shell/girepository-1.0/Shew-0.typelib | |
a3fecae6 | 238 | %{_datadir}/dbus-1/interfaces/org.gnome.Shell.Introspect.xml |
899bb8e4 | 239 | %{_datadir}/dbus-1/services/org.gnome.Extensions.service |
95fb3a76 | 240 | %{_datadir}/dbus-1/services/org.gnome.ScreenSaver.service |
80f1cab6 | 241 | %{_datadir}/dbus-1/services/org.gnome.Shell.CalendarServer.service |
899bb8e4 | 242 | %{_datadir}/dbus-1/services/org.gnome.Shell.Extensions.service |
293b02ce | 243 | %{_datadir}/dbus-1/services/org.gnome.Shell.HotplugSniffer.service |
899bb8e4 | 244 | %{_datadir}/dbus-1/services/org.gnome.Shell.Notifications.service |
5b242c4e | 245 | %{_datadir}/dbus-1/services/org.gnome.Shell.PortalHelper.service |
2417c09b | 246 | %{_datadir}/dbus-1/services/org.gnome.Shell.Screencast.service |
a3fecae6 | 247 | %{_datadir}/glib-2.0/schemas/00_org.gnome.shell.gschema.override |
80f1cab6 | 248 | %{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.xml |
18eae144 | 249 | %{_datadir}/gnome-control-center/keybindings/*.xml |
80f1cab6 | 250 | %{_datadir}/gnome-shell |
899bb8e4 | 251 | %{_datadir}/metainfo/org.gnome.Extensions.metainfo.xml |
1a06835a | 252 | %{_datadir}/xdg-desktop-portal/portals/gnome-shell.portal |
899bb8e4 | 253 | %{_desktopdir}/org.gnome.Extensions.desktop |
046d4523 | 254 | %{_desktopdir}/org.gnome.Shell.desktop |
899bb8e4 | 255 | %{_desktopdir}/org.gnome.Shell.Extensions.desktop |
5b242c4e | 256 | %{_desktopdir}/org.gnome.Shell.PortalHelper.desktop |
e1a28f5f JB |
257 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Extensions.Devel.svg |
258 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Extensions.svg | |
259 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Shell.Extensions.svg | |
260 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Extensions-symbolic.svg | |
261 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Shell.Extensions-symbolic.svg | |
4752e510 | 262 | %{_mandir}/man1/gnome-extensions.1* |
80f1cab6 | 263 | %{_mandir}/man1/gnome-shell.1* |
2417c09b JB |
264 | %{systemduserunitdir}/org.gnome.Shell.target |
265 | %{systemduserunitdir}/org.gnome.Shell-disable-extensions.service | |
266 | %{systemduserunitdir}/org.gnome.Shell@wayland.service | |
267 | %{systemduserunitdir}/org.gnome.Shell@x11.service | |
293b02ce | 268 | |
f066ba12 JB |
269 | %files -n bash-completion-gnome-shell |
270 | %defattr(644,root,root,755) | |
271 | %{bash_compdir}/gnome-extensions | |
272 | ||
7e95cc9d MB |
273 | %files devel |
274 | %defattr(644,root,root,755) | |
ed741a84 | 275 | %{_datadir}/dbus-1/interfaces/org.gnome.Shell.Extensions.xml |
d655008b | 276 | %{_datadir}/dbus-1/interfaces/org.gnome.Shell.PadOsd.xml |
7e95cc9d MB |
277 | %{_datadir}/dbus-1/interfaces/org.gnome.Shell.Screencast.xml |
278 | %{_datadir}/dbus-1/interfaces/org.gnome.Shell.Screenshot.xml | |
279 | %{_datadir}/dbus-1/interfaces/org.gnome.ShellSearchProvider.xml | |
280 | %{_datadir}/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml | |
281 | ||
2417c09b | 282 | %if %{with apidocs} |
d22882ab MB |
283 | %files apidocs |
284 | %defattr(644,root,root,755) | |
285 | %{_gtkdocdir}/shell | |
286 | %{_gtkdocdir}/st | |
2417c09b | 287 | %endif |