ConsoleKit.spec revision 20066
13629N/A#
13629N/A# spec file for package ConsoleKit
13629N/A#
16362N/A# Copyright (c) 2010-2011, Oracle and/or its affiliates. All rights reserved.
13629N/A# This file and all modifications and additions to the pristine
13629N/A# package are under the same license as the package itself.
13629N/A#
13629N/A%define owner yippi
13629N/A# bugdb: bugs.freedesktop.org
13629N/A#
15291N/A%define OSR 10394:3.0
13629N/A
16571N/AName: ConsoleKit
13629N/ALicense: GPL v2+, MIT, BSD
13629N/AGroup: Libraries
13629N/AVersion: 0.4.1
13629N/ARelease: 1
16571N/ADistribution: Java Desktop System
13629N/AVendor: Freedesktop.org
13629N/ASummary: Framework for tracking users, login sessions, and seats.
13629N/AURL: http://www.freedesktop.org/wiki/Software/ConsoleKit
14461N/ASource: http://www.freedesktop.org/software/ConsoleKit/dist/%{name}-%{version}.tar.bz2
15240N/A# date:2008-12-30 owner:yippi type:bug bugzilla:19333
15240N/APatch1: ConsoleKit-01-ck-dynamic.diff
15299N/A# date:2009-07-23 owner:yippi type:branding
15584N/APatch2: ConsoleKit-02-add-sunray-type.diff
15637N/A# date:2009-07-23 owner:yippi type:branding
15584N/APatch3: ConsoleKit-03-sol-novt.diff
14461N/A# date:2009-09-25 owner:yippi type:branding state:upstream
13629N/APatch4: ConsoleKit-04-sol-tty.diff
13629N/A# date:2009-10-15 owner:yippi type:bug doo:11612 state:upstream
13629N/APatch5: ConsoleKit-05-sol-sigpoll.diff
13629N/A# date:2009-11-03 owner:yippi type:branding doo:12395
13629N/APatch6: ConsoleKit-06-sol-xserver.diff
13629N/A# date:2009-11-03 owner:yippi type:bug doo:12322 state:upstream
13629N/APatch7: ConsoleKit-07-sol-vt-major.diff
13629N/A# date:2009-11-10 owner:jedy type:bug bugzilla:24992
13629N/APatch8: ConsoleKit-08-can-stop.diff
13629N/A# date:2009-11-10 owner:jedy type:bug bugzilla:24749
13629N/APatch9: ConsoleKit-09-fastreboot.diff
13629N/A# date:2009-12-04 owner:yippi type:bug bugzilla:25436
13629N/APatch10: ConsoleKit-10-ck-history.diff
13629N/A# date:2010-01-15 owner:yippi type:bug bugzilla:26055
13629N/APatch11: ConsoleKit-11-sol-vtdaemon.diff
13629N/A# date:2010-01-15 owner:yippi type:bug bugzilla:28598 bugster:6951766
13629N/APatch12: ConsoleKit-12-cores-srss.diff
13629N/A# date:2010-02-23 owner:yippi type:bug bugster:7003908
13629N/APatch13: ConsoleKit-13-suppress-warning.diff
13629N/A
13629N/ABuildRequires: PolicyKit-devel >= 0.7
15240N/ABuildRequires: autoconf >= 2.60
15242N/ABuildRequires: automake >= 1:1.9
15299N/ABuildRequires: dbus-glib-devel >= 0.30
13629N/ABuildRequires: gettext-devel
13629N/ABuildRequires: glib2-devel >= 1:2.8.0
13629N/A# for <sys/inotify.h>
13629N/ABuildRequires: glibc-devel >= 6:2.4
13629N/ABuildRequires: libtool >= 1.4
13629N/ABuildRequires: pam-devel >= 0.80
13629N/ABuildRequires: pkgconfig
13629N/ABuildRequires: rpmbuild(macros) >= 1.268
13629N/ABuildRequires: xmlto
13629N/ABuildRequires: xorg-lib-libX11-devel >= 1.0.0
13629N/ABuildRequires: zlib-devel
13629N/ARequires: /sbin/chkconfig
13629N/ARequires: %{name}-libs = %{version}-%{release}
13629N/ARequires: dbus-glib >= 0.30
13629N/ARequires: glib2 >= 1:2.8.0
13629N/ARequires: rc-scripts
13629N/ARequires: xorg-lib-libX11 >= 1.0.0
13629N/ABuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13629N/A
13629N/A%description
13629N/AConsoleKit is a framework for defining and tracking users, login
14461N/Asessions, and seats.
13629N/A
13629N/A%package libs
13629N/ASummary: ConsoleKit library
13629N/ASummary(pl.UTF-8): Biblioteka ConsoleKit
13629N/ALicense: AFL v2.1 or GPL v2
13629N/AGroup: Libraries
13629N/ARequires: dbus-libs >= 0.30
13629N/AConflicts: ConsoleKit < 0.1-0.20061203.6
15240N/A
15240N/A%description libs
15240N/AConsoleKit library.
13629N/A
13629N/A%package devel
13629N/ASummary: Header files for ConsoleKit
13629N/ASummary(pl.UTF-8): Pliki nagłówkowe ConsoleKit
13629N/ALicense: AFL v2.1 or GPL v2
13629N/AGroup: Development/Libraries
13629N/ARequires: %{name}-libs = %{version}-%{release}
13629N/ARequires: dbus-devel >= 0.30
13629N/A
13629N/A%description devel
13629N/AHeader files for ConsoleKit.
13629N/A
13629N/A%package static
16571N/ASummary: Static ConsoleKit library
16571N/ASummary(pl.UTF-8): Statyczna biblioteka ConsoleKit
16362N/ALicense: AFL v2.1 or GPL v2
16362N/AGroup: Development/Libraries
16146N/ARequires: %{name}-devel = %{version}-%{release}
16146N/A
16146N/A%description static
16026N/AStatic ConsoleKit library.
16026N/A
15837N/A%prep
15837N/A%setup -q
15759N/A%patch1 -p1
15759N/A%patch2 -p1
15759N/A%patch3 -p1
15759N/A%patch4 -p1
15746N/A%patch5 -p1
15746N/A%patch6 -p1
15746N/A%patch7 -p1
15746N/A%patch8 -p1
15637N/A%patch9 -p1
15637N/A%patch10 -p1
15637N/A%patch11 -p1
15637N/A%patch13 -p1
15584N/A
15584N/A%build
15584N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15584N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15584N/A CPUS=1
15584N/Afi
15584N/A
15584N/Aglib-gettextize -f
15584N/Alibtoolize --copy --force
15584N/Aaclocal $ACLOCAL_FLAGS
15584N/Aautoheader
15411N/Aautomake -a -c -f
15411N/Aautoconf
15411N/A
15384N/A./configure --prefix=%{_prefix} \
15384N/A --libdir=%{_libdir} \
15384N/A --libexecdir=%{_libexecdir} \
15375N/A --localstatedir=%{_localstatedir} \
15375N/A --sysconfdir=%{_sysconfdir} \
15375N/A --mandir=%{_mandir} \
15370N/A%if %build_pam_module
15370N/A --enable-pam-module \
15299N/A --with-pam-module-dir=%{_libdir}/security \
15299N/A%endif
15291N/A --enable-rbac-shutdown=solaris.system.shutdown
15291N/Amake -j$CPUS
15279N/A
15287N/A%install
15287N/Arm -rf $RPM_BUILD_ROOT
15279N/Amake install DESTDIR=$RPM_BUILD_ROOT
15279N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
15242N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
15242N/A%if %build_pam_module
15242N/A%else
15240N/A# delete useless directory /usr/man/man8 which stores pam_ck_connector.8
15240N/A#
15240N/Arm -rf $RPM_BUILD_ROOT/%{_mandir}
15240N/A%endif
15240N/A
14461N/A# The /var/run directory should not be included with the packages.
14461N/A# ConsoleKit will create it at run-time.
14461N/A#
14185N/Armdir $RPM_BUILD_ROOT/var/run/ConsoleKit
14185N/Armdir $RPM_BUILD_ROOT/var/run
14157N/A
14157N/A%clean
13920N/Arm -rf $RPM_BUILD_ROOT
13920N/A
13764N/A%post libs -p /sbin/ldconfig
13764N/A%postun libs -p /sbin/ldconfig
13629N/A
13630N/A%files
13630N/A%defattr(-,root,root)
13630N/A%doc AUTHORS ChangeLog NEWS README TODO
13629N/A%attr(755,root,root) %{_bindir}/ck-history
13629N/A%attr(755,root,root) %{_bindir}/ck-launch-session
%attr(755,root,root) %{_bindir}/ck-list-sessions
%attr(755,root,root) %{_sbindir}/ck-log-system-restart
%attr(755,root,root) %{_sbindir}/ck-log-system-start
%attr(755,root,root) %{_sbindir}/ck-log-system-stop
%attr(755,root,root) %{_sbindir}/console-kit-daemon
%attr(755,root,root) %{_libdir}/ck-collect-session-info
%attr(755,root,root) %{_libdir}/ck-get-x11-server-pid
%attr(755,root,root) %{_libdir}/ck-get-x11-display-device
%dir %{_prefix}/lib/ConsoleKit/scripts
%attr(755,root,root) %{_prefix}/lib/ConsoleKit/scripts/*
%attr(755,root,root) /%{_lib}/security/pam_ck_connector.so
%{_datadir}/PolicyKit/policy/org.freedesktop.consolekit.policy
%{_datadir}/dbus-1/system-services/org.freedesktop.ConsoleKit.service
%{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml
%{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf
%dir %{_sysconfdir}/ConsoleKit
%dir %{_sysconfdir}/ConsoleKit/run-session.d
%dir %{_sysconfdir}/ConsoleKit/seats.d
%{_sysconfdir}/ConsoleKit/seats.d/00-primary.seat
%{_mandir}/man8/pam_ck_connector.8*
%dir %{_localstatedir}/run/ConsoleKit
%dir %{_localstatedir}/log/ConsoleKit
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libck-connector.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libck-connector.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libck-connector.so
%{_libdir}/libck-connector.la
%dir %{_includedir}/ConsoleKit
%dir %{_includedir}/ConsoleKit/ck-connector
%{_includedir}/ConsoleKit/ck-connector/*.h
%{_libdir}/pkgconfig/ck-connector.pc
%files static
%defattr(644,root,root,755)
%{_libdir}/libck-connector.a
%changelog
* Wed Feb 23 2011 - brian.cameron@oracle.com
- Add patch ConsoleKit-13-suppress-warning.diff.
* Fri Jun 18 2010 - halton.huo@sun.com
- Add patch -cores-srss.diff to fix bugzilla #28598, bugster #6951766.
* Fri Mar 26 2010 - halton.huo@sun.com
- Remove patch -actual-vt-on-switch.diff because we this issue fix
inside GDM code base instead.
* Fri Jan 15 2010 - halton.huo@sun.com
- Add patch -sol-vtdaemon.diff to fix bugzilla #26055.
* Fri Dec 04 2009 - halton.huo@sun.com
- Add patch -ck-history.diff to fix bugzilla #25436.
* Mon Nov 30 2009 - halton.huo@sun.com
- Add patch -actual-vt-on-switch.diff to fix doo #12563.
* Tue Nov 10 2009 - jedy.wang@sun.com
- Add patch fastreboot.diff to fix bugzilla #24749.
* Tue Nov 10 2009 - jedy.wang@sun.com
- Add patch can-stop.diff to fix bugzilla #24992.
* Thu Nov 05 2009 - halton.huo@sun.com
- Add patch sol-xserver.diff to fix doo #12395.
- Add patch sol-vt-major.diff to fix doo #12322.
* Thu Oct 15 2009 - halton.huo@sun.com
- Add patch sol-sigpoll.diff to fix doo #11612.
* Fri Sep 25 2009 - halton.huo@sun.com
- Add patch sol-tty.diff to correct return value of
/usr/lib/ck-get-x11-display-device after VT is integrated
- Remove tempory patch dev-console.diff
* Thu Sep 24 2009 - halton.huo@sun.com
- Bump to 0.4.1
- Remove upstreamed patch close-fp.diff
* Mon Sep 07 2009 - halton.huo@sun.com
- Remove obsoleted patch 01-ck-history.diff and reorder
* Fri Sep 04 2009 - halton.huo@sun.com
- Rework 02-ck-dynamic to fix console-kit-daemon core dump when
second time login. Get more information from branch multi-seat.
* Tue Aug 11 2009 - halton.huo@sun.com
- Remove obsoleted patches: dynamic-tty.diff and solaris-vtdaemon.diff
- Add sun branding patch sol-novt.diff
- Reorder patches
* Mon Jul 27 2009 - halton.huo@sun.com
- New from SFEconsolekit.spec