[packages/polkit] Add gettext support for .policy files (patch from upstream). Release 4.
megabajt
megabajt at pld-linux.org
Tue Mar 13 22:01:39 CET 2018
commit 9dc7cbe66f34c76c9021e27e51105b59dca3e7df
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date: Tue Mar 13 21:59:49 2018 +0100
Add gettext support for .policy files (patch from upstream). Release 4.
polkit-itstool.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
polkit.spec | 6 +++++-
2 files changed, 47 insertions(+), 1 deletion(-)
---
diff --git a/polkit.spec b/polkit.spec
index a4efb2a..571c68e 100644
--- a/polkit.spec
+++ b/polkit.spec
@@ -7,13 +7,14 @@ Summary: A framework for defining policy for system-wide components
Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych
Name: polkit
Version: 0.113
-Release: 3
+Release: 4
License: LGPL v2+
Group: Libraries
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
# Source0-md5: 4b77776c9e4f897dcfe03b2c34198edf
Patch0: systemd-fallback.patch
Patch1: js187.patch
+Patch2: %{name}-itstool.patch
URL: http://www.freedesktop.org/wiki/Software/polkit
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1:1.7
@@ -115,6 +116,7 @@ Statyczne biblioteki PolicyKit.
%setup -q
%{?with_systemd:%patch0 -p1}
%patch1 -p1
+%patch2 -p1
%build
%{?with_apidocs:%{__gtkdocize}}
@@ -218,6 +220,8 @@ fi
%{_pkgconfigdir}/polkit-gobject-1.pc
%{_datadir}/gir-1.0/Polkit-1.0.gir
%{_datadir}/gir-1.0/PolkitAgent-1.0.gir
+%{_datadir}/gettext/its/polkit.its
+%{_datadir}/gettext/its/polkit.loc
%files static
%defattr(644,root,root,755)
diff --git a/polkit-itstool.patch b/polkit-itstool.patch
new file mode 100644
index 0000000..1632a71
--- /dev/null
+++ b/polkit-itstool.patch
@@ -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>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/polkit.git/commitdiff/9dc7cbe66f34c76c9021e27e51105b59dca3e7df
More information about the pld-cvs-commit
mailing list