From e883d597abdd4e2c9da752bd4630c90734f5684b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 10 May 2013 17:50:07 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + polkit-pkla-compat.spec | 58 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 polkit-pkla-compat.spec diff --git a/.gitignore b/.gitignore index e69de29..32611e6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/polkit-pkla-compat-0.1.tar.xz diff --git a/polkit-pkla-compat.spec b/polkit-pkla-compat.spec new file mode 100644 index 0000000..424b4c6 --- /dev/null +++ b/polkit-pkla-compat.spec @@ -0,0 +1,58 @@ +Name: polkit-pkla-compat +Version: 0.1 +Release: 2%{?dist} +Summary: Rules for polkit to add compatibility with pklocalauthority +# GPLv2-licensed ltmain.sh and Apache-licensed mocklibc are not shipped in +# the binary package. +License: LGPLv2+ +URL: https://fedorahosted.org/polkit-pkla-compat/ +Source0: https://fedorahosted.org/releases/p/o/polkit-pkla-compat/polkit-pkla-compat-%{version}.tar.xz + +BuildRequires: docbook-style-xsl, libxslt, glib2-devel, polkit-devel +# To ensure the polkitd group already exists when this is installed +Requires(pre): polkit + +%global _hardened_build 1 + +%description +A polkit JavaScript rule and associated helpers that mostly provide +compatibility with the .pkla file format supported in polkit <= 0.105 for users +of later polkit releases. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} V=1 + +%install +%make_install INSTALL='install -p' + +%check +make check + +%files +%doc AUTHORS COPYING NEWS README +%dir %attr(0750,root,polkitd) %dir %{_sysconfdir}/polkit-1/localauthority +%dir %{_sysconfdir}/polkit-1/localauthority/*.d +%dir %{_sysconfdir}/polkit-1/localauthority.conf.d +%config(noreplace) %{_sysconfdir}/polkit-1/rules.d/49-polkit-pkla-compat.rules +%{_bindir}/pkla-admin-identities +%{_bindir}/pkla-check-authorization +%{_mandir}/man8/pkla-admin-identities.8* +%{_mandir}/man8/pkla-check-authorization.8* +%{_mandir}/man8/pklocalauthority.8* +%dir %attr(0750,root,polkitd) %{_localstatedir}/lib/polkit-1 +%dir %{_localstatedir}/lib/polkit-1/localauthority +%dir %{_localstatedir}/lib/polkit-1/localauthority/*.d + +%changelog +* Thu May 9 2013 Miloslav Trmač - 0.1-2 +- Add a comment above License about SRPM-only licenses +- Reword Summary: to avoid a rpmlint warning +- Move INSTALL= to the %%install section + +* Tue May 7 2013 Miloslav Trmač - 0.1-1 +- Initial package + diff --git a/sources b/sources index e69de29..2bed71b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +54ac39680327d65ceafa583480ba6d98 polkit-pkla-compat-0.1.tar.xz