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