Compare commits

...

No commits in common. "c8s" and "c9s" have entirely different histories.
c8s ... c9s

5 changed files with 75 additions and 6 deletions

11
.gitignore vendored
View File

@ -1,2 +1,11 @@
SOURCES/po4a-0.63.tar.gz
/po4a-0.45.tar.gz
/po4a_0.47.orig.tar.gz
/po4a_0.51.orig.tar.gz
/po4a_0.52.orig.tar.gz
/po4a-0.54.tar.gz
/po4a-0.56.tar.gz
/po4a-0.57.tar.gz
/po4a-0.59.1.tar.gz
/po4a-0.60.tar.gz
/po4a-0.61.tar.gz
/po4a-0.63.tar.gz

View File

@ -1,6 +1,6 @@
--- !Policy
product_versions:
- rhel-8
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,6 +1,6 @@
Name: po4a
Version: 0.63
Release: 1%{?dist}
Release: 4%{?dist}
Summary: A tool maintaining translations anywhere
License: GPL+
URL: https://po4a.org/
@ -133,9 +133,17 @@ LANG=C.utf8
%{_mandir}/*/man7/po4a.7*
%changelog
* Wed May 19 2021 Richard W.M. Jones <rjones@redhat.com> - 0.63-1
- Rebase RHEL 8 package to same as Fedora
resolves: rhbz#1959750
* Mon Sep 20 2021 Richard W.M. Jones <rjones@redhat.com> - 0.63-4
- Synchronize package with Fedora Rawhide
- Add gating tests for RHEL 9
resolves: rhbz#1990062
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.63-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.63-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Feb 23 2021 Sérgio Basto <sergio@serjux.com> - 0.63-1
- Update po4a to 0.63 (#1905315)

39
tests/basic-test.sh Executable file
View File

@ -0,0 +1,39 @@
#!/bin/bash -
set -e
set -x
po4a --help
# Write a test POD (Perl doc) file to the local directory.
cat >test.pod <<EOF
=head1 NAME
hello - hello world
=head1 DESCRIPTION
This is the hello world documentation
=head1 SEE ALSO
L<goodbye(1)>
EOF
# Try to compile it into a POT file using po4a-gettextize:
po4a-gettextize -f pod -M utf-8 -L utf-8 \
--package-name hello \
--package-version 1.0 \
--msgid-bugs-address noone@example.com \
--copyright-holder "Red Hat Inc." \
-p output.pot -m test.pod
cat output.pot
# Check for some expected strings in the output.
grep 'msgid "DESCRIPTION"' output.pot
grep 'msgid "This is the hello world documentation"' output.pot
# Clean up.
rm output.pot test.pod

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- bash
- coreutils
- grep
tests:
- simple:
dir: .
run: ./basic-test.sh