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