]> git.pld-linux.org Git - packages/polkit.git/commitdiff
Add gettext support for .policy files (patch from upstream). Release 4. auto/th/polkit-0.113-4
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Tue, 13 Mar 2018 20:59:49 +0000 (21:59 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Tue, 13 Mar 2018 20:59:49 +0000 (21:59 +0100)
polkit-itstool.patch [new file with mode: 0644]
polkit.spec

diff --git a/polkit-itstool.patch b/polkit-itstool.patch
new file mode 100644 (file)
index 0000000..1632a71
--- /dev/null
@@ -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>
index a4efb2ae338107185d0deaa9c6de1f91bc249a31..571c68e512469dc5c76286509f359854b0208946 100644 (file)
@@ -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)
This page took 0.211107 seconds and 4 git commands to generate.