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