]>
Commit | Line | Data |
---|---|---|
d9995fc0 | 1 | Summary: ConsoleKit for PolicyKit |
2 | Summary(pl.UTF-8): ConsoleKit dla PolicyKit | |
3 | Name: ConsoleKit | |
7309441a | 4 | Version: 0.4.5 |
95106038 | 5 | Release: 12 |
99ac7ab9 | 6 | License: GPL v2+ |
d9995fc0 | 7 | Group: Libraries |
a1f79d5b | 8 | Source0: http://www.freedesktop.org/software/ConsoleKit/dist/%{name}-%{version}.tar.bz2 |
7309441a | 9 | # Source0-md5: f2657f93761206922d558471a936fbc3 |
5fde5b67 | 10 | Source1: %{name}.tmpfiles |
61cccc46 | 11 | Patch0: %{name}-git.patch |
95657918 | 12 | URL: http://www.freedesktop.org/wiki/Software/ConsoleKit |
7c9783a8 | 13 | BuildRequires: dbus-glib-devel >= 0.82 |
c5f0ad73 | 14 | BuildRequires: docbook-dtd412-xml |
a5275a08 | 15 | BuildRequires: gettext-devel |
61cccc46 | 16 | BuildRequires: glib2-devel >= 1:2.22.0 |
99ac7ab9 JB |
17 | # for <sys/inotify.h> |
18 | BuildRequires: glibc-devel >= 6:2.4 | |
61cccc46 | 19 | BuildRequires: udev-devel |
d9995fc0 | 20 | BuildRequires: pam-devel >= 0.80 |
21 | BuildRequires: pkgconfig | |
a1f79d5b | 22 | BuildRequires: polkit-devel >= 0.92 |
d885d4ae | 23 | BuildRequires: rpmbuild(macros) >= 1.626 |
d9995fc0 | 24 | BuildRequires: xmlto |
99ac7ab9 | 25 | BuildRequires: xorg-lib-libX11-devel >= 1.0.0 |
a5275a08 | 26 | BuildRequires: zlib-devel |
d9995fc0 | 27 | Requires(post,preun): /sbin/chkconfig |
1ea09812 | 28 | Requires(post,preun,postun): systemd-units >= 38 |
57ea70df | 29 | Requires: %{name}-dirs = %{version}-%{release} |
d9995fc0 | 30 | Requires: %{name}-libs = %{version}-%{release} |
7c9783a8 | 31 | Requires: dbus-glib >= 0.82 |
c40c3f2e | 32 | Requires: filesystem >= 3.0-25 |
7c9783a8 | 33 | Requires: glib2 >= 1:2.14.0 |
ca955849 | 34 | Requires: rc-scripts >= 0.4.3.0 |
1ea09812 | 35 | Requires: systemd-units >= 38 |
61cccc46 | 36 | Provides: udev-acl |
c9becd8d | 37 | Obsoletes: ConsoleKit-systemd |
d9995fc0 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
b836baae JB |
41 | ConsoleKit is a framework for defining and tracking users, login |
42 | sessions, and seats. | |
d9995fc0 | 43 | |
44 | %description -l pl.UTF-8 | |
aeef95d1 | 45 | ConsoleKit to szkielet do definiowania i śledzenia użytkowników, sesji |
46 | logowania i siedzib. | |
d9995fc0 | 47 | |
48 | %package libs | |
b836baae JB |
49 | Summary: ConsoleKit library |
50 | Summary(pl.UTF-8): Biblioteka ConsoleKit | |
d9995fc0 | 51 | License: AFL v2.1 or GPL v2 |
52 | Group: Libraries | |
8725aca6 | 53 | Requires: dbus-libs >= 0.30 |
d9995fc0 | 54 | Conflicts: ConsoleKit < 0.1-0.20061203.6 |
55 | ||
56 | %description libs | |
b836baae | 57 | ConsoleKit library. |
d9995fc0 | 58 | |
59 | %description libs -l pl.UTF-8 | |
b836baae | 60 | Biblioteka ConsoleKit. |
d9995fc0 | 61 | |
57ea70df PG |
62 | %package dirs |
63 | Summary: ConsoleKit directories | |
64 | Summary(pl.UTF-8): Katalogi ConsoleKit | |
65 | License: AFL v2.1 or GPL v2 | |
66 | Group: Libraries | |
67 | Conflicts: ConsoleKit < 0.4.1-2 | |
68 | ||
69 | %description dirs | |
70 | ConsoleKit directories. | |
71 | ||
72 | %description dirs -l pl.UTF-8 | |
73 | Katalogi ConsoleKit. | |
74 | ||
d9995fc0 | 75 | %package devel |
76 | Summary: Header files for ConsoleKit | |
b836baae | 77 | Summary(pl.UTF-8): Pliki nagłówkowe ConsoleKit |
d9995fc0 | 78 | License: AFL v2.1 or GPL v2 |
79 | Group: Development/Libraries | |
80 | Requires: %{name}-libs = %{version}-%{release} | |
8725aca6 | 81 | Requires: dbus-devel >= 0.30 |
d9995fc0 | 82 | |
83 | %description devel | |
84 | Header files for ConsoleKit. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe ConsoleKit. | |
88 | ||
89 | %package static | |
b836baae JB |
90 | Summary: Static ConsoleKit library |
91 | Summary(pl.UTF-8): Statyczna biblioteka ConsoleKit | |
d9995fc0 | 92 | License: AFL v2.1 or GPL v2 |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | ||
96 | %description static | |
b836baae | 97 | Static ConsoleKit library. |
d9995fc0 | 98 | |
99 | %description static -l pl.UTF-8 | |
b836baae | 100 | Statyczna biblioteka ConsoleKit. |
d9995fc0 | 101 | |
e859c617 | 102 | %package x11 |
1d306dcf JB |
103 | Summary: X11 session support for ConsoleKit |
104 | Summary(pl.UTF-8): Obsługa sesji X11 dla pakietu ConsoleKit | |
e859c617 ER |
105 | License: GPL v2+ |
106 | Group: X11/Applications | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | Requires: xorg-lib-libX11 >= 1.0.0 | |
109 | ||
110 | %description x11 | |
1d306dcf JB |
111 | X11 session support utilities for ConsoleKit. |
112 | ||
113 | %description x11 -l pl.UTF-8 | |
114 | Narzędzia obsługujące sesje X11 dla pakietu ConsoleKit. | |
e859c617 | 115 | |
d9995fc0 | 116 | %prep |
632471ba | 117 | %setup -q |
61cccc46 | 118 | %patch0 -p1 |
d9995fc0 | 119 | |
120 | %build | |
61cccc46 JR |
121 | %{__libtoolize} |
122 | %{__aclocal} | |
123 | %{__automake} | |
124 | %{__autoconf} | |
d9995fc0 | 125 | %configure \ |
04ede0e0 | 126 | --disable-silent-rules \ |
632471ba | 127 | --enable-docbook-docs \ |
c40c3f2e | 128 | --enable-pam-module \ |
632471ba | 129 | --enable-static \ |
95657918 | 130 | --with-pam-module-dir=/%{_lib}/security \ |
4aa2a690 | 131 | --with-pid-file=%{_localstatedir}/run/console-kit-daemon.pid \ |
61cccc46 JR |
132 | --with-systemdsystemunitdir=%{systemdunitdir} \ |
133 | --enable-udev-acl | |
47a3e0fb | 134 | |
d3e024a3 | 135 | %{__make} -j1 |
d9995fc0 | 136 | |
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
5fde5b67 JR |
139 | install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d |
140 | ||
d9995fc0 | 141 | %{__make} install \ |
142 | DESTDIR=$RPM_BUILD_ROOT | |
143 | ||
b3b2aaca ER |
144 | # The sample upstart files are good enough for us. |
145 | install -d $RPM_BUILD_ROOT/etc/init | |
146 | for a in ck-log-system-{start,stop,restart}; do | |
147 | cp -p data/$a $RPM_BUILD_ROOT/etc/init/$a.conf | |
148 | done | |
149 | ||
5fde5b67 JR |
150 | install %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf |
151 | ||
b3b2aaca | 152 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/*.{a,la} |
713c701a | 153 | |
d9995fc0 | 154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
8ceb59b9 JB |
157 | # use triggerun not triggerpostun - old init script is needed to stop service |
158 | %triggerun -- ConsoleKit < 0.2.4 | |
159 | %service -q ConsoleKit stop | |
160 | /sbin/chkconfig --del ConsoleKit | |
161 | ||
d9995fc0 | 162 | %post libs -p /sbin/ldconfig |
163 | %postun libs -p /sbin/ldconfig | |
164 | ||
c9becd8d | 165 | %post |
d885d4ae | 166 | %systemd_post console-kit-daemon.service |
509d356f | 167 | |
c9becd8d | 168 | %preun |
509d356f BZ |
169 | %systemd_preun console-kit-daemon.service |
170 | ||
c9becd8d | 171 | %postun |
d885d4ae AF |
172 | %systemd_reload |
173 | ||
c9becd8d JR |
174 | %triggerpostun -- ConsoleKit < 0.4.5-9 |
175 | %systemd_trigger console-kit-daemon.service | |
176 | ||
d9995fc0 | 177 | %files |
178 | %defattr(644,root,root,755) | |
713c701a | 179 | %doc AUTHORS ChangeLog NEWS README TODO |
f700983e | 180 | %attr(755,root,root) %{_bindir}/ck-history |
5a45cbfd | 181 | %attr(755,root,root) %{_bindir}/ck-launch-session |
d9995fc0 | 182 | %attr(755,root,root) %{_bindir}/ck-list-sessions |
5a45cbfd | 183 | %attr(755,root,root) %{_sbindir}/ck-log-system-restart |
dac56869 | 184 | %attr(755,root,root) %{_sbindir}/ck-log-system-start |
5a45cbfd | 185 | %attr(755,root,root) %{_sbindir}/ck-log-system-stop |
d9995fc0 | 186 | %attr(755,root,root) %{_sbindir}/console-kit-daemon |
187 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
a5275a08 | 188 | %attr(755,root,root) %{_prefix}/lib/ConsoleKit/scripts/* |
8725aca6 | 189 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
a1f79d5b | 190 | %{_datadir}/polkit-1/actions/org.freedesktop.consolekit.policy |
f700983e | 191 | %{_datadir}/dbus-1/system-services/org.freedesktop.ConsoleKit.service |
a5275a08 MB |
192 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml |
193 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml | |
194 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml | |
e859c617 | 195 | /etc/dbus-1/system.d/ConsoleKit.conf |
b3b2aaca ER |
196 | %config(noreplace) %verify(not md5 mtime size) /etc/init/ck-log-system-restart.conf |
197 | %config(noreplace) %verify(not md5 mtime size) /etc/init/ck-log-system-start.conf | |
198 | %config(noreplace) %verify(not md5 mtime size) /etc/init/ck-log-system-stop.conf | |
95657918 | 199 | %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat |
a5275a08 | 200 | %{_mandir}/man8/pam_ck_connector.8* |
c9becd8d JR |
201 | %{systemdunitdir}/basic.target.wants/console-kit-log-system-start.service |
202 | %{systemdunitdir}/console-kit-daemon.service | |
203 | %{systemdunitdir}/console-kit-log-system-restart.service | |
204 | %{systemdunitdir}/console-kit-log-system-start.service | |
205 | %{systemdunitdir}/console-kit-log-system-stop.service | |
206 | %{systemdunitdir}/halt.target.wants/console-kit-log-system-stop.service | |
207 | %{systemdunitdir}/kexec.target.wants/console-kit-log-system-restart.service | |
208 | %{systemdunitdir}/poweroff.target.wants/console-kit-log-system-stop.service | |
209 | %{systemdunitdir}/reboot.target.wants/console-kit-log-system-restart.service | |
d9995fc0 | 210 | |
61cccc46 JR |
211 | %attr(755,root,root) /lib/udev/udev-acl |
212 | %attr(755,root,root) /usr/lib/ConsoleKit/run-seat.d/udev-acl.ck | |
213 | /lib/udev/rules.d/70-udev-acl.rules | |
214 | ||
d9995fc0 | 215 | %files libs |
216 | %defattr(644,root,root,755) | |
d9995fc0 | 217 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* |
dac56869 | 218 | %attr(755,root,root) %ghost %{_libdir}/libck-connector.so.0 |
d9995fc0 | 219 | |
57ea70df PG |
220 | %files dirs |
221 | %defattr(644,root,root,755) | |
5fde5b67 | 222 | /usr/lib/tmpfiles.d/%{name}.conf |
57ea70df PG |
223 | %dir %{_sysconfdir}/ConsoleKit |
224 | %dir %{_sysconfdir}/ConsoleKit/run-session.d | |
225 | %dir %{_sysconfdir}/ConsoleKit/run-seat.d | |
226 | %dir %{_sysconfdir}/ConsoleKit/seats.d | |
227 | %dir %{_prefix}/lib/ConsoleKit/run-session.d | |
228 | %dir %{_prefix}/lib/ConsoleKit/run-seat.d | |
229 | %dir %{_prefix}/lib/ConsoleKit/scripts | |
230 | %dir %{_localstatedir}/run/ConsoleKit | |
231 | %dir %{_localstatedir}/log/ConsoleKit | |
232 | ||
d9995fc0 | 233 | %files devel |
234 | %defattr(644,root,root,755) | |
713c701a JB |
235 | %attr(755,root,root) %{_libdir}/libck-connector.so |
236 | %{_libdir}/libck-connector.la | |
d9995fc0 | 237 | %dir %{_includedir}/ConsoleKit |
238 | %dir %{_includedir}/ConsoleKit/ck-connector | |
239 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
240 | %{_pkgconfigdir}/ck-connector.pc | |
241 | ||
242 | %files static | |
243 | %defattr(644,root,root,755) | |
713c701a | 244 | %{_libdir}/libck-connector.a |
e859c617 ER |
245 | |
246 | %files x11 | |
247 | %defattr(644,root,root,755) | |
248 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
249 | %attr(755,root,root) %{_libdir}/ck-get-x11-display-device |