packages: polkit/polkit.spec (NEW) - initial PLD release

patrys patrys at pld-linux.org
Mon Jun 29 22:19:12 CEST 2009


Author: patrys                       Date: Mon Jun 29 20:19:12 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial PLD release

---- Files affected:
packages/polkit:
   polkit.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/polkit/polkit.spec
diff -u /dev/null packages/polkit/polkit.spec:1.1
--- /dev/null	Mon Jun 29 22:19:12 2009
+++ packages/polkit/polkit.spec	Mon Jun 29 22:19:06 2009
@@ -0,0 +1,210 @@
+# $Revision$, $Date$
+# TODO: package bash-completion in proper way
+Summary:	A framework for defining policy for system-wide components
+Summary(pl.UTF-8):	Szkielet do definiowania polityki dla komponentów systemowych
+Name:		polkit
+Version:	0.92
+Release:	1
+License:	LGPL v2+
+Group:		Libraries
+Source0:	http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
+# Source0-md5:	16ba7d33ea9d130e093e9ab8b4c267e6
+URL:		http://people.freedesktop.org/~david/polkit-spec.html
+BuildRequires:	autoconf >= 2.60
+BuildRequires:	automake >= 1:1.7
+BuildRequires:	dbus-devel >= 1.0
+BuildRequires:	dbus-glib-devel >= 0.73
+BuildRequires:	eggdbus-devel
+BuildRequires:	expat-devel >= 1:1.95.8
+BuildRequires:	glib2-devel >= 1:2.6.0
+BuildRequires:	gtk-doc >= 1.3
+BuildRequires:	libselinux-devel >= 1.30
+BuildRequires:	libtool
+BuildRequires:	pam-devel >= 0.80
+BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	xmlto
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires(pre):	/bin/id
+Requires(pre):	/usr/bin/getgid
+Requires(pre):	/usr/lib/rpm/user_group.sh
+Requires(pre):	/usr/sbin/groupadd
+Requires(pre):	/usr/sbin/useradd
+Requires(pre):	/usr/sbin/usermod
+Requires(triggerpostun):	/sbin/chkconfig
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	ConsoleKit >= 0.2.1
+Requires:	dbus >= 1.1.2-5
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PolicyKit is a framework for defining policy for system-wide
+components and for desktop pieces to configure it. It is used by HAL.
+
+%description -l pl.UTF-8
+PolicyKit to szkielet do definiowania polityki dla komponentów
+systemowych oraz składników pulpitu do konfigurowania ich. Jest
+używany przez HAL-a.
+
+%package apidocs
+Summary:	PolicyKit API documentation
+Summary(pl.UTF-8):	Dokumentacja API PolicyKit
+Group:		Documentation
+Requires:	gtk-doc-common
+
+%description apidocs
+PolicyKit API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API PolicyKit.
+
+%package libs
+Summary:	PolicyKit libraries
+Summary(pl.UTF-8):	Biblioteki PolicyKit
+Group:		Libraries
+Requires:	dbus-libs >= 1.0
+Requires:	glib2 >= 1:2.6.0
+Conflicts:	PolicyKit < 0.1-0.20061203.6
+
+%description libs
+PolicyKit libraries.
+
+%description libs -l pl.UTF-8
+Biblioteki PolicyKit.
+
+%package devel
+Summary:	Header files for PolicyKit
+Summary(pl.UTF-8):	Pliki nagłówkowe PolicyKit
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	expat-devel >= 1:1.95.8
+# polkit-grant
+#Requires:	glib2-devel >= 1:2.6.0
+# polkit-dbus and polkit-grant
+#Requires:	dbus-devel >= 1.0
+# polkit-dbus
+#Requires:	libselinux-devel >= 1.30
+
+%description devel
+Header files for PolicyKit.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe PolicyKit.
+
+%package static
+Summary:	Static PolicyKit libraries
+Summary(pl.UTF-8):	Statyczne biblioteki PolicyKit
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static PolicyKit libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki PolicyKit.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--enable-gtk-doc \
+	--with-html-dir=%{_gtkdocdir} \
+	--with-pam-include=system-auth \
+	--with-pam-module-dir=/%{_lib}/security
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a}
+
+%find_lang polkit-1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
+%files -f polkit-1.lang
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%attr(755,root,root) %{_bindir}/pkaction
+%attr(755,root,root) %{_bindir}/pkcheck
+%attr(4755,root,root) %{_bindir}/pkexec
+%attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1
+%attr(755,root,root) %{_libexecdir}/polkitd-1
+%dir %{_libdir}/polkit-1
+%dir %{_libdir}/polkit-1/extensions
+%attr(755,root,root) %{_libdir}/polkit-1/extensions/nullbackend.so
+%attr(755,root,root) %{_libdir}/polkit-1/extensions/pkexec-action-lookup.so
+%dir %{_sysconfdir}/polkit-1
+%dir %{_sysconfdir}/polkit-1/localauthority.conf.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf
+%dir %{_sysconfdir}/polkit-1/nullbackend.conf.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf
+/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
+/etc/pam.d/polkit-1
+%{_datadir}/polkit-1
+%{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service
+%attr(700,root,root) %dir /var/lib/polkit-1
+%{_mandir}/man1/pkaction.1*
+%{_mandir}/man1/pkcheck.1*
+%{_mandir}/man1/pkexec.1*
+%{_mandir}/man8/PolicyKit-1.8*
+%{_mandir}/man8/polkitd-1.8*
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/polkit-1
+
+%files libs
+%defattr(644,root,root,755)
+# notes which license applies to which package part, AFL text (and GPL text copy)
+%doc COPYING
+%attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0
+%attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0
+%attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pk-example-frobnicate
+%attr(755,root,root) %{_libdir}/libpolkit-agent-1.so
+%attr(755,root,root) %{_libdir}/libpolkit-backend-1.so
+%attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so
+%{_libdir}/libpolkit-agent-1.la
+%{_libdir}/libpolkit-backend-1.la
+%{_libdir}/libpolkit-gobject-1.la
+%{_includedir}/polkit-1
+%{_pkgconfigdir}/polkit-agent-1.pc
+%{_pkgconfigdir}/polkit-backend-1.pc
+%{_pkgconfigdir}/polkit-gobject-1.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libpolkit-agent-1.a
+%{_libdir}/libpolkit-backend-1.a
+%{_libdir}/libpolkit-gobject-1.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  2009/06/29 20:19:06  patrys
+- initial PLD release
+
================================================================


More information about the pld-cvs-commit mailing list