use itstool instead of xml2po
This commit is contained in:
parent
1a1e7474b6
commit
b41cff1956
31
shadow-4.6-use-itstool.patch
Normal file
31
shadow-4.6-use-itstool.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up shadow-4.6/man/generate_translations.mak.use-itstool shadow-4.6/man/generate_translations.mak
|
||||||
|
--- shadow-4.6/man/generate_translations.mak.use-itstool 2018-04-29 18:42:37.000000000 +0200
|
||||||
|
+++ shadow-4.6/man/generate_translations.mak 2018-07-31 16:42:21.623990969 +0200
|
||||||
|
@@ -5,8 +5,19 @@ config.xml: ../config.xml.in
|
||||||
|
$(MAKE) -C .. config.xml
|
||||||
|
cp ../config.xml $@
|
||||||
|
|
||||||
|
-%.xml: ../%.xml ../po/$(LANG).po
|
||||||
|
- xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
|
||||||
|
+messages.mo: ../po/$(LANG).po
|
||||||
|
+ msgfmt ../po/$(LANG).po -o messages.mo
|
||||||
|
+
|
||||||
|
+login.defs.d:
|
||||||
|
+ ln -sf ../login.defs.d login.defs.d
|
||||||
|
+
|
||||||
|
+%.xml: ../%.xml messages.mo login.defs.d
|
||||||
|
+ if grep -q SHADOW-CONFIG-HERE $< ; then \
|
||||||
|
+ sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@; \
|
||||||
|
+ else \
|
||||||
|
+ sed -e 's/^\(<!DOCTYPE .*docbookx.dtd"\)>/\1 [<!ENTITY % config SYSTEM "config.xml">%config;]>/' $< > $@; \
|
||||||
|
+ fi
|
||||||
|
+ itstool -d -l $(LANG) -m messages.mo -o . $@
|
||||||
|
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
|
||||||
|
|
||||||
|
include ../generate_mans.mak
|
||||||
|
@@ -16,4 +27,4 @@ $(man_MANS):
|
||||||
|
@echo you need to run configure with --enable-man to generate man pages
|
||||||
|
endif
|
||||||
|
|
||||||
|
-CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST)) config.xml
|
||||||
|
+CLEANFILES = messages.mo login.defs.d $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST)) config.xml
|
@ -31,8 +31,9 @@ Patch32: shadow-4.5-crypt_h.patch
|
|||||||
Patch33: shadow-4.5-long-entry.patch
|
Patch33: shadow-4.5-long-entry.patch
|
||||||
Patch34: shadow-4.6-usermod-crash.patch
|
Patch34: shadow-4.6-usermod-crash.patch
|
||||||
Patch35: shadow-4.6-coverity.patch
|
Patch35: shadow-4.6-coverity.patch
|
||||||
Patch36: shadow-4.6-sssd-flush.patch
|
Patch36: shadow-4.6-use-itstool.patch
|
||||||
Patch37: shadow-4.6-sysugid-min-limit.patch
|
Patch37: shadow-4.6-sssd-flush.patch
|
||||||
|
Patch38: shadow-4.6-sysugid-min-limit.patch
|
||||||
|
|
||||||
License: BSD and GPLv2+
|
License: BSD and GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -41,8 +42,9 @@ BuildRequires: libselinux-devel >= 1.25.2-1
|
|||||||
BuildRequires: audit-libs-devel >= 1.6.5
|
BuildRequires: audit-libs-devel >= 1.6.5
|
||||||
BuildRequires: libsemanage-devel
|
BuildRequires: libsemanage-devel
|
||||||
BuildRequires: libacl-devel, libattr-devel
|
BuildRequires: libacl-devel, libattr-devel
|
||||||
BuildRequires: bison, flex, gnome-doc-utils, docbook-style-xsl, docbook-dtds
|
BuildRequires: bison, flex, docbook-style-xsl, docbook-dtds
|
||||||
BuildRequires: autoconf, automake, libtool, gettext-devel
|
BuildRequires: autoconf, automake, libtool, gettext-devel
|
||||||
|
BuildRequires: /usr/bin/xsltproc, /usr/bin/itstool
|
||||||
Requires: libselinux >= 1.25.2-1
|
Requires: libselinux >= 1.25.2-1
|
||||||
Requires: audit-libs >= 1.6.5
|
Requires: audit-libs >= 1.6.5
|
||||||
Requires: setup
|
Requires: setup
|
||||||
@ -85,8 +87,9 @@ are used for managing group accounts.
|
|||||||
%patch33 -p1 -b .long-entry
|
%patch33 -p1 -b .long-entry
|
||||||
%patch34 -p1 -b .usermod-crash
|
%patch34 -p1 -b .usermod-crash
|
||||||
%patch35 -p1 -b .coverity
|
%patch35 -p1 -b .coverity
|
||||||
%patch36 -p1 -b .sssd-flush
|
%patch36 -p1 -b .use-itstool
|
||||||
%patch37 -p1 -b .sysugid-min-limit
|
%patch37 -p1 -b .sssd-flush
|
||||||
|
%patch38 -p1 -b .sysugid-min-limit
|
||||||
|
|
||||||
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
||||||
cp -f doc/HOWTO.utf8 doc/HOWTO
|
cp -f doc/HOWTO.utf8 doc/HOWTO
|
||||||
@ -238,6 +241,9 @@ done
|
|||||||
%{_mandir}/man8/vigr.8*
|
%{_mandir}/man8/vigr.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 19 2018 Tomáš Mráz <tmraz@redhat.com> - 2:4.6-5
|
||||||
|
- use itstool instead of xml2po
|
||||||
|
|
||||||
* Tue Nov 6 2018 Tomáš Mráz <tmraz@redhat.com> - 2:4.6-4
|
* Tue Nov 6 2018 Tomáš Mráz <tmraz@redhat.com> - 2:4.6-4
|
||||||
- use cap_setxid file capabilities for newxidmap instead of making them setuid
|
- use cap_setxid file capabilities for newxidmap instead of making them setuid
|
||||||
- limit the SYS_U/GID_MIN value to 1 as the algorithm does not work with 0
|
- limit the SYS_U/GID_MIN value to 1 as the algorithm does not work with 0
|
||||||
|
Loading…
Reference in New Issue
Block a user