From d1e56cc20b208e3a1b6630990993ee1cc9291c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sun, 13 May 2018 17:19:02 +0100 Subject: [PATCH] Add symlink to /usr/share/intltool-debian (#1345764) Add License macro --- po-debconf.spec | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/po-debconf.spec b/po-debconf.spec index c53dc13..205e06a 100644 --- a/po-debconf.spec +++ b/po-debconf.spec @@ -14,7 +14,7 @@ Name: po-debconf Version: 1.0.20 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Tool for managing templates file translations with gettext Group: Development/Tools @@ -31,6 +31,7 @@ BuildRequires: /usr/bin/pod2html # Needed for check %if %{with check} BuildRequires: perl-generators +BuildRequires: perl(Test) BuildRequires: perl(Test::Harness) BuildRequires: debconf BuildRequires: intltool @@ -58,13 +59,10 @@ common gettext utilities. # Fix upstream chmod -x COPYING + %build -make %{?_smp_mflags} +%make_build -%if %{with check} -%check -( cd ./tests && PODEBCONF_LIB=/usr/bin ./run.pl ) -%endif %install mkdir -p \ @@ -88,15 +86,23 @@ for lang_man in `find doc/ -name "*.1" -exec dirname {} \; | sort -u`; do done done -install -pm 644 encodings %{buildroot}/%{_datadir}/%{name} -install -pm 644 pot-header %{buildroot}/%{_datadir}/%{name}/ -cp -a podebconf-report-po_templates/ %{buildroot}/%{_datadir}/%{name}/templates +install -pm 644 encodings %{buildroot}%{_datadir}/%{name}/ +install -pm 644 pot-header %{buildroot}%{_datadir}/%{name}/ +cp -a podebconf-report-po_templates/ %{buildroot}%{_datadir}/%{name}/templates +# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1345764 +# https://bugzilla.redhat.com/show_bug.cgi?id=591389#c18 +ln -s ../bin %{buildroot}%{_datadir}/intltool-debian %find_lang po-debconf --without-mo --with-man --all-name +%if %{with check} +%check +( cd ./tests && PODEBCONF_LIB=/usr/bin ./run.pl ) +%endif + %files -f po-debconf.lang -%defattr(-,root,root,-) -%doc COPYING README README-trans +%doc README README-trans +%license COPYING %{_mandir}/man1/*.1* %{_bindir}/debconf-gettextize %{_bindir}/debconf-updatepo @@ -104,8 +110,13 @@ cp -a podebconf-report-po_templates/ %{buildroot}/%{_datadir}/%{name}/templates %{_bindir}/podebconf-display-po %{_bindir}/podebconf-report-po %{_datadir}/%{name} +%{_datadir}/intltool-debian %changelog +* Sun May 13 2018 Sérgio Basto - 1.0.20-5 +- Add symlink to /usr/share/intltool-debian (#1345764) +- Add License macro + * Fri Feb 09 2018 Fedora Release Engineering - 1.0.20-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild