2009-07-30 18:07:53 +02:00
|
|
|
#
|
2011-04-15 16:12:10 +02:00
|
|
|
# spec file for package polkit
|
2009-07-30 18:07:53 +02:00
|
|
|
#
|
2011-04-15 16:12:10 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-07-30 18:07:53 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: polkit
|
|
|
|
Summary: PolicyKit Authorization Framework
|
2011-03-09 15:03:42 +01:00
|
|
|
Version: 0.101
|
|
|
|
Release: 2
|
2011-04-26 21:21:00 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-30 18:07:53 +02:00
|
|
|
Url: http://www.freedesktop.org/wiki/Software/PolicyKit
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-08-26 11:13:54 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2
|
|
|
|
Source99: baselibs.conf
|
2011-03-09 15:03:42 +01:00
|
|
|
BuildRequires: glib2-devel >= 2.25.12
|
|
|
|
BuildRequires: gobject-introspection-devel >= 0.6.2
|
2009-07-30 18:07:53 +02:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: intltool
|
2010-08-26 11:13:54 +02:00
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: pam-devel
|
2009-07-30 18:07:53 +02:00
|
|
|
Requires: ConsoleKit
|
|
|
|
Requires: dbus-1
|
|
|
|
Requires: libpolkit0 = %{version}-%{release}
|
|
|
|
|
2011-04-26 19:03:02 +02:00
|
|
|
Patch10: polkit-CVE-2011-1485-1.patch
|
|
|
|
Patch11: polkit-CVE-2011-1485-2.patch
|
|
|
|
Patch12: polkit-CVE-2011-1485-3.patch
|
|
|
|
Patch13: polkit-CVE-2011-1485-4.patch
|
|
|
|
|
|
|
|
# Upstream First - Policy:
|
|
|
|
# Never add any patches to this package without the upstream commit id
|
|
|
|
# in the patch. Any patches added here without a very good reason to make
|
|
|
|
# an exception will be silently removed with the next version update.
|
|
|
|
|
2009-07-30 18:07:53 +02:00
|
|
|
%description
|
|
|
|
PolicyKit is a toolkit for defining and handling authorizations.
|
|
|
|
It is used for allowing unprivileged processes to speak to privileged
|
|
|
|
processes.
|
|
|
|
|
|
|
|
%package devel
|
2011-04-26 21:21:00 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-30 18:07:53 +02:00
|
|
|
Summary: Development files for PolicyKit
|
2010-08-26 11:13:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-07-30 18:07:53 +02:00
|
|
|
Requires: %name = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: glib2-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for PolicyKit Authorization Framework.
|
|
|
|
|
|
|
|
%package doc
|
2011-04-26 21:21:00 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-30 18:07:53 +02:00
|
|
|
Summary: Development documentation for PolicyKit
|
2010-08-26 11:13:54 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-01-18 13:07:53 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2009-07-30 18:07:53 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Development documentation for PolicyKit Authorization Framework.
|
|
|
|
|
|
|
|
%package -n libpolkit0
|
2011-04-26 21:21:00 +02:00
|
|
|
License: LGPLv2.1+
|
2009-07-30 18:07:53 +02:00
|
|
|
Summary: Libraries required for polkit
|
2010-08-26 11:13:54 +02:00
|
|
|
Group: System/Libraries
|
2009-08-28 20:12:54 +02:00
|
|
|
Requires: %{name} = %{version}
|
2009-07-30 18:07:53 +02:00
|
|
|
|
|
|
|
%description -n libpolkit0
|
|
|
|
PolicyKit is a toolkit for defining and handling authorizations.
|
|
|
|
It is used for allowing unprivileged processes to speak to privileged
|
|
|
|
processes.
|
|
|
|
|
|
|
|
This package contains the libraries only.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-04-26 19:03:02 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
2009-07-30 18:07:53 +02:00
|
|
|
|
|
|
|
%build
|
2010-04-16 01:31:12 +02:00
|
|
|
export V=1
|
2009-07-30 18:07:53 +02:00
|
|
|
%configure \
|
|
|
|
--with-os-type=suse \
|
|
|
|
--enable-gtk-doc \
|
|
|
|
--disable-static \
|
2010-08-26 11:13:54 +02:00
|
|
|
--enable-introspection \
|
2010-01-18 13:07:53 +01:00
|
|
|
--enable-examples \
|
2009-07-30 18:07:53 +02:00
|
|
|
--libexecdir=%{_prefix}/lib/polkit-1
|
2010-07-20 20:13:37 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-07-30 18:07:53 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la
|
|
|
|
# For some reason, "smart" parts of the build are _sometimes_
|
|
|
|
# not smart enough to handle a 0700 directory. We set that back to
|
|
|
|
# the proper original value in the %file list
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/polkit-1
|
|
|
|
%find_lang polkit-1
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_permissions
|
|
|
|
%verifyscript
|
2009-08-13 23:33:53 +02:00
|
|
|
%verify_permissions -e %{_bindir}/pkexec
|
2009-07-30 18:07:53 +02:00
|
|
|
%verify_permissions -e %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
|
|
|
|
|
|
|
%post -n libpolkit0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpolkit0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libpolkit0
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so.*
|
2010-08-26 11:13:54 +02:00
|
|
|
%{_libdir}/girepository-1.0/Polkit-1.0.typelib
|
2011-04-15 16:12:10 +02:00
|
|
|
%{_libdir}/girepository-1.0/PolkitAgent-1.0.typelib
|
2009-07-30 18:07:53 +02:00
|
|
|
|
|
|
|
%files -f polkit-1.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%dir %{_libdir}/polkit-1
|
|
|
|
%dir %{_libdir}/polkit-1/extensions
|
|
|
|
%{_libdir}/polkit-1/extensions/*.so
|
|
|
|
%{_datadir}/man/man1/pkexec.1.gz
|
|
|
|
%{_datadir}/man/man1/pkaction.1.gz
|
|
|
|
%{_datadir}/man/man1/pkcheck.1.gz
|
|
|
|
%{_datadir}/man/man8/polkitd.8.gz
|
|
|
|
%{_datadir}/man/man8/polkit.8.gz
|
|
|
|
%{_datadir}/man/man8/pklocalauthority.8.gz
|
2010-11-11 13:26:16 +01:00
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%{_datadir}/dbus-1/system-services
|
2009-07-30 18:07:53 +02:00
|
|
|
%dir %{_datadir}/polkit-1
|
|
|
|
%dir %{_datadir}/polkit-1/actions
|
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
|
2010-11-11 13:26:16 +01:00
|
|
|
%dir %{_sysconfdir}/dbus-1
|
|
|
|
%dir %{_sysconfdir}/dbus-1/system.d
|
2009-07-30 18:07:53 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/polkit-1
|
2010-08-26 11:13:54 +02:00
|
|
|
%dir %{_sysconfdir}/polkit-1
|
2010-11-11 13:26:16 +01:00
|
|
|
%dir %{_sysconfdir}/polkit-1/nullbackend.conf.d
|
2009-07-30 18:07:53 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/polkit-1/nullbackend.conf.d/50-nullbackend.conf
|
2010-11-11 13:26:16 +01:00
|
|
|
%dir %{_sysconfdir}/polkit-1/localauthority.conf.d
|
2009-07-30 18:07:53 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/polkit-1/localauthority.conf.d/50-localauthority.conf
|
|
|
|
%{_bindir}/pkaction
|
|
|
|
%{_bindir}/pkcheck
|
2009-08-13 23:33:53 +02:00
|
|
|
%verify(not mode) %attr(4755,root,root) %{_bindir}/pkexec
|
2009-07-30 18:07:53 +02:00
|
|
|
%dir %{_prefix}/lib/polkit-1
|
|
|
|
%{_prefix}/lib/polkit-1/polkitd
|
2009-08-13 23:33:53 +02:00
|
|
|
%verify(not mode) %attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
2009-07-30 18:07:53 +02:00
|
|
|
%attr(0700,root,root) %dir %{_localstatedir}/lib/polkit-1
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_bindir}/pk-example-frobnicate
|
2010-08-26 11:13:54 +02:00
|
|
|
%{_datadir}/gir-1.0/*.gir
|
2009-07-30 18:07:53 +02:00
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2011-03-09 15:03:42 +01:00
|
|
|
%doc NEWS
|
2009-07-30 18:07:53 +02:00
|
|
|
%{_datadir}/gtk-doc/html/*
|
|
|
|
|
|
|
|
%changelog
|