32863aa
%define glib2_version           2.6.0
32863aa
%define dbus_version            0.90
32863aa
%define dbus_glib_version       0.70
32863aa
32863aa
Summary: System daemon for tracking users, sessions and seats
32863aa
Name: ConsoleKit
417b931
Version: 0.2.2
417b931
Release: 1%{?dist}
97bc1ea
License: GPLv2+
32863aa
Group: System Environment/Libraries
32863aa
URL: http://consolekit.freedesktop.org
David Zeuthen 684daa7
Source0: http://people.freedesktop.org/~mccann/dist/ConsoleKit-%{version}.tar.gz
d3c6032
Patch0: ConsoleKit-0.2.1-lsb.patch
32863aa
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
32863aa
Requires: dbus >= %{dbus_version}
32863aa
32863aa
BuildRequires: glib2-devel >= %{glib2_version}
32863aa
BuildRequires: dbus-devel  >= %{dbus_version}
32863aa
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
David Zeuthen 289c63a
BuildRequires: pam-devel
David Zeuthen c9e5357
BuildRequires: libX11-devel
David Zeuthen c9e5357
BuildRequires: xmlto
32863aa
32863aa
Requires(post): chkconfig
32863aa
Requires(preun): chkconfig
32863aa
32863aa
%description 
32863aa
ConsoleKit is a system daemon for tracking what users are logged
32863aa
into the system and how they interact with the computer (e.g.
32863aa
which keyboard and mouse they use).
32863aa
32863aa
It provides asynchronous notification via the system message bus.
32863aa
David Zeuthen c9e5357
%package x11
David Zeuthen c9e5357
Summary: X11-requiring add-ons for ConsoleKit
97bc1ea
License: GPLv2+
David Zeuthen c9e5357
Group: Development/Libraries
David Zeuthen c9e5357
Requires: %name = %{version}-%{release}
David Zeuthen c9e5357
Requires: libX11
David Zeuthen c9e5357
David Zeuthen c9e5357
%description x11 
David Zeuthen c9e5357
ConsoleKit contains some tools that require Xlib to be installed,
David Zeuthen c9e5357
those are in this separate package so server systems need not install
David Zeuthen c9e5357
X. Applications (such as xorg-x11-xinit) and login managers (such as
David Zeuthen c9e5357
gdm) that need to register their X sessions with ConsoleKit needs to
David Zeuthen c9e5357
have a Requires: for this package.
David Zeuthen c9e5357
David Zeuthen 289c63a
%package libs
David Zeuthen 289c63a
Summary: ConsoleKit libraries
97bc1ea
License: MIT
David Zeuthen 289c63a
Group: Development/Libraries
David Zeuthen 289c63a
Requires: pam
David Zeuthen 289c63a
Requires: dbus >= %{dbus_version}
David Zeuthen 289c63a
David Zeuthen 289c63a
%description libs
David Zeuthen 289c63a
Libraries and a PAM module for interacting with ConsoleKit.
David Zeuthen 289c63a
David Zeuthen 289c63a
%package devel
David Zeuthen 289c63a
Summary: Development libraries and headers for ConsoleKit
97bc1ea
License: MIT
David Zeuthen 289c63a
Group: Development/Libraries
David Zeuthen 289c63a
Requires: dbus-devel >= %{dbus_version}
David Zeuthen 289c63a
Requires: pkgconfig
David Zeuthen 289c63a
David Zeuthen 289c63a
%description devel
David Zeuthen 289c63a
Headers, libraries and API docs for ConsoleKit
David Zeuthen 289c63a
David Zeuthen c9e5357
%package docs
David Zeuthen c9e5357
Summary: Developer documentation for ConsoleKit
David Zeuthen c9e5357
Group: Development/Libraries
David Zeuthen c9e5357
Requires: %name = %{version}-%{release}
David Zeuthen c9e5357
David Zeuthen c9e5357
%description docs
David Zeuthen c9e5357
Developer documentation docs for HAL.
David Zeuthen c9e5357
32863aa
%prep
David Zeuthen 289c63a
%setup -q
d3c6032
%patch0 -p1 -b .lsb
32863aa
32863aa
%build
David Zeuthen 6132a07
%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}
32863aa
32863aa
make
32863aa
32863aa
%install
32863aa
rm -rf $RPM_BUILD_ROOT
32863aa
make install DESTDIR=$RPM_BUILD_ROOT
32863aa
David Zeuthen c9e5357
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
David Zeuthen c9e5357
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
David Zeuthen c9e5357
rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.a
David Zeuthen c9e5357
rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la
David Zeuthen c9e5357
David Zeuthen c9e5357
cp README AUTHORS NEWS COPYING $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
David Zeuthen 289c63a
32863aa
%clean
32863aa
rm -rf $RPM_BUILD_ROOT
32863aa
32863aa
%post
32863aa
/sbin/chkconfig --add ConsoleKit
David Zeuthen a6aa1f3
/sbin/chkconfig ConsoleKit resetpriorities
32863aa
32863aa
%preun
32863aa
if [ $1 = 0 ]; then
32863aa
    /sbin/service ConsoleKit stop > /dev/null 2>&1
32863aa
    /sbin/chkconfig --del ConsoleKit
32863aa
fi
32863aa
32863aa
%files
32863aa
%defattr(-,root,root,-)
8e1caeb
%doc %dir %{_datadir}/doc/%{name}-%{version}
8e1caeb
%doc %{_datadir}/doc/%{name}-%{version}/README
8e1caeb
%doc %{_datadir}/doc/%{name}-%{version}/AUTHORS
8e1caeb
%doc %{_datadir}/doc/%{name}-%{version}/NEWS
8e1caeb
%doc %{_datadir}/doc/%{name}-%{version}/COPYING
32863aa
%{_sysconfdir}/dbus-1/system.d/*
32863aa
%{_sysconfdir}/rc.d/init.d/ConsoleKit
0d11f71
%dir %{_sysconfdir}/ConsoleKit
0d11f71
%dir %{_sysconfdir}/ConsoleKit/seats.d
0d11f71
%config %{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat
32863aa
%{_sbindir}/console-kit-daemon
David Zeuthen 289c63a
%{_bindir}/ck-list-sessions
David Zeuthen c9e5357
David Zeuthen c9e5357
%files x11
David Zeuthen c9e5357
%defattr(-,root,root,-)
David Zeuthen eaf1aaa
%{_libexecdir}/*
David Zeuthen 289c63a
David Zeuthen 289c63a
%files libs
David Zeuthen 289c63a
%defattr(-,root,root,-)
David Zeuthen c9e5357
%{_libdir}/lib*.so.*
David Zeuthen c9e5357
/%{_lib}/security/*.so
97bc1ea
%{_mandir}/man8/pam_ck_connector.8.gz
David Zeuthen 289c63a
David Zeuthen 289c63a
%files devel
David Zeuthen 289c63a
%defattr(-,root,root,-)
David Zeuthen 289c63a
David Zeuthen c9e5357
%{_libdir}/lib*.so
David Zeuthen 289c63a
%{_libdir}/pkgconfig/*
David Zeuthen 289c63a
%{_includedir}/*
32863aa
David Zeuthen c9e5357
%files docs
David Zeuthen c9e5357
%defattr(-,root,root,-)
David Zeuthen c9e5357
%doc %dir %{_datadir}/doc/%{name}-%{version}/spec
David Zeuthen c9e5357
%doc %{_datadir}/doc/%{name}-%{version}/spec/*
32863aa
32863aa
%changelog
417b931
* Mon Sep 17 2007 Matthias Clasen  <mclasen@redhat.com> - 0.2.2-1
417b931
- Update to 0.2.2
417b931
97bc1ea
* Mon Aug  6 2007 Matthias Clasen  <mclasen@redhat.com> - 0.2.1-4
97bc1ea
- Update license field
97bc1ea
d3c6032
* Fri Jul  6 2007 Matthias Clasen  <mclasen@redhat.com> - 0.2.1-3
d3c6032
- Add LSB header to init script (#246894)
d3c6032
David Zeuthen 6132a07
* Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-2
David Zeuthen 6132a07
- Set doc directory correctly
David Zeuthen 6132a07
David Zeuthen 684daa7
* Mon Apr 16 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-1
David Zeuthen 684daa7
- Update to upstream release 0.2.1
David Zeuthen 684daa7
- Drop the patch to daemonize properly as that was merged upstream
David Zeuthen 684daa7
David Zeuthen c9e5357
* Mon Apr 02 2007 David Zeuthen <davidz@redhat.com> - 0.2.1-0.git20070402
David Zeuthen c9e5357
- Update to git snapshot to get a lot of bug fixes
David Zeuthen c9e5357
- Use libX11 rather than gtk2 to verify X11 sessions; update BR and R
David Zeuthen c9e5357
- Split X11-using bits into a new subpackage ConsoleKit-x11 (#233982)
David Zeuthen c9e5357
- Use correct location for PAM module on 64-bit (#234545)
David Zeuthen c9e5357
- Build developer documentation and put them in ConsoleKit-docs
David Zeuthen c9e5357
David Zeuthen b90fb6a
* Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-2
David Zeuthen b90fb6a
- BR gtk2-devel and make ConsoleKit Require gtk2 (could just be
David Zeuthen b90fb6a
  libX11 with a simple patch)
David Zeuthen b90fb6a
David Zeuthen eaf1aaa
* Mon Mar 19 2007 David Zeuthen <davidz@redhat.com> - 0.2.0-1
David Zeuthen eaf1aaa
- Update to upstream release 0.2.0
David Zeuthen eaf1aaa
- Daemonize properly (#229206)
David Zeuthen eaf1aaa
David Zeuthen aa97b93
* Sat Mar  3 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301.1
David Zeuthen aa97b93
- Allow caller to pass uid=0 in libck-connector
David Zeuthen aa97b93
David Zeuthen 289c63a
* Thu Mar  1 2007 David Zeuthen <davidz@redhat.com> - 0.1.3-0.git20070301
David Zeuthen 289c63a
- Update to git snapshot
David Zeuthen 289c63a
- Drop all patches as they are committed upstream
David Zeuthen 289c63a
- New tool ck-list-sessions
David Zeuthen 289c63a
- New -libs subpackage with run-time libraries and a PAM module
David Zeuthen 289c63a
- New -devel subpackage with headers
David Zeuthen 289c63a
David Zeuthen a6aa1f3
* Tue Feb  6 2007 David Zeuthen <davidz@redhat.com> - 0.1.0-5%{?dist}
David Zeuthen a6aa1f3
- Start ConsoleKit a bit earlier so it starts before HAL (98 -> 90)
David Zeuthen a6aa1f3
- Minimize stack usage so VIRT size is more reasonable (mclasen)
David Zeuthen a6aa1f3
- Make session inactive when switching to non-session (davidz)
David Zeuthen a6aa1f3
32863aa
* Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-4
32863aa
- Don't mark initscripts %%config
32863aa
- Use proper lock and pid ile names
32863aa
32863aa
* Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-3
32863aa
- More package review feedback
32863aa
32863aa
* Fri Jan 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-2
32863aa
- Incorporate package review feedback
32863aa
32863aa
* Thu Jan 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.1.0-1
32863aa
- Update to the first public release 0.1.0
32863aa
- Some spec cleanups
32863aa
32863aa
* Mon Oct 23 2006 David Zeuthen <davidz@redhat.com> - 0.0.3-1
32863aa
- Initial build.
32863aa