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