| 1 | %define glib2_version 2.26.0 |
|---|
| 2 | %define dbus_version 1.4.14 |
|---|
| 3 | %define dbus_glib_version 0.94 |
|---|
| 4 | %define polkit_version 0.101 |
|---|
| 5 | |
|---|
| 6 | Summary: System daemon for tracking users, sessions and seats |
|---|
| 7 | Summary(ja): ユーザ、セッションおよび座席を捕捉するシステムデーモン |
|---|
| 8 | Name: ConsoleKit |
|---|
| 9 | Version: 0.4.6 |
|---|
| 10 | Release: 3%{?_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.xz |
|---|
| 16 | # Convert to new upstart syntax |
|---|
| 17 | Patch0: ConsoleKit-0.4.1-upstart06.patch |
|---|
| 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} |
|---|
| 24 | BuildRequires: eudev-libudev-devel |
|---|
| 25 | BuildRequires: libacl-devel |
|---|
| 26 | BuildRequires: pam-devel |
|---|
| 27 | BuildRequires: libX11-devel |
|---|
| 28 | BuildRequires: zlib-devel |
|---|
| 29 | BuildRequires: xmlto |
|---|
| 30 | BuildRequires: autoconf, automake |
|---|
| 31 | Requires: dbus |
|---|
| 32 | Requires: dbus-glib |
|---|
| 33 | |
|---|
| 34 | Vendor: Project Vine |
|---|
| 35 | Distribution: Vine Linux |
|---|
| 36 | Packager: daisuke, takemikaduchi |
|---|
| 37 | |
|---|
| 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): ConsoleKit の開発用ライブラリおよびヘッダファイル |
|---|
| 77 | License: MIT |
|---|
| 78 | Group: Development/Libraries |
|---|
| 79 | Requires: %{name} = %{version}-%{release} |
|---|
| 80 | Requires: dbus-devel |
|---|
| 81 | Requires: pkgconfig |
|---|
| 82 | |
|---|
| 83 | %description devel |
|---|
| 84 | Headers, libraries and API docs for ConsoleKit |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | %package docs |
|---|
| 88 | Summary: Developer documentation for ConsoleKit |
|---|
| 89 | Summary(ja): ConsoleKit の開発用ドキュメント |
|---|
| 90 | Group: Documentation |
|---|
| 91 | Requires: %{name} = %{version}-%{release} |
|---|
| 92 | |
|---|
| 93 | %description docs |
|---|
| 94 | Developer documentation for ConsoleKit. |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | %prep |
|---|
| 98 | %setup -q |
|---|
| 99 | %patch0 -p1 -b .upstart06 |
|---|
| 100 | |
|---|
| 101 | %build |
|---|
| 102 | autoreconf -i -f |
|---|
| 103 | # To avoid build failure, skip validation at xmlto |
|---|
| 104 | export XMLTO_FLAGS="--skip-validation" |
|---|
| 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} |
|---|
| 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 |
|---|
| 155 | /lib/udev/rules.d/*.rules |
|---|
| 156 | /lib/udev/udev-acl |
|---|
| 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 |
|---|
| 175 | %{_prefix}/lib/ConsoleKit/run-seat.d/udev-acl.ck |
|---|
| 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 |
|---|
| 202 | * Mon Jan 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4.6-3 |
|---|
| 203 | - moved docs subpackage to Documentation Group |
|---|
| 204 | - added --skip-validation option to xmlto |
|---|
| 205 | |
|---|
| 206 | * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.6-2 |
|---|
| 207 | - change BuildRequires: eudev-libudev-devel instead of libudev-devel |
|---|
| 208 | |
|---|
| 209 | * Sun Nov 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.6-1 |
|---|
| 210 | - new upstream release |
|---|
| 211 | - remove Patch1 (ConsoleKit-0.4.5-git20120320.patch) |
|---|
| 212 | |
|---|
| 213 | * Sat Nov 03 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.5-3 |
|---|
| 214 | - add "--enable-udev-acl" option |
|---|
| 215 | - add BR: libudev-devel, libacl-devel |
|---|
| 216 | - add BR: autoconf, automake |
|---|
| 217 | |
|---|
| 218 | * Sat Oct 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.5-2 |
|---|
| 219 | - add Patch0 (ConsoleKit-0.4.1-upstart06.patch) |
|---|
| 220 | - add Patch1 (ConsoleKit-0.4.5-git20120320.patch) |
|---|
| 221 | |
|---|
| 222 | * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.5-1 |
|---|
| 223 | - new upstream release |
|---|
| 224 | |
|---|
| 225 | * Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1 |
|---|
| 226 | - new upstream release |
|---|
| 227 | |
|---|
| 228 | * Wed Oct 13 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-1 |
|---|
| 229 | - new upstream release |
|---|
| 230 | |
|---|
| 231 | * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.1-2 |
|---|
| 232 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 233 | |
|---|
| 234 | * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.1-1 |
|---|
| 235 | - new upstream release |
|---|
| 236 | |
|---|
| 237 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-6 |
|---|
| 238 | - add patch11 to enable policy access to the Manager.GetSessions |
|---|
| 239 | method in the default ConsoleKit.conf |
|---|
| 240 | https://bugs.freedesktop.org/show_bug.cgi?id=20471 |
|---|
| 241 | http://bugzilla.gnome.org/show_bug.cgi?id=580259 |
|---|
| 242 | |
|---|
| 243 | * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-5 |
|---|
| 244 | - add patch10 to fix dbus permissions |
|---|
| 245 | https://bugs.freedesktop.org/show_bug.cgi?id=19020 |
|---|
| 246 | (This patch is already committed to master) |
|---|
| 247 | |
|---|
| 248 | * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.0-4 |
|---|
| 249 | - changed Group to System Environment/Daemons |
|---|
| 250 | - changed x11 subpackage's Group to System Environment/Daemons |
|---|
| 251 | - changed libs subpackage's Group to System Environment/Libraries |
|---|
| 252 | - added %%post, %%postun section fo libs subpackage |
|---|
| 253 | |
|---|
| 254 | * Sat Aug 09 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.0-3 |
|---|
| 255 | - changed %%{_libdir}/ConsoleKit to %%{_prefix}/lib/ConsoleKit |
|---|
| 256 | |
|---|
| 257 | * Thu Aug 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-2 |
|---|
| 258 | - remove init script, console-kit-daemon is now launched from dbus. |
|---|
| 259 | |
|---|
| 260 | * Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0-1 |
|---|
| 261 | - new upstream release |
|---|
| 262 | |
|---|
| 263 | * Tue Jul 1 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-3 |
|---|
| 264 | - fix Japanese description |
|---|
| 265 | - spec in UTF-8 |
|---|
| 266 | - add Source10 (init.d script for console-kit-daemon); |
|---|
| 267 | add %%post/%%preun scripts, until "initng" being introduced to Vine |
|---|
| 268 | |
|---|
| 269 | * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.10-2 |
|---|
| 270 | - rebuilt with PolicyKit-0.8 |
|---|
| 271 | |
|---|
| 272 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.10-1 |
|---|
| 273 | - new upstream release |
|---|
| 274 | - new versioning policy |
|---|
| 275 | |
|---|
| 276 | * Tue Jan 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.3-0vl1 |
|---|
| 277 | - initial build for Vine Linux |
|---|
| 278 | |
|---|
| 279 | * Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-2 |
|---|
| 280 | - Rebuild against new dbus-glib |
|---|
| 281 | |
|---|
| 282 | * Tue Sep 18 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.3-1 |
|---|
| 283 | - Update to 0.2.3 |
|---|
| 284 | |
|---|
| 285 | * Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.2-1 |
|---|
| 286 | - Update to 0.2.2 |
|---|
| 287 | |
|---|
| 288 | * Mon Aug 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-4 |
|---|
| 289 | - Update license field |
|---|
| 290 | |
|---|
| 291 | * Fri Jul 6 2007 Matthias Clasen <mclasen@redhat.com> - 0.2.1-3 |
|---|
| 292 | - Add LSB header to init script (#246894) |
|---|
| 293 | |
|---|
| 294 | * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-2 |
|---|
| 295 | - Set doc directory correctly |
|---|
| 296 | |
|---|
| 297 | * Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-1 |
|---|
| 298 | - Update to upstream release 0.2.1 |
|---|
| 299 | - Drop the patch to daemonize properly as that was merged upstream |
|---|
| 300 | |
|---|
| 301 | * Mon Apr 02 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-0.git20070402 |
|---|
| 302 | - Update to git snapshot to get a lot of bug fixes |
|---|
| 303 | - Use libX11 rather than gtk2 to verify X11 sessions; update BR and R |
|---|
| 304 | - Split X11-using bits into a new subpackage ConsoleKit-x11 (#233982) |
|---|
| 305 | - Use correct location for PAM module on 64-bit (#234545) |
|---|
| 306 | - Build developer documentation and put them in ConsoleKit-docs |
|---|
| 307 | |
|---|
| 308 | * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-2 |
|---|
| 309 | - BR gtk2-devel and make ConsoleKit Require gtk2 (could just be |
|---|
| 310 | libX11 with a simple patch) |
|---|
| 311 | |
|---|
| 312 | * Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-1 |
|---|
| 313 | - Update to upstream release 0.2.0 |
|---|
| 314 | - Daemonize properly (#229206) |
|---|
| 315 | |
|---|
| 316 | * Sat Mar 3 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301.1 |
|---|
| 317 | - Allow caller to pass uid=0 in libck-connector |
|---|
| 318 | |
|---|
| 319 | * Thu Mar 1 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301 |
|---|
| 320 | - Update to git snapshot |
|---|
| 321 | - Drop all patches as they are committed upstream |
|---|
| 322 | - New tool ck-list-sessions |
|---|
| 323 | - New -libs subpackage with run-time libraries and a PAM module |
|---|
| 324 | - New -devel subpackage with headers |
|---|
| 325 | |
|---|
| 326 | * Tue Feb 6 2007 David Zeuthen <davidz@redhat.com> - 0.1.0-5%{?dist} |
|---|
| 327 | - Start ConsoleKit a bit earlier so it starts before HAL (98 -> 90) |
|---|
| 328 | - Minimize stack usage so VIRT size is more reasonable (mclasen) |
|---|
| 329 | - Make session inactive when switching to non-session (davidz) |
|---|
| 330 | |
|---|
| 331 | * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-4 |
|---|
| 332 | - Don't mark initscripts %%config |
|---|
| 333 | - Use proper lock and pid ile names |
|---|
| 334 | |
|---|
| 335 | * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-3 |
|---|
| 336 | - More package review feedback |
|---|
| 337 | |
|---|
| 338 | * Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-2 |
|---|
| 339 | - Incorporate package review feedback |
|---|
| 340 | |
|---|
| 341 | * Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-1 |
|---|
| 342 | - Update to the first public release 0.1.0 |
|---|
| 343 | - Some spec cleanups |
|---|
| 344 | |
|---|
| 345 | * Mon Oct 23 2006 David Zeuthen <davidz@redhat.com> - 0.0.3-1 |
|---|
| 346 | - Initial build. |
|---|
| 347 | |
|---|