Search
SailfishOS Open Build Service
>
Projects
>
home:sfietkonstantin
:
sailfish
:
experiments
>
polkit
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 24
[-]
[+]
Changed
polkit.spec
@@ -10,6 +10,8 @@ Patch0: seatedsession.patch Requires: dbus Requires: systemd +Requires: libpolkit = %{version}-%{release} +Requires: polkit-agent-helper Requires(preun): systemd Requires(post): /sbin/ldconfig Requires(post): systemd @@ -29,12 +31,18 @@ a framework for centralizing the decision making process with respect to granting access to privileged operations for unprivileged applications. +%package -n libpolkit +Summary: Libraries for polkit +Group: Development/Libraries + +%description -n libpolkit +Libraries for polkit + %package devel Summary: Development files for polkit Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: %name = %{version}-%{release} Requires: pkgconfig Requires: glib2-devel @@ -45,31 +53,24 @@ Summary: pkexec tool for polkit Group: System/Libraries Requires: %{name} = %{version}-%{release} -Requires: %name = %{version}-%{release} %description pkexec pkexec tool for polkit. +%package agent-helper-pam +Summary: Helper for polkit agent +Group: System/Libraries +Provides: %{name}-agent-helper +Requires: libpolkit = %{version}-%{release} + +%description agent-helper-pam +Helper for polkit agent, PAM backend. + %prep %setup -q -n %{name}-%{version} %patch0 -p1 %build -# Fix autotools-related issues with Git checkout timestamps, adapted from: -# http://www.gnu.org/software/automake/manual/html_node/CVS.html#All-Files-in-CVS -# (see also: http://stackoverflow.com/questions/934051) -for aclocal_file in $(find . -type f -a -name aclocal.m4); do - ( - cd $(dirname $aclocal_file) - sleep 1 - touch aclocal.m4 - sleep 1 - touch configure config.h.in - sleep 1 - find . -name Makefile.in -exec touch '{}' + - ) -done - # Set these here, so we don't need to patch configure export CFLAGS=$(pkg-config --cflags libshadowutils) export LIBS=$(pkg-config --libs libshadowutils) @@ -109,8 +110,6 @@ %files %defattr(-,root,root,-) -%{_libdir}/lib*.so.* -%dir %{_libdir}/polkit-1 %{_datadir}/locale/* %{_datadir}/dbus-1/system-services/* %dir %{_datadir}/polkit-1/ @@ -124,10 +123,13 @@ %{_sysconfdir}/polkit-1/rules.d/50-default.rules /lib/systemd/system/polkit.service # see upstream docs for why these permissions are necessary -%attr(4755,root,root) %{_libdir}/polkit-1/polkit-agent-helper-1 %attr(0700,polkitd,root) %config %dir %{_sysconfdir}/polkit-1/rules.d %attr(0700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d +%files -n libpolkit +%defattr(-,root,root,-) +%{_libdir}/lib*.so.* + %files devel %defattr(-,root,root,-) %{_libdir}/lib*.so @@ -139,3 +141,8 @@ %{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy # see upstream docs for why these permissions are necessary %attr(4755,root,root) %{_bindir}/pkexec + +%files agent-helper-pam +%defattr(-,root,root,-) +# see upstream docs for why these permissions are necessary +%attr(4755,root,root) %{_libdir}/polkit-1/polkit-agent-helper-1