# Handle Debian +nmu version suffixes # As they are non-numeric we move them to the release part # Per Fedora policy: # https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Post-Release_packages #global posttag nmu3 %global release_posttag %{?posttag:.%{posttag}} %global tarball_posttag %{?posttag:+%{posttag}} %global debian_fqn %{name}_%{version}%{tarball_posttag} # Some self tests are failing. For now make it optional. # To try it, simply run: mock --with=check %bcond_with check Name: po-debconf Version: 1.0.20 Release: 5%{?dist} Summary: Tool for managing templates file translations with gettext Group: Development/Tools License: GPLv2+ URL: http://packages.debian.org/sid/po-debconf Source0: http://ftp.de.debian.org/debian/pool/main/p/%{name}/%{name}_%{version}%{tarball_posttag}.tar.xz BuildArch: noarch BuildRequires: po4a BuildRequires: dpkg-dev BuildRequires: /usr/bin/pod2html # Needed for check %if %{with check} BuildRequires: perl-generators BuildRequires: perl(Test) BuildRequires: perl(Test::Harness) BuildRequires: debconf BuildRequires: intltool %endif Requires: perl-interpreter Requires: intltool Requires: gettext Requires: html2text # Debian optional run-time features Requires: perl(Compress::Zlib) Requires: perl(Mail::Sendmail) Requires: perl(Mail::Box::Manager) %description This package is an alternative to debconf-utils, and provides tools for managing translated debconf templates files with common gettext utilities. %prep %setup -q -n %{name}-%{version}%{tarball_posttag} # Fix upstream chmod -x COPYING %build %make_build %install mkdir -p \ %{buildroot}/%{_bindir} \ %{buildroot}/%{_datadir}/%{name}/ for prog in debconf-gettextize debconf-updatepo po2debconf podebconf-display-po podebconf-report-po; do install -pm 755 $prog %{buildroot}/%{_bindir} done # I don't know what to do with these rm -rf doc/vi for lang_man in `find doc/ -name "*.1" -exec dirname {} \; | sort -u`; do lang_id=$(basename $lang_man | sed -e 's/en//g') mkdir -p %{buildroot}/%{_mandir}/man1/ mkdir -p "%{buildroot}/%{_mandir}/$lang_id/man1" for man in $lang_man/*.1; do dest_name=$(basename $man | sed -e "s/\.$lang_id\././") install -pm 644 "$man" "%{buildroot}/%{_mandir}/$lang_id/man1/$dest_name" 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 # 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 %doc README README-trans %license COPYING %{_mandir}/man1/*.1* %{_bindir}/debconf-gettextize %{_bindir}/debconf-updatepo %{_bindir}/po2debconf %{_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 * Thu Jul 27 2017 Fedora Release Engineering - 1.0.20-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jul 13 2017 Petr Pisar - 1.0.20-2 - perl dependency renamed to perl-interpreter * Tue Feb 14 2017 Sérgio Basto - 1.0.20-1 - Update po-debconf to 1.0.20 (#1296739) - po-debconf-1.0.16-fix-prefix.patch is upstreamed. * Tue Feb 14 2017 Sérgio Basto - 1.0.16-9.nmu3 - Bump version * Thu Jan 26 2017 Sérgio Basto - 1.0.16-8.nmu3 - Update to 1.0.16+nmu3 (same version currently in Debian/stable) * Mon Feb 15 2016 Oron Peled - 1.0.16-7.nmu2 - Fix FTBFS in rawhide - bug #1307868 - Fixed build dependency * Thu Feb 04 2016 Fedora Release Engineering - 1.0.16-6.nmu2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.0.16-5.nmu2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.16-4.nmu2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Aug 07 2013 Oron Peled - 1.0.16-3.nmu2 - Fixed build dependency - Fix FTBFS in rawhide - bug #992741 * Wed Jul 17 2013 Petr Pisar - 1.0.16-2.nmu2 - Perl 5.18 rebuild * Thu May 9 2013 Oron Peled - 1.0.16-1.nmu2 - Use same upstream version as Debian/wheezy - Remove patch1 (no-utf8) - Added more build-requires to enable features detected at build-time - Preserve timestamps during installation (install -p) - Prepare for 'check' -- some self-tests still fail * Mon May 14 2012 Oron Peled - 1.0.16+nmu1-1 - Now debconf is in Fedora (#5913320). It provides the perl classes missing to install po-debconf. - Installed translated man pages to correct names (without $LANG in the man-page name, only in the prefixing directory) - Use find_lang for translated man-pages - Don't specify exact compression scheme for (non-tranlated) man-pages - Removed Build-Root (not needed for modern Fedora) * Tue May 11 2010 Jeroen van Meeuwen - 1.0.16-3 - Add requirement for html2text - Add build requirement for debhelper - First package