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