]>
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 |
b3b2aaca | 5 | Release: 3 |
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 |
d9995fc0 | 20 | BuildRequires: rpmbuild(macros) >= 1.268 |
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 | |
d9995fc0 | 110 | %prep |
632471ba | 111 | %setup -q |
d9995fc0 | 112 | |
113 | %build | |
d9995fc0 | 114 | %configure \ |
04ede0e0 | 115 | --disable-silent-rules \ |
632471ba | 116 | --enable-docbook-docs \ |
c40c3f2e | 117 | --enable-pam-module \ |
632471ba | 118 | --enable-static \ |
95657918 | 119 | --with-pam-module-dir=/%{_lib}/security \ |
a5275a08 | 120 | --with-pid-file=%{_localstatedir}/run/console-kit-daemon.pid |
47a3e0fb | 121 | |
d3e024a3 | 122 | %{__make} -j1 |
d9995fc0 | 123 | |
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
d9995fc0 | 126 | %{__make} install \ |
127 | DESTDIR=$RPM_BUILD_ROOT | |
128 | ||
b3b2aaca ER |
129 | # The sample upstart files are good enough for us. |
130 | install -d $RPM_BUILD_ROOT/etc/init | |
131 | for a in ck-log-system-{start,stop,restart}; do | |
132 | cp -p data/$a $RPM_BUILD_ROOT/etc/init/$a.conf | |
133 | done | |
134 | ||
135 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/*.{a,la} | |
713c701a | 136 | |
d9995fc0 | 137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
8ceb59b9 JB |
140 | # use triggerun not triggerpostun - old init script is needed to stop service |
141 | %triggerun -- ConsoleKit < 0.2.4 | |
142 | %service -q ConsoleKit stop | |
143 | /sbin/chkconfig --del ConsoleKit | |
144 | ||
d9995fc0 | 145 | %post libs -p /sbin/ldconfig |
146 | %postun libs -p /sbin/ldconfig | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
713c701a | 150 | %doc AUTHORS ChangeLog NEWS README TODO |
f700983e | 151 | %attr(755,root,root) %{_bindir}/ck-history |
5a45cbfd | 152 | %attr(755,root,root) %{_bindir}/ck-launch-session |
d9995fc0 | 153 | %attr(755,root,root) %{_bindir}/ck-list-sessions |
5a45cbfd | 154 | %attr(755,root,root) %{_sbindir}/ck-log-system-restart |
dac56869 | 155 | %attr(755,root,root) %{_sbindir}/ck-log-system-start |
5a45cbfd | 156 | %attr(755,root,root) %{_sbindir}/ck-log-system-stop |
d9995fc0 | 157 | %attr(755,root,root) %{_sbindir}/console-kit-daemon |
158 | %attr(755,root,root) %{_libdir}/ck-collect-session-info | |
a5275a08 | 159 | %attr(755,root,root) %{_prefix}/lib/ConsoleKit/scripts/* |
8725aca6 | 160 | %attr(755,root,root) /%{_lib}/security/pam_ck_connector.so |
a1f79d5b | 161 | %{_datadir}/polkit-1/actions/org.freedesktop.consolekit.policy |
f700983e | 162 | %{_datadir}/dbus-1/system-services/org.freedesktop.ConsoleKit.service |
a5275a08 MB |
163 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml |
164 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml | |
165 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml | |
e859c617 | 166 | /etc/dbus-1/system.d/ConsoleKit.conf |
b3b2aaca ER |
167 | %config(noreplace) %verify(not md5 mtime size) /etc/init/ck-log-system-restart.conf |
168 | %config(noreplace) %verify(not md5 mtime size) /etc/init/ck-log-system-start.conf | |
169 | %config(noreplace) %verify(not md5 mtime size) /etc/init/ck-log-system-stop.conf | |
95657918 | 170 | %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat |
a5275a08 | 171 | %{_mandir}/man8/pam_ck_connector.8* |
d9995fc0 | 172 | |
173 | %files libs | |
174 | %defattr(644,root,root,755) | |
d9995fc0 | 175 | %attr(755,root,root) %{_libdir}/libck-connector.so.*.*.* |
dac56869 | 176 | %attr(755,root,root) %ghost %{_libdir}/libck-connector.so.0 |
d9995fc0 | 177 | |
57ea70df PG |
178 | %files dirs |
179 | %defattr(644,root,root,755) | |
180 | %dir %{_sysconfdir}/ConsoleKit | |
181 | %dir %{_sysconfdir}/ConsoleKit/run-session.d | |
182 | %dir %{_sysconfdir}/ConsoleKit/run-seat.d | |
183 | %dir %{_sysconfdir}/ConsoleKit/seats.d | |
184 | %dir %{_prefix}/lib/ConsoleKit/run-session.d | |
185 | %dir %{_prefix}/lib/ConsoleKit/run-seat.d | |
186 | %dir %{_prefix}/lib/ConsoleKit/scripts | |
187 | %dir %{_localstatedir}/run/ConsoleKit | |
188 | %dir %{_localstatedir}/log/ConsoleKit | |
189 | ||
d9995fc0 | 190 | %files devel |
191 | %defattr(644,root,root,755) | |
713c701a JB |
192 | %attr(755,root,root) %{_libdir}/libck-connector.so |
193 | %{_libdir}/libck-connector.la | |
d9995fc0 | 194 | %dir %{_includedir}/ConsoleKit |
195 | %dir %{_includedir}/ConsoleKit/ck-connector | |
196 | %{_includedir}/ConsoleKit/ck-connector/*.h | |
197 | %{_pkgconfigdir}/ck-connector.pc | |
198 | ||
199 | %files static | |
200 | %defattr(644,root,root,755) | |
713c701a | 201 | %{_libdir}/libck-connector.a |
e859c617 ER |
202 | |
203 | %files x11 | |
204 | %defattr(644,root,root,755) | |
205 | %attr(755,root,root) %{_libdir}/ck-get-x11-server-pid | |
206 | %attr(755,root,root) %{_libdir}/ck-get-x11-display-device |