Accepting request 581491 from Base:System

cleaned (forwarded request 581346 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/581491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/polkit?expand=0&rev=59
This commit is contained in:
Dominique Leuenberger 2018-03-07 09:28:41 +00:00 committed by Git OBS Bridge
commit ac6004c002
2 changed files with 14 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 16:38:33 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 15 12:20:52 UTC 2017 - dimstar@opensuse.org Tue Aug 15 12:20:52 UTC 2017 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package polkit # spec file for package polkit
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -21,12 +21,12 @@ Name: polkit
Version: 0.113 Version: 0.113
Release: 0 Release: 0
Summary: PolicyKit Authorization Framework Summary: PolicyKit Authorization Framework
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: System/Libraries Group: System/Libraries
Url: http://www.freedesktop.org/wiki/Software/polkit/ URL: http://www.freedesktop.org/wiki/Software/polkit/
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
Source2: %name.keyring Source2: %{name}.keyring
Source99: baselibs.conf Source99: baselibs.conf
# PATCH-FIX-OPENSUSE polkit-no-wheel-group.patch vuntz@opensuse.org -- In openSUSE, there's no special meaning for the wheel group, so we shouldn't allow it to be admin # PATCH-FIX-OPENSUSE polkit-no-wheel-group.patch vuntz@opensuse.org -- In openSUSE, there's no special meaning for the wheel group, so we shouldn't allow it to be admin
Patch0: polkit-no-wheel-group.patch Patch0: polkit-no-wheel-group.patch
@ -54,6 +54,7 @@ BuildRequires: pam-devel
#!BuildIgnore: ruby #!BuildIgnore: ruby
Requires: dbus-1 Requires: dbus-1
Requires: libpolkit0 = %{version}-%{release} Requires: libpolkit0 = %{version}-%{release}
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: permissions PreReq: permissions
PreReq: pwdutils PreReq: pwdutils
%if 0%{?with_systemd} %if 0%{?with_systemd}
@ -85,7 +86,7 @@ processes.
%package devel %package devel
Summary: Development files for PolicyKit Summary: Development files for PolicyKit
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %name = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: libpolkit0 = %{version} Requires: libpolkit0 = %{version}
Requires: pkgconfig Requires: pkgconfig
Requires: typelib-1_0-Polkit-1_0 = %{version} Requires: typelib-1_0-Polkit-1_0 = %{version}
@ -159,7 +160,7 @@ make %{?_smp_mflags}
%install %install
%make_install %make_install
rm %{buildroot}%{_libdir}/*.la find %{buildroot} -type f -name "*.la" -delete -print
# create $HOME for polkit user # create $HOME for polkit user
install -d %{buildroot}%{_localstatedir}/lib/polkit install -d %{buildroot}%{_localstatedir}/lib/polkit
%find_lang polkit-1 %find_lang polkit-1
@ -192,22 +193,19 @@ exit 0
%verify_permissions -e %{_prefix}/lib/polkit-1/polkit-agent-helper-1 %verify_permissions -e %{_prefix}/lib/polkit-1/polkit-agent-helper-1
%post -n libpolkit0 -p /sbin/ldconfig %post -n libpolkit0 -p /sbin/ldconfig
%postun -n libpolkit0 -p /sbin/ldconfig %postun -n libpolkit0 -p /sbin/ldconfig
%files -n libpolkit0 %files -n libpolkit0
%defattr(-,root,root,-)
%{_libdir}/libpolkit-agent-1.so.* %{_libdir}/libpolkit-agent-1.so.*
%{_libdir}/libpolkit-gobject-1.so.* %{_libdir}/libpolkit-gobject-1.so.*
%files -n typelib-1_0-Polkit-1_0 %files -n typelib-1_0-Polkit-1_0
%defattr(-,root,root,-)
%{_libdir}/girepository-1.0/Polkit-1.0.typelib %{_libdir}/girepository-1.0/Polkit-1.0.typelib
%{_libdir}/girepository-1.0/PolkitAgent-1.0.typelib %{_libdir}/girepository-1.0/PolkitAgent-1.0.typelib
%files -f polkit-1.lang %files -f polkit-1.lang
%defattr(-,root,root,-) %license COPYING
%doc COPYING
%{_mandir}/man1/pkexec.1%{?ext_man} %{_mandir}/man1/pkexec.1%{?ext_man}
%{_mandir}/man1/pkaction.1%{?ext_man} %{_mandir}/man1/pkaction.1%{?ext_man}
%{_mandir}/man1/pkcheck.1%{?ext_man} %{_mandir}/man1/pkcheck.1%{?ext_man}
@ -242,7 +240,6 @@ exit 0
%endif %endif
%files devel %files devel
%defattr(-,root,root,-)
%{_libdir}/libpolkit-agent-1.so %{_libdir}/libpolkit-agent-1.so
%{_libdir}/libpolkit-gobject-1.so %{_libdir}/libpolkit-gobject-1.so
%{_libdir}/pkgconfig/polkit-agent-1.pc %{_libdir}/pkgconfig/polkit-agent-1.pc
@ -255,7 +252,6 @@ exit 0
%{_datadir}/gettext/its/polkit.loc %{_datadir}/gettext/its/polkit.loc
%files doc %files doc
%defattr(-,root,root,-)
%doc NEWS %doc NEWS
%doc %{_datadir}/gtk-doc/html/polkit-1/ %doc %{_datadir}/gtk-doc/html/polkit-1/