Compare commits
No commits in common. "c8s" and "c9s" have entirely different histories.
11
.gitignore
vendored
11
.gitignore
vendored
@ -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
|
/po4a-0.63.tar.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- !Policy
|
--- !Policy
|
||||||
product_versions:
|
product_versions:
|
||||||
- rhel-8
|
- rhel-*
|
||||||
decision_context: osci_compose_gate
|
decision_context: osci_compose_gate
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
|
16
po4a.spec
16
po4a.spec
@ -1,6 +1,6 @@
|
|||||||
Name: po4a
|
Name: po4a
|
||||||
Version: 0.63
|
Version: 0.63
|
||||||
Release: 1%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A tool maintaining translations anywhere
|
Summary: A tool maintaining translations anywhere
|
||||||
License: GPL+
|
License: GPL+
|
||||||
URL: https://po4a.org/
|
URL: https://po4a.org/
|
||||||
@ -133,9 +133,17 @@ LANG=C.utf8
|
|||||||
%{_mandir}/*/man7/po4a.7*
|
%{_mandir}/*/man7/po4a.7*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed May 19 2021 Richard W.M. Jones <rjones@redhat.com> - 0.63-1
|
* Mon Sep 20 2021 Richard W.M. Jones <rjones@redhat.com> - 0.63-4
|
||||||
- Rebase RHEL 8 package to same as Fedora
|
- Synchronize package with Fedora Rawhide
|
||||||
resolves: rhbz#1959750
|
- 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
|
* Tue Feb 23 2021 Sérgio Basto <sergio@serjux.com> - 0.63-1
|
||||||
- Update po4a to 0.63 (#1905315)
|
- Update po4a to 0.63 (#1905315)
|
||||||
|
39
tests/basic-test.sh
Executable file
39
tests/basic-test.sh
Executable 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
13
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user