1 | %define glib2_version 2.26.0 |
---|
2 | %define dbus_version 1.4 |
---|
3 | %define dbus_glib_version 0.88 |
---|
4 | %define polkit_version 0.99 |
---|
5 | |
---|
6 | Summary: System daemon for tracking users, sessions and seats |
---|
7 | Summary(ja): ユーザ、セッションおよび座席を捕捉するシステムデーモン |
---|
8 | Name: ConsoleKit |
---|
9 | Version: 0.4.3 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | License: GPLv2+ |
---|
12 | Group: System Environment/Daemons |
---|
13 | URL: http://www.freedesktop.org/wiki/Software/ConsoleKit |
---|
14 | |
---|
15 | Source0: http://people.freedesktop.org/~mccann/dist/ConsoleKit-%{version}.tar.bz2 |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
19 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
20 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
21 | BuildRequires: polkit-devel >= %{polkit_version} |
---|
22 | BuildRequires: pam-devel |
---|
23 | BuildRequires: libX11-devel |
---|
24 | BuildRequires: zlib-devel |
---|
25 | BuildRequires: xmlto |
---|
26 | Requires: dbus |
---|
27 | Requires: dbus-glib |
---|
28 | |
---|
29 | %description |
---|
30 | ConsoleKit is a system daemon for tracking what users are logged |
---|
31 | into the system and how they interact with the computer (e.g. |
---|
32 | which keyboard and mouse they use). |
---|
33 | |
---|
34 | It provides asynchronous notification via the system message bus. |
---|
35 | |
---|
36 | |
---|
37 | %package x11 |
---|
38 | Summary: X11-requiring add-ons for ConsoleKit |
---|
39 | Summary(ja): X11 を必要とする ConsoleKit アドオン |
---|
40 | License: GPLv2+ |
---|
41 | Group: System Environment/Daemons |
---|
42 | Requires: %name = %{version}-%{release} |
---|
43 | Requires: libX11 |
---|
44 | |
---|
45 | %description x11 |
---|
46 | ConsoleKit contains some tools that require Xlib to be installed, |
---|
47 | those are in this separate package so server systems need not install |
---|
48 | X. Applications (such as xorg-x11-xinit) and login managers (such as |
---|
49 | gdm) that need to register their X sessions with ConsoleKit needs to |
---|
50 | have a Requires: for this package. |
---|
51 | |
---|
52 | |
---|
53 | %package libs |
---|
54 | Summary: ConsoleKit libraries |
---|
55 | Summary(ja): ConsoleKit ライブラリ |
---|
56 | License: MIT |
---|
57 | Group: System Environment/Libraries |
---|
58 | Requires: pam |
---|
59 | Requires: dbus |
---|
60 | |
---|
61 | %description libs |
---|
62 | Libraries and a PAM module for interacting with ConsoleKit. |
---|
63 | |
---|
64 | |
---|
65 | %package devel |
---|
66 | Summary: Development libraries and headers for ConsoleKit |
---|
67 | Summary(ja): Development libraries and headers for ConsoleKit |
---|
68 | License: MIT |
---|
69 | Group: Development/Libraries |
---|
70 | Requires: dbus-devel |
---|
71 | Requires: pkgconfig |
---|
72 | |
---|
73 | %description devel |
---|
74 | Headers, libraries and API docs for ConsoleKit |
---|
75 | |
---|
76 | |
---|
77 | %package docs |
---|
78 | Summary: Developer documentation for ConsoleKit |
---|
79 | Summary(ja): ConsoleKit の開発用ドキュメント |
---|
80 | Group: Development/Libraries |
---|
81 | Requires: %name = %{version}-%{release} |
---|
82 | |
---|
83 | %description docs |
---|
84 | Developer documentation for ConsoleKit. |
---|
85 | |
---|
86 | |
---|
87 | %prep |
---|
88 | %setup -q |
---|
89 | |
---|
90 | %build |
---|
91 | %configure --with-pid-file=%{_localstatedir}/run/console-kit-daemon.pid --enable-pam-module --with-pam-module-dir=/%{_lib}/security --enable-docbook-docs --docdir=%{_datadir}/doc/%{name}-%{version} |
---|
92 | |
---|
93 | make |
---|
94 | |
---|
95 | |
---|
96 | %install |
---|
97 | rm -rf $RPM_BUILD_ROOT |
---|
98 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
99 | |
---|
100 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
101 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
102 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.a |
---|
103 | rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la |
---|
104 | |
---|
105 | # make sure we don't package a history log |
---|
106 | rm -f $RPM_BUILD_ROOT/%{_var}/log/ConsoleKit/history |
---|
107 | |
---|
108 | cp AUTHORS COPYING ChangeLog HACKING INSTALL NEWS README TODO \ |
---|
109 | $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} |
---|
110 | |
---|
111 | #mkdir -p %{buildroot}%{_sysconfdir}/init.d |
---|
112 | #install -m 755 %{SOURCE10} %{buildroot}%{_sysconfdir}/init.d/ConsoleKit |
---|
113 | |
---|
114 | |
---|
115 | %clean |
---|
116 | rm -rf $RPM_BUILD_ROOT |
---|
117 | |
---|
118 | |
---|
119 | %post |
---|
120 | if [ -f /var/log/ConsoleKit/history ]; then |
---|
121 | chmod a+r /var/log/ConsoleKit/history |
---|
122 | fi |
---|
123 | |
---|
124 | %post libs -p /sbin/ldconfig |
---|
125 | |
---|
126 | %postun libs -p /sbin/ldconfig |
---|
127 | |
---|
128 | %files |
---|
129 | %defattr(-,root,root,-) |
---|
130 | %doc %dir %{_datadir}/doc/%{name}-%{version} |
---|
131 | %doc %{_datadir}/doc/%{name}-%{version}/[A-Z]* |
---|
132 | %{_sysconfdir}/dbus-1/system.d/* |
---|
133 | #%{_sysconfdir}/init.d/ConsoleKit |
---|
134 | %{_datadir}/dbus-1/system-services/*.service |
---|
135 | %{_datadir}/polkit-1/actions/*.policy |
---|
136 | %dir %{_sysconfdir}/ConsoleKit |
---|
137 | %dir %{_sysconfdir}/ConsoleKit/seats.d |
---|
138 | %dir %{_sysconfdir}/ConsoleKit/run-seat.d |
---|
139 | %dir %{_sysconfdir}/ConsoleKit/run-session.d |
---|
140 | %dir %{_prefix}/lib/ConsoleKit |
---|
141 | %dir %{_prefix}/lib/ConsoleKit/scripts |
---|
142 | %dir %{_prefix}/lib/ConsoleKit/run-seat.d |
---|
143 | %dir %{_prefix}/lib/ConsoleKit/run-session.d |
---|
144 | %dir %{_var}/run/ConsoleKit |
---|
145 | %attr(755,root,root) %dir %{_var}/log/ConsoleKit |
---|
146 | %config %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat |
---|
147 | %{_sbindir}/console-kit-daemon |
---|
148 | %{_sbindir}/ck-log-system-restart |
---|
149 | %{_sbindir}/ck-log-system-start |
---|
150 | %{_sbindir}/ck-log-system-stop |
---|
151 | %{_bindir}/ck-history |
---|
152 | %{_bindir}/ck-launch-session |
---|
153 | %{_bindir}/ck-list-sessions |
---|
154 | %{_prefix}/lib/ConsoleKit/scripts/* |
---|
155 | |
---|
156 | %files x11 |
---|
157 | %defattr(-,root,root,-) |
---|
158 | %{_libexecdir}/* |
---|
159 | |
---|
160 | %files libs |
---|
161 | %defattr(-,root,root,-) |
---|
162 | %{_libdir}/lib*.so.* |
---|
163 | /%{_lib}/security/*.so |
---|
164 | %{_mandir}/man8/pam_ck_connector.8.gz |
---|
165 | |
---|
166 | %files devel |
---|
167 | %defattr(-,root,root,-) |
---|
168 | %{_libdir}/lib*.so |
---|
169 | %{_libdir}/pkgconfig/* |
---|
170 | %{_includedir}/* |
---|
171 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.*.xml |
---|
172 | |
---|
173 | %files docs |
---|
174 | %defattr(-,root,root,-) |
---|
175 | %doc %dir %{_datadir}/doc/%{name}-%{version}/spec |
---|
176 | %doc %{_datadir}/doc/%{name}-%{version}/spec/* |
---|
177 | |
---|
178 | |
---|
179 | %changelog |
---|
180 | * Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Wed Oct 13 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-1 |
---|
184 | - new upstream release |
---|
185 | |
---|
186 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.1-2 |
---|
187 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
188 | |
---|
189 | * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.1-1 |
---|
190 | - new upstream release |
---|
191 | |
---|
192 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-6 |
---|
193 | - add patch11 to enable policy access to the Manager.GetSessions |
---|
194 | method in the default ConsoleKit.conf |
---|
195 | https://bugs.freedesktop.org/show_bug.cgi?id=20471 |
---|
196 | http://bugzilla.gnome.org/show_bug.cgi?id=580259 |
---|
197 | |
---|
198 | * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-5 |
---|
199 | - add patch10 to fix dbus permissions |
---|
200 | https://bugs.freedesktop.org/show_bug.cgi?id=19020 |
---|
201 | (This patch is already committed to master) |
---|
202 | |
---|
203 | * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.0-4 |
---|
204 | - changed Group to System Environment/Daemons |
---|
205 | - changed x11 subpackage's Group to System Environment/Daemons |
---|
206 | - changed libs subpackage's Group to System Environment/Libraries |
---|
207 | - added %%post, %%postun section fo libs subpackage |
---|
208 | |
---|
209 | * Sat Aug 09 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.0-3 |
---|
210 | - changed %%{_libdir}/ConsoleKit to %%{_prefix}/lib/ConsoleKit |
---|
211 | |
---|
212 | * Thu Aug 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-2 |
---|
213 | - remove init script, console-kit-daemon is now launched from dbus. |
---|
214 | |
---|
215 | * Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-1 |
---|
216 | - new upstream release |
---|
217 | |
---|
218 | * Tue Jul 1 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-3 |
---|
219 | - fix Japanese description |
---|
220 | - spec in UTF-8 |
---|
221 | - add Source10 (init.d script for console-kit-daemon); |
---|
222 | add %%post/%%preun scripts, until "initng" being introduced to Vine |
---|
223 | |
---|
224 | * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-2 |
---|
225 | - rebuilt with PolicyKit-0.8 |
---|
226 | |
---|
227 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.10-1 |
---|
228 | - new upstream release |
---|
229 | - new versioning policy |
---|
230 | |
---|
231 | * Tue Jan 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-0vl1 |
---|
232 | - initial build for Vine Linux |
---|
233 | |
---|
234 | * Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-2 |
---|
235 | - Rebuild against new dbus-glib |
---|
236 | |
---|
237 | * Tue Sep 18 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-1 |
---|
238 | - Update to 0.2.3 |
---|
239 | |
---|
240 | * Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.2-1 |
---|
241 | - Update to 0.2.2 |
---|
242 | |
---|
243 | * Mon Aug 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-4 |
---|
244 | - Update license field |
---|
245 | |
---|
246 | * Fri Jul 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-3 |
---|
247 | - Add LSB header to init script (#246894) |
---|
248 | |
---|
249 | * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-2 |
---|
250 | - Set doc directory correctly |
---|
251 | |
---|
252 | * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-1 |
---|
253 | - Update to upstream release 0.2.1 |
---|
254 | - Drop the patch to daemonize properly as that was merged upstream |
---|
255 | |
---|
256 | * Mon Apr 02 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-0.git20070402 |
---|
257 | - Update to git snapshot to get a lot of bug fixes |
---|
258 | - Use libX11 rather than gtk2 to verify X11 sessions; update BR and R |
---|
259 | - Split X11-using bits into a new subpackage ConsoleKit-x11 (#233982) |
---|
260 | - Use correct location for PAM module on 64-bit (#234545) |
---|
261 | - Build developer documentation and put them in ConsoleKit-docs |
---|
262 | |
---|
263 | * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-2 |
---|
264 | - BR gtk2-devel and make ConsoleKit Require gtk2 (could just be |
---|
265 | libX11 with a simple patch) |
---|
266 | |
---|
267 | * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-1 |
---|
268 | - Update to upstream release 0.2.0 |
---|
269 | - Daemonize properly (#229206) |
---|
270 | |
---|
271 | * Sat Mar 3 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301.1 |
---|
272 | - Allow caller to pass uid=0 in libck-connector |
---|
273 | |
---|
274 | * Thu Mar 1 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301 |
---|
275 | - Update to git snapshot |
---|
276 | - Drop all patches as they are committed upstream |
---|
277 | - New tool ck-list-sessions |
---|
278 | - New -libs subpackage with run-time libraries and a PAM module |
---|
279 | - New -devel subpackage with headers |
---|
280 | |
---|
281 | * Tue Feb 6 2007 David Zeuthen <davidz@redhat.com> - 0.1.0-5%{?dist} |
---|
282 | - Start ConsoleKit a bit earlier so it starts before HAL (98 -> 90) |
---|
283 | - Minimize stack usage so VIRT size is more reasonable (mclasen) |
---|
284 | - Make session inactive when switching to non-session (davidz) |
---|
285 | |
---|
286 | * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-4 |
---|
287 | - Don't mark initscripts %%config |
---|
288 | - Use proper lock and pid ile names |
---|
289 | |
---|
290 | * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-3 |
---|
291 | - More package review feedback |
---|
292 | |
---|
293 | * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-2 |
---|
294 | - Incorporate package review feedback |
---|
295 | |
---|
296 | * Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-1 |
---|
297 | - Update to the first public release 0.1.0 |
---|
298 | - Some spec cleanups |
---|
299 | |
---|
300 | * Mon Oct 23 2006 David Zeuthen <davidz@redhat.com> - 0.0.3-1 |
---|
301 | - Initial build. |
---|
302 | |
---|