Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
PolicyKit-doc
PolicyKit.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PolicyKit.spec of Package PolicyKit-doc
# # spec file for package PolicyKit (Version 0.9) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %if 0%{?suse_version} > 1100 %bcond_without selinux %else %bcond_with selinux %endif Name: PolicyKit %define build_doc 0 BuildRequires: dbus-1-glib-devel fdupes glib2-devel intltool pkg-config BuildRequires: libexpat-devel pam-devel %if %{with selinux} BuildRequires: libselinux-devel %endif %if %build_doc BuildRequires: gtk-doc xmlto %endif %if !%build_doc PreReq: permissions /usr/sbin/groupadd /usr/sbin/useradd %endif Url: http://www.freedesktop.org/wiki/Software/PolicyKit License: X11/MIT Group: System/Libraries Version: 0.9 Release: 13.<RELEASE11> AutoReqProv: on Summary: Authorization Toolkit BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %build_doc Requires: PolicyKit = %{version} %else Requires: ConsoleKit Recommends: PolicyKit-doc %endif Source: PolicyKit-%{version}.tar.bz2 Patch0: pedantic-headers.diff Patch1: PolicyKit-0.9-pidconstraint.diff Patch2: PolicyKit-0.9-unset-dbus-error-if-caller-has-no-ConsoleKit-session.diff Patch3: PolicyKit-0.9-unset-dbus-error-if-AuthenticationAgent-is-not-availa.diff Patch4: PolicyKit-0.9-allow-root-to-obtain-privileges.diff Patch5: PolicyKit-0.9-dbuspolicy.diff %description PolicyKit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes. Authors: -------- David Zeuthen <davidz@redhat.com> %if !%build_doc %package -n PolicyKit-devel License: X11/MIT Summary: Development files for PolicyKit Group: Development/Libraries/Other Requires: %{name} = %{version} dbus-1-glib-devel glib2-devel dbus-1-devel %description -n PolicyKit-devel This package contains the development files for PolicyKit. PolicyKit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes. Authors: -------- David Zeuthen <davidz@redhat.com> %endif %prep %setup -q -n PolicyKit-%{version} %patch0 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %build %configure \ --libexecdir=%{_prefix}/lib/PolicyKit \ %if %build_doc --docdir=%{_datadir}/doc/packages/PolicyKit \ --enable-man-pages \ --enable-docbook-docs \ %endif %if %{with selinux} --enable-selinux \ %endif --with-os-type=suse make %install %makeinstall %if %build_doc mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/packages/PolicyKit install -m 644 {README,AUTHORS,ChangeLog,COPYING,NEWS} $RPM_BUILD_ROOT/%{_datadir}/doc/packages/PolicyKit %endif rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/*.a %fdupes -s $RPM_BUILD_ROOT %if %build_doc rm -rf $RPM_BUILD_ROOT/%{_bindir} rm -rf $RPM_BUILD_ROOT/%{_libdir} rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/PolicyKit rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/dbus-1 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d rm -rf $RPM_BUILD_ROOT/%{_prefix}/lib rm -rf $RPM_BUILD_ROOT/%{_datadir}/PolicyKit rm -rf $RPM_BUILD_ROOT/%{_datadir}/dbus-1 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/polkit rm -rf $RPM_BUILD_ROOT/%{_includedir} rm -rf $RPM_BUILD_ROOT/%{_localstatedir} %else rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc %endif %clean rm -rf $RPM_BUILD_ROOT %if !%build_doc %pre if getent group polkituser >/dev/null then : OK group polkituser already present else /usr/sbin/groupadd -o -r polkituser 2>/dev/null || : fi if getent passwd polkituser >/dev/null then : OK user polkituser already present else /usr/sbin/useradd -r -g polkituser -c "PolicyKit" -d /var/run/PolicyKit -o polkituser 2>/dev/null || : fi %post /sbin/ldconfig %run_permissions %verifyscript %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-grant-helper %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-grant-helper-pam %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-set-default-helper %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-read-auth-helper %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-revoke-helper %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-explicit-grant-helper %verify_permissions -e %{_prefix}/lib/PolicyKit/polkit-resolve-exe-helper %postun /sbin/ldconfig %endif %if %build_doc %files %defattr(-,root,root) %doc %dir %{_datadir}/doc/packages/PolicyKit/ %doc %{_datadir}/doc/packages/PolicyKit/* %dir %{_datadir}/gtk-doc/html/polkit %{_datadir}/gtk-doc/html/polkit/* %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/* %else %files %defattr(-,root,root) %{_bindir}/* %{_libdir}/lib*.so.* %dir %{_sysconfdir}/PolicyKit %config(noreplace) %{_sysconfdir}/PolicyKit/PolicyKit.conf %config(noreplace) %{_sysconfdir}/pam.d/polkit %dir %{_prefix}/lib/PolicyKit %verify(not mode) %attr(4755,polkituser,root) %{_prefix}/lib/PolicyKit/polkit-set-default-helper %verify(not mode) %attr(2755,root,polkituser) %{_prefix}/lib/PolicyKit/polkit-read-auth-helper %verify(not mode) %attr(2755,root,polkituser) %{_prefix}/lib/PolicyKit/polkit-revoke-helper %verify(not mode) %attr(2755,root,polkituser) %{_prefix}/lib/PolicyKit/polkit-explicit-grant-helper %verify(not mode) %attr(2755,root,polkituser) %{_prefix}/lib/PolicyKit/polkit-grant-helper %verify(not mode) %attr(4750,root,polkituser) %{_prefix}/lib/PolicyKit/polkit-grant-helper-pam %verify(not mode) %attr(0755,root,polkituser) %{_prefix}/lib/PolicyKit/polkit-resolve-exe-helper %attr(0770,polkituser,polkituser) %dir %{_localstatedir}/run/PolicyKit %attr(0770,polkituser,polkituser) %dir %{_localstatedir}/lib/PolicyKit %attr(0775,polkituser,polkituser) %dir %{_localstatedir}/lib/PolicyKit-public %attr(0664,polkituser,polkituser) %{_localstatedir}/lib/misc/PolicyKit.reload %dir %{_datadir}/PolicyKit %dir %{_datadir}/PolicyKit/policy %{_datadir}/PolicyKit/policy/org.freedesktop.policykit.policy %{_datadir}/PolicyKit/config.dtd %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit.service %config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit.conf %{_prefix}/lib/PolicyKit/polkitd %attr(644,root,root) %{_sysconfdir}/profile.d/polkit-bash-completion.sh %files -n PolicyKit-devel %defattr(-,root,root) %{_libdir}/lib*.so %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/dbus-1/interfaces/org.freedesktop.PolicyKit.AuthenticationAgent.xml %endif %changelog * Thu Jan 22 2009 lnussel@suse.de - fix dbus policy (bnc#468386) * Thu Nov 06 2008 lnussel@suse.de - allow root to obtain privileges (bnc#431474) * Tue Nov 04 2008 lnussel@suse.de - another place where dbus error needs to be unset (bnc#439473) * Fri Oct 31 2008 lnussel@suse.de - unset dbus error is some non-error cases (bnc#439150) * Thu Oct 02 2008 lnussel@suse.de - don't set exe constraints if the resolve-exe-helper isn't setuid root - fix permissions to match new setting in level 'secure' * Wed Sep 10 2008 lnussel@suse.de - conditional SELinux support to allow build on older distros * Fri Aug 29 2008 jpr@suse.de - Update to 0.9 * need to link with libkit.la for some helpers * build fixes * always allow uid 0 to ask about authorizations for anyone * fix up permissions / docs for certain helpers and files/directories * remove watch on fd when reaching EOF * Mon Aug 25 2008 dmueller@suse.de - fix installed headers to compile with -pedantic * Wed Aug 20 2008 prusnak@suse.cz - enabled SELinux support [Fate#303662] * Thu Apr 17 2008 kay.sievers@novell.com - replace git snapshot with now released version 0.8 print warning to stderr if a policy file is malformed * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support * Wed Apr 09 2008 kay.sievers@novell.com - update to git snapshot fixes format string vulnerability CVE-2008-1658 (bnc#375832) fixes polkit-bash-completion.sh fixes https://bugzilla.novell.com/show_bug.cgi?id=295341#c25 * Wed Mar 12 2008 kay.sievers@novell.com - change %%_libexecdir to %%_prefix/lib as requested in (bnc#295341) * Sat Jan 26 2008 hmacht@suse.de - PolicyKit-0.7-use-stat.patch: On reiserfs, d_type from readdir() is set to DT_UNKNOWN, so use stat * Wed Jan 02 2008 kay.sievers@novell.com - add Recommend: PolicyKit-doc package - this sets the expected permissions, if the updated /etc/permissions.* (bnc#295341) is not available at installation time: [#] chown root:polkituser /usr/lib64/PolicyKit/polkit-* [#] chmod 2755 /usr/lib64/PolicyKit/polkit-* [#] chmod 4755 /usr/lib64/PolicyKit/polkit-grant-helper-pam * Thu Dec 20 2007 kay.sievers@novell.com - updated to v0.7 - All code is now licensed under the MIT/X11 license - libpolkit and libpolkit-dbus no longer depends on libglib. - Unit test framework and coverage reporting. As of this release, 64% of the codebase is currently tested during 'make check'. - New system D-Bus service (activated on demand) providing the major functionality of libpolkit.so from a mechanism point of view. This is useful for chroot(2)'ed services like Avahi. - A class for tracking D-Bus connections to minimize the amount of IPC necessary. Useful for long running daemons. - Pluggable authorization database backend. - New API for interacting with the authorization database - A very simple convenience API useful for (legacy) commandline tools. - A way to specify that an implicit authorization can be one-shot only. - Vendor name, site and icon support in .policy files. - Improved documentation. - Negative authorizations. - Bash completions for all command line tools. - needs /etc/permissions.* update (bnc#295341) * Wed Oct 17 2007 dkukawka@suse.de - updated to v0.6: - This is the fourth release of PolicyKit. There are no major changes since 0.5 expect a) better handling of unknown XML tags in the config and policy files (we simply ignore unknown sub-trees) to make it easier to add features in the future; b) native support for more distributions; and c) the addition of a <allow_any> tag to the .policy files. - removed all previous patches - moved man pages to -doc package due to dependency to xsltproc * Sat Aug 11 2007 aj@suse.de - Make separate spec file for PolicyKit-doc so that PolicyKit does not require TeX for building. * Sat Aug 11 2007 meissner@suse.de - binaries are packed with permissions in "secure" mode. - run fdupes - require dbus-1-devel in -devel too * Fri Aug 10 2007 coolo@suse.de - remove Permissions script - went to permissions * Fri Aug 03 2007 dkukawka@suse.de - added already upstream send patches: - polkit-allow-DBus_v0.61.diff: allow build against same DBus versions as HAL - polkit-fix-code_docu.diff - polkit-fix-compilerWarning.diff - polkit-fix-struct_naming.diff - polkit-fix-uid_t-compilerwarning.diff * Tue Jul 31 2007 kay.sievers@suse.de - update to git HEAD move PAM stack usage to very tiny separate setuid root helper add waitpid() to get SIGCHLD in error path handling * Sun Jul 29 2007 kay.sievers@suse.de - add /etc/permissions.d/PolicyKit and enable setguid for helper * Sun Jul 29 2007 kay.sievers@suse.de - configure --with-os-type=suse - install helper binaries in %%{_libexecdir}/PolicyKit/ * Fri Jul 27 2007 kay.sievers@suse.de - update to version 0.4 complete rewrite, not a daemon anymore - BETA checkin to prepare HAL and resmgr update "chmod 2775 /usr/lib(64)/polkit-grant-helper" is needed for now, until /etc/permissions.secure is updated * Thu Mar 08 2007 lrupp@suse.de - remove obsolete %%pre section * Wed Mar 07 2007 sbrabec@suse.cz - Created -devel and -doc subpackage (#248813). * Fri Mar 02 2007 ro@suse.de - do not rebuild docu, remove xmlto from build requires (causes extreme build dependencies) * Mon Nov 27 2006 dmueller@suse.de - install documentation in %%_docdir, not somewhere else * Tue Nov 14 2006 lnussel@suse.de - also restart resmgr after PolicyKit restart in order to restore desktop-console settings (#220265) * Sun Nov 12 2006 dkukawka@suse.de - fixed bugs: - b.n.c #216805: added policykitd to runlevel 2 * Thu Oct 26 2006 lnussel@suse.de - fix pam config by telling configure that we are on suse (#203526) * Wed Oct 25 2006 thoenig@suse.de - Add patch: PolicyKit-dbus-reconnect-thoenig-01.patch: Make PolicyKit survive D-Bus restarts (b.n.c #214905) * Wed Sep 06 2006 lnussel@suse.de - use resmgr for login tracking * Mon Sep 04 2006 seife@suse.de - fix init script to at least not throw up on syntax errors. * Tue Aug 22 2006 dkukawka@suse.de - updated to current git HEAD (git20060822) - updated rc file - removed upstream gone patches: - PolicyKit-fix-compiler_warnings.diff - fix to get 'make distcheck' running * Wed Aug 09 2006 thoenig@suse.de - BuildRequires (hal): replace dbus-1-devel by dbus-1-glib-devel - BuildRequires (hal-devel): add dbus-1-glib-devel * Thu Aug 03 2006 dkukawka@suse.de - added a startscript for polkitd * Tue Jul 25 2006 dkukawka@suse.de - initial version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor