]>
Commit | Line | Data |
---|---|---|
90c4694f | 1 | # TODO: is polkit-gnome still used? |
844361f7 MB |
2 | # |
3 | # Conditiional build: | |
f268c879 ŁK |
4 | %bcond_without systemd # disable systemd tracking support |
5 | %bcond_without consolekit # disable ConsoleKit tracking support (when systemd is enabled use as a fallback) | |
844361f7 | 6 | # |
a7db97bd JB |
7 | Summary: Session support tools for the GNOME GUI desktop environment |
8 | Summary(pl.UTF-8): Programy obsługujęce sesję dla środowiska graficznego GNOME | |
2f7c99be | 9 | Name: gnome-session |
9db689c9 | 10 | Version: 40.0 |
32983537 | 11 | Release: 1 |
71f2e5a1 | 12 | Epoch: 1 |
ed4eec8c | 13 | License: GPL v2+ |
2f7c99be | 14 | Group: X11/Applications |
9db689c9 JB |
15 | Source0: https://download.gnome.org/sources/gnome-session/40/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 662f731dacf1aedeb166681166451068 | |
4ead5ef1 | 17 | Source1: polkit-gnome-authentication-agent-1.desktop |
32983537 | 18 | URL: https://wiki.gnome.org/Projects/SessionManagement |
4dd50b1f | 19 | BuildRequires: EGL-devel |
d9da375c | 20 | BuildRequires: Mesa-libGL-devel |
4dd50b1f | 21 | BuildRequires: OpenGLESv2-devel |
ed4eec8c | 22 | %{?with_consolekit:BuildRequires: dbus-glib-devel >= 0.76} |
27b4641d | 23 | BuildRequires: gettext-tools |
3612c2fe | 24 | BuildRequires: glib2-devel >= 1:2.46.0 |
4ead5ef1 JB |
25 | BuildRequires: gnome-desktop-devel >= 3.34.2 |
26 | BuildRequires: gtk+3-devel >= 3.22.0 | |
1e10e9f4 | 27 | BuildRequires: json-glib-devel >= 0.10 |
4dd50b1f | 28 | BuildRequires: libepoxy-devel |
d9da375c | 29 | BuildRequires: libxslt-progs |
4ead5ef1 | 30 | BuildRequires: meson >= 0.53.0 |
90c4694f | 31 | BuildRequires: ninja >= 1.5 |
fd6ebe61 | 32 | BuildRequires: perl-base |
dcff72af | 33 | BuildRequires: pkgconfig >= 1:0.9.0 |
90c4694f | 34 | BuildRequires: rpmbuild(macros) >= 1.736 |
dcff72af | 35 | BuildRequires: sed >= 4.0 |
ed4eec8c | 36 | %{?with_systemd:BuildRequires: systemd-devel >= 1:209} |
4ead5ef1 | 37 | BuildRequires: systemd-units >= 1:242 |
32983537 | 38 | BuildRequires: tar >= 1:1.22 |
dcff72af ŁK |
39 | BuildRequires: xmlto |
40 | BuildRequires: xorg-lib-libICE-devel | |
f61e6571 | 41 | BuildRequires: xorg-lib-libSM-devel |
ed4eec8c | 42 | BuildRequires: xorg-lib-libX11-devel |
dcff72af | 43 | BuildRequires: xorg-lib-libXcomposite-devel |
f61e6571 | 44 | BuildRequires: xorg-lib-xtrans-devel |
32983537 | 45 | BuildRequires: xz |
3612c2fe | 46 | Requires(post,postun): glib2 >= 1:2.46.0 |
90c4694f | 47 | %{?with_consolekit:Requires: dbus-glib >= 0.76} |
82af150b | 48 | Requires: dbus-x11 |
90c4694f | 49 | Requires: glib2 >= 1:2.46.0 |
4ead5ef1 | 50 | Requires: gnome-desktop >= 3.34.2 |
ed4eec8c | 51 | Requires: gnome-settings-daemon >= 3.26.0 |
5ff0ce16 | 52 | Requires: gnome-shell >= 3.24.0 |
df0a1455 | 53 | Requires: gnome-wm |
844361f7 | 54 | Requires: gsettings-desktop-schemas >= 3.4.0 |
4ead5ef1 | 55 | Requires: gtk+3 >= 3.22.0 |
ed4eec8c | 56 | Requires: json-glib >= 0.10 |
efee6beb | 57 | Requires: polkit-gnome >= 0.101 |
4ead5ef1 | 58 | Requires: systemd-units >= 1:242 |
60e5d7db | 59 | # needs notification-daemon in fallback mode to function |
e6d6dc36 | 60 | Requires: dbus(org.freedesktop.Notifications) |
ac8a0e34 | 61 | Obsoletes: gnome-splash-gnome < 1:2.32.0 |
b1ee4954 | 62 | Conflicts: polkit-gnome < 0.101 |
eb3ce6d1 | 63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2f7c99be | 64 | |
2f7c99be | 65 | %description |
dcff72af ŁK |
66 | GNOME (GNU Network Object Model Environment) is a user-friendly set of |
67 | applications and desktop tools to be used in conjunction with a window | |
68 | manager for the X Window System. GNOME is similar in purpose and scope | |
69 | to CDE and KDE, but GNOME is based completely on free software. | |
2f7c99be | 70 | |
a7db97bd | 71 | GNOME session provides the session tools for the the GNOME desktop. |
2f7c99be | 72 | |
cc32d14d | 73 | %description -l pl.UTF-8 |
dcff72af ŁK |
74 | GNOME (GNU Network Object Model Environment) to zestaw przyjaznych dla |
75 | użytkownika aplikacji i narzędzi do używania w połączeniu z zarządcą | |
76 | okien pod X. GNOME ma podobny cel jak CDE i KDE, ale bazuje całkowicie | |
77 | na wolnym oprogramowaniu. | |
eb3ce6d1 | 78 | |
a7db97bd JB |
79 | Pakiet gnome-session zawiera narzędzia do obsługi sesji dla środowiska |
80 | graficznego GNOME. | |
eb3ce6d1 | 81 | |
2f7c99be | 82 | %prep |
83 | %setup -q | |
84 | ||
85 | %build | |
5c1f68da | 86 | %meson build \ |
32983537 JB |
87 | -Dconsolekit=%{?with_consolekit:true}%{!?with_consolekit:false} \ |
88 | -Dsession_selector=true \ | |
89 | -Dsystemd=%{?with_systemd:true}%{!?with_systemd:false} | |
90c4694f JB |
90 | |
91 | %ninja_build -C build | |
2f7c99be | 92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
b1ee4954 | 95 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart |
975d36f6 | 96 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome/autostart |
0090eff8 PZ |
97 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome/default-session |
98 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome/shutdown | |
eb987690 | 99 | |
90c4694f | 100 | %ninja_install -C build |
2f7c99be | 101 | |
4ead5ef1 | 102 | sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop |
94b9eb41 | 103 | |
90c4694f JB |
104 | # packaged as %doc |
105 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/gnome-session/dbus/*.html | |
106 | ||
8124ff96 | 107 | %find_lang %{name} --with-gnome --all-name |
108 | ||
2f7c99be | 109 | %clean |
a6bd7019 | 110 | rm -rf $RPM_BUILD_ROOT |
2f7c99be | 111 | |
1ee9615d | 112 | %post |
f83744aa | 113 | /sbin/ldconfig |
dcff72af | 114 | %glib_compile_schemas |
1ee9615d | 115 | |
07b4a8ca | 116 | %postun |
dcff72af ŁK |
117 | if [ "$1" = "0" ]; then |
118 | /sbin/ldconfig | |
dcff72af ŁK |
119 | %glib_compile_schemas |
120 | fi | |
2f7c99be | 121 | |
122 | %files -f %{name}.lang | |
123 | %defattr(644,root,root,755) | |
90c4694f | 124 | %doc AUTHORS MAINTAINERS NEWS README build/doc/dbus/gnome-session.html |
42489a9a | 125 | %attr(755,root,root) %{_bindir}/gnome-session |
5c1f68da | 126 | %attr(755,root,root) %{_bindir}/gnome-session-custom-session |
d9da375c | 127 | %attr(755,root,root) %{_bindir}/gnome-session-inhibit |
dcff72af | 128 | %attr(755,root,root) %{_bindir}/gnome-session-quit |
32983537 | 129 | %attr(755,root,root) %{_bindir}/gnome-session-selector |
cb7e9299 | 130 | %attr(755,root,root) %{_libexecdir}/gnome-session-binary |
90c4694f | 131 | %attr(755,root,root) %{_libexecdir}/gnome-session-ctl |
cb7e9299 MB |
132 | %attr(755,root,root) %{_libexecdir}/gnome-session-check-accelerated |
133 | %attr(755,root,root) %{_libexecdir}/gnome-session-check-accelerated-gl-helper | |
134 | %attr(755,root,root) %{_libexecdir}/gnome-session-check-accelerated-gles-helper | |
135 | %attr(755,root,root) %{_libexecdir}/gnome-session-failed | |
b1ee4954 | 136 | %{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop |
dcff72af ŁK |
137 | %{_datadir}/GConf/gsettings/gnome-session.convert |
138 | %{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml | |
975d36f6 | 139 | %dir %{_datadir}/gnome/autostart |
f61e6571 | 140 | %dir %{_datadir}/gnome/default-session |
306b340f | 141 | %dir %{_datadir}/gnome/shutdown |
1ebf65c4 | 142 | %dir %{_datadir}/gnome-session |
dcff72af | 143 | %dir %{_datadir}/gnome-session/sessions |
844361f7 | 144 | %{_datadir}/gnome-session/hardware-compatibility |
32983537 | 145 | %{_datadir}/gnome-session/session-selector.ui |
dcff72af | 146 | %{_datadir}/gnome-session/sessions/gnome.session |
d9da375c | 147 | %{_datadir}/gnome-session/sessions/gnome-dummy.session |
a8f14d2a | 148 | %{_datadir}/wayland-sessions/gnome.desktop |
42489a9a | 149 | %{_datadir}/xsessions/gnome.desktop |
32983537 | 150 | %{_datadir}/xsessions/gnome-custom-session.desktop |
a8f14d2a | 151 | %{_datadir}/xsessions/gnome-xorg.desktop |
4ead5ef1 JB |
152 | %dir %{systemduserunitdir}/gnome-launched-.scope.d |
153 | %{systemduserunitdir}/gnome-launched-.scope.d/override.conf | |
90c4694f JB |
154 | %{systemduserunitdir}/gnome-session-failed.service |
155 | %{systemduserunitdir}/gnome-session-failed.target | |
156 | %{systemduserunitdir}/gnome-session-initialized.target | |
157 | %{systemduserunitdir}/gnome-session-manager.target | |
158 | %{systemduserunitdir}/gnome-session-manager@.service | |
159 | %{systemduserunitdir}/gnome-session-monitor.service | |
160 | %{systemduserunitdir}/gnome-session-pre.target | |
161 | %{systemduserunitdir}/gnome-session-restart-dbus.service | |
162 | %{systemduserunitdir}/gnome-session-shutdown.target | |
163 | %{systemduserunitdir}/gnome-session-signal-init.service | |
90c4694f JB |
164 | %{systemduserunitdir}/gnome-session-wayland.target |
165 | %{systemduserunitdir}/gnome-session-wayland@.target | |
166 | %{systemduserunitdir}/gnome-session-x11-services.target | |
4ead5ef1 | 167 | %{systemduserunitdir}/gnome-session-x11-services-ready.target |
90c4694f JB |
168 | %{systemduserunitdir}/gnome-session-x11.target |
169 | %{systemduserunitdir}/gnome-session-x11@.target | |
170 | %{systemduserunitdir}/gnome-session.target | |
171 | %{systemduserunitdir}/gnome-session@.target | |
4ead5ef1 JB |
172 | %dir %{systemduserunitdir}/gnome-session@gnome.target.d |
173 | %{systemduserunitdir}/gnome-session@gnome.target.d/gnome.session.conf | |
ed4eec8c JB |
174 | %{_mandir}/man1/gnome-session.1* |
175 | %{_mandir}/man1/gnome-session-inhibit.1* | |
176 | %{_mandir}/man1/gnome-session-quit.1* | |
32983537 | 177 | %{_mandir}/man1/gnome-session-selector.1* |