diff --git a/polkit-0.113-itstool.patch b/polkit-0.113-itstool.patch new file mode 100644 index 0000000..1632a71 --- /dev/null +++ b/polkit-0.113-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 @@ ++ ++ ++ ++ ++ +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 @@ ++ ++ ++ ++ ++ ++ diff --git a/polkit.spec b/polkit.spec index 5aac692..0f06c92 100644 --- a/polkit.spec +++ b/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 - 0.113-13 +- Add the its files from upstream. + * Tue Apr 4 2017 Miloslav Trmač - 0.113-12 - Fix a memory leak in PolkitPermission. Patch by Rui Matos