Add the its files from upstream
This commit is contained in:
parent
fb5b854986
commit
fa6fd57580
42
polkit-0.113-itstool.patch
Normal file
42
polkit-0.113-itstool.patch
Normal file
@ -0,0 +1,42 @@
|
||||
diff --git a/data/Makefile.am b/data/Makefile.am
|
||||
index fe0f1d5..18693fe 100644
|
||||
--- a/data/Makefile.am
|
||||
+++ b/data/Makefile.am
|
||||
@@ -36,6 +36,11 @@ pkgconfig_DATA = polkit-gobject-1.pc polkit-agent-1.pc
|
||||
|
||||
# ----------------------------------------------------------------------------------------------------
|
||||
|
||||
+itsdir = $(datadir)/gettext/its
|
||||
+its_DATA = polkit.loc polkit.its
|
||||
+
|
||||
+# ----------------------------------------------------------------------------------------------------
|
||||
+
|
||||
systemdservice_in_files = polkit.service.in
|
||||
|
||||
if HAVE_SYSTEMD
|
||||
diff --git a/data/polkit.its b/data/polkit.its
|
||||
new file mode 100644
|
||||
index 0000000..1c37e6b
|
||||
--- /dev/null
|
||||
+++ b/data/polkit.its
|
||||
@@ -0,0 +1,8 @@
|
||||
+<?xml version="1.0"?>
|
||||
+<its:rules xmlns:its="http://www.w3.org/2005/11/its"
|
||||
+ version="2.0">
|
||||
+ <its:translateRule selector="//*" translate="no"/>
|
||||
+ <its:translateRule selector="//action/description |
|
||||
+ //action/message"
|
||||
+ translate="yes"/>
|
||||
+</its:rules>
|
||||
diff --git a/data/polkit.loc b/data/polkit.loc
|
||||
new file mode 100644
|
||||
index 0000000..c7427ec
|
||||
--- /dev/null
|
||||
+++ b/data/polkit.loc
|
||||
@@ -0,0 +1,6 @@
|
||||
+<?xml version="1.0"?>
|
||||
+<locatingRules>
|
||||
+ <locatingRule name="polkit policy" pattern="*.policy">
|
||||
+ <documentRule localName="policyconfig" target="polkit.its"/>
|
||||
+ </locatingRule>
|
||||
+</locatingRules>
|
12
polkit.spec
12
polkit.spec
@ -1,12 +1,12 @@
|
||||
# Only enable if using patches that touches configure.ac,
|
||||
# Makefile.am or other build system related files
|
||||
#
|
||||
#define enable_autoreconf 1
|
||||
%define enable_autoreconf 1
|
||||
|
||||
Summary: An authorization framework
|
||||
Name: polkit
|
||||
Version: 0.113
|
||||
Release: 12%{?dist}
|
||||
Release: 13%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: http://www.freedesktop.org/wiki/Software/polkit
|
||||
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
|
||||
@ -15,6 +15,8 @@ Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.
|
||||
Patch0: polkit-0.113-agent-leaks.patch
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=99741
|
||||
Patch1: polkit-0.113-polkitpermission-leak.patch
|
||||
# already upstream
|
||||
Patch2: polkit-0.113-itstool.patch
|
||||
Group: System Environment/Libraries
|
||||
BuildRequires: glib2-devel >= 2.30.0
|
||||
BuildRequires: expat-devel
|
||||
@ -95,6 +97,7 @@ Libraries files for polkit.
|
||||
%setup -q
|
||||
%patch0 -p1 -b .agent-leaks
|
||||
%patch1 -p1 -b .polkitpermission-leak
|
||||
%patch2 -p1 -b .itstool
|
||||
|
||||
%build
|
||||
%if 0%{?enable_autoreconf}
|
||||
@ -167,6 +170,8 @@ exit 0
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_datadir}/gir-1.0/*.gir
|
||||
%{_includedir}/*
|
||||
%{_datadir}/gettext/its/polkit.its
|
||||
%{_datadir}/gettext/its/polkit.loc
|
||||
|
||||
%files docs
|
||||
%defattr(-,root,root,-)
|
||||
@ -180,6 +185,9 @@ exit 0
|
||||
%{_libdir}/girepository-1.0/*.typelib
|
||||
|
||||
%changelog
|
||||
* Thu Apr 13 2017 Richard Hughes <rhughes@redhat.com> - 0.113-13
|
||||
- Add the its files from upstream.
|
||||
|
||||
* Tue Apr 4 2017 Miloslav Trmač <mitr@redhat.com> - 0.113-12
|
||||
- Fix a memory leak in PolkitPermission.
|
||||
Patch by Rui Matos <tiagomatos@gmail.com>
|
||||
|
Loading…
Reference in New Issue
Block a user