SPECS: ConsoleKit.spec (NEW) - new based on PolicyKit

czarny czarny at pld-linux.org
Wed Mar 14 17:53:16 CET 2007


Author: czarny                       Date: Wed Mar 14 16:53:16 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new based on PolicyKit

---- Files affected:
SPECS:
   ConsoleKit.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ConsoleKit.spec
diff -u /dev/null SPECS/ConsoleKit.spec:1.1
--- /dev/null	Wed Mar 14 17:53:16 2007
+++ SPECS/ConsoleKit.spec	Wed Mar 14 17:53:11 2007
@@ -0,0 +1,161 @@
+# $Revision$, $Date$
+# TODO:
+# - check library deps (it seems to link with some X11 libs)
+# - generally check all
+%define	snap	20070314
+Summary:	ConsoleKit for PolicyKit
+Summary(pl.UTF-8):	ConsoleKit dla PolicyKit
+Name:		ConsoleKit
+Version:	0.1.3
+Release:	0.%{snap}.1
+License:	GPL v2
+Group:		Libraries
+Source0:	%{name}-%{snap}.tar.bz2
+# Source0-md5:	b4f5ce06f5d137ea559afc0461c58a73
+Source1:	%{name}.init
+Patch0:		%{name}-pam64.patch
+URL:		http://webcvs.freedesktop.org/hal/
+BuildRequires:	PolicyKit-devel
+BuildRequires:	autoconf >= 2.57
+BuildRequires:	automake
+BuildRequires:	dbus-devel >= 0.60
+BuildRequires:	glib2-devel >= 1:2.6.0
+BuildRequires:	gtk-doc >= 1.3
+BuildRequires:	libtool
+BuildRequires:	pam-devel >= 0.80
+BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	xmlto
+Requires(post,preun):	/sbin/chkconfig
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	PolicyKit
+Requires:	dbus-libs >= 0.60
+Requires:	glib2 >= 1:2.6.0
+Requires:	rc-scripts
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+I totally don't know what this does, as it has no homepage.
+
+%description -l pl.UTF-8
+Totalnie nei wiem, co ta paczka robi, bo nie ma strony domowej.
+
+%package libs
+Summary:	ConsoleKit libraries
+Summary(pl.UTF-8):Biblioteki ConsoleKit
+License:	AFL v2.1 or GPL v2
+Group:		Libraries
+Conflicts:	ConsoleKit < 0.1-0.20061203.6
+
+%description libs
+ConsoleKit libraries.
+
+%description libs -l pl.UTF-8
+Biblioteki ConsoleKit.
+
+%package devel
+Summary:	Header files for ConsoleKit
+Summary(pl.UTF-8):Pliki nagłówkowe ConsoleKit
+License:	AFL v2.1 or GPL v2
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for ConsoleKit.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe ConsoleKit.
+
+%package static
+Summary:	Static ConsoleKit libraries
+Summary(pl.UTF-8):Statyczne biblioteki ConsoleKit
+License:	AFL v2.1 or GPL v2
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static ConsoleKit libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki ConsoleKit.
+
+%prep
+%setup -q -n %{name}-%{snap}
+%ifarch %{x8664}
+%patch0 -p1
+%endif
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--enable-pam-module \
+	--enable-docbook-docs
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ConsoleKit
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add ConsoleKit
+%service ConsoleKit restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q ConsoleKit stop
+	/sbin/chkconfig --del ConsoleKit
+fi
+
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ck-list-sessions
+%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) /%{_lib}/security/pam_ck_connector.so*
+%{_sysconfdir}/dbus-1/system.d/ConsoleKit.conf
+%attr(754,root,root) /etc/rc.d/init.d/*
+%{_mandir}/man8/pam_ck_connector*
+
+%files libs
+%defattr(644,root,root,755)
+%doc COPYING
+%attr(755,root,root) %{_libdir}/libck-connector.so.*.*.*
+/%{_lib}/security/pam*
+
+%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
+%{_pkgconfigdir}/ck-connector.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libck-connector.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/14 16:53:11  czarny
+- new based on PolicyKit
+
================================================================


More information about the pld-cvs-commit mailing list