Compare commits

...
Sign in to create a new pull request.

20 commits

Author SHA1 Message Date
Fedora Release Engineering
70368b9e1a Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 05:58:52 +00:00
Steven A. Falco
819607b95f Convert tests from STI to TMT 2025-07-23 17:21:01 -04:00
Steven A. Falco
5c50f92d7b Update to 0.74 2025-07-12 14:52:55 -04:00
Fedora Release Engineering
0c6db5646e Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 10:28:23 +00:00
Fedora Release Engineering
2b5ebbb058 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 08:10:34 +00:00
Packit
eb05dc3be9 Update to 0.73 upstream release
- Resolves: rhbz#2267401

Upstream tag: v0.73
Upstream commit: 87732c78

Commit authored by Packit automation (https://packit.dev/)
2024-06-17 23:47:24 +00:00
Packit
08d210453c Update to 0.72 upstream release
- Resolves: rhbz#2267401

Upstream tag: v0.72
Upstream commit: 1698935b

Commit authored by Packit automation (https://packit.dev/)
2024-06-05 21:42:25 +01:00
Richard W.M. Jones
ea6a788c41 Fix "Malformed encoding" error with newest Perl
(https://github.com/mquinson/po4a/issues/494)
2024-05-09 16:17:21 +01:00
Sérgio M. Basto
cbae01f4bd Disable tests again, randomly they fail with Charset "CHARSET" is not a
portable encoding name. Message conversion to user's charset might not work.
2024-03-11 14:25:59 +00:00
Sérgio M. Basto
447adfdb79 Add upstream patch Fix the --translate-only option 2024-03-04 00:38:36 +00:00
Packit
16ab392bb6 [packit] 0.71 upstream release
- Resolves rhbz#2267401

Upstream tag: v0.71
Upstream commit: 495a9515
2024-03-03 22:22:32 +00:00
Sérgio M. Basto
5fbee0e89b Add perl(Test::Pod) to perform more tests 2024-03-03 22:20:03 +00:00
Sérgio M. Basto
72bcf2c7e1 Fix the parsing of nested simple and double quotes
Enable build tests
2024-02-25 02:38:34 +00:00
Sérgio M. Basto
567ddd0bd1 [packit] 0.70 upstream release
Upstream tag: v0.70
Upstream commit: f37edd6e
2024-02-18 05:09:06 +00:00
Sérgio M. Basto
6900f81666 Add .packit.yaml 2024-02-18 05:06:56 +00:00
Fedora Release Engineering
4a52a138dd Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 23:50:58 +00:00
Fedora Release Engineering
23a29b8b51 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 22:03:57 +00:00
Yaakov Selkowitz
3a04a5f8ca Fix path-based dependencies
Installation path macros must not be used in file dependencies:

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_dependencies

Furthermore, while libxslt (xsltproc) is always in /usr even in flatpak
builds as it is part of the runtime, opensp (nsgmls) is built in /app as
a dependency of libofx for various financial applications.  Therefore,
no assumptions should be made regarding its location.
2023-10-12 17:52:31 -04:00
Daniel P. Berrangé
a76678272b Convert license to SPDX format
Note: source is imprecise about 2.0-only vs 2.0-or-later:

 https://github.com/mquinson/po4a/issues/434

Here we follow Debian's lead in choosing 2.0-or-later, since at
least the more recently added source files do have an explicit
"or later" comment.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-09-20 14:14:04 +01:00
Fedora Release Engineering
56aea00d68 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 05:57:13 +00:00
10 changed files with 128 additions and 27 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

5
.gitignore vendored
View file

@ -15,3 +15,8 @@
/po4a-0.67.tar.gz
/po4a-0.68.tar.gz
/po4a-0.69.tar.gz
/po4a-0.70.tar.gz
/po4a-0.71.tar.gz
/po4a-0.72.tar.gz
/po4a-0.73.tar.gz
/po4a-0.74.tar.gz

33
.packit.yaml Normal file
View file

@ -0,0 +1,33 @@
specfile_path: po4a.spec
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: po4a
upstream_project_url: https://github.com/mquinson/po4a
upstream_tag_template: v{version}
# downstream (Fedora) RPM package name
downstream_package_name: po4a
issue_repository: https://src.fedoraproject.org/rpms/po4a
upload_sources: true
actions:
changelog-entry:
- bash -c 'echo "- New release ${PACKIT_PROJECT_VERSION}"'
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-rawhide
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit", "sergiomb"]
allowed_committers: ["packit", "sergiomb"]
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-all # rawhide updates are created automatically

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.97.1.post1.dev6+gc8c0314a.

11
plans.fmf Normal file
View file

@ -0,0 +1,11 @@
summary: Run all smoke tests
discover:
how: fmf
prepare:
how: install
package:
- bash
- coreutils
- grep
execute:
how: tmt

View file

@ -1,20 +1,24 @@
Name: po4a
Version: 0.69
Release: 1%{?dist}
Version: 0.74
Release: 3%{?dist}
Summary: A tool maintaining translations anywhere
License: GPL+
# Note: source is imprecise about 2.0-only vs 2.0-or-later
# https://github.com/mquinson/po4a/issues/434
License: GPL-2.0-or-later
URL: https://po4a.org/
Source0: https://github.com/mquinson/po4a/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{_bindir}/xsltproc
BuildRequires: /usr/bin/xsltproc
BuildRequires: coreutils
BuildRequires: docbook-style-xsl
BuildRequires: findutils
BuildRequires: grep
# Requires a pod2man which supports --utf8
# Seemingly added in perl-5.10.1
BuildRequires: glibc-all-langpacks
BuildRequires: perl-interpreter >= 4:5.10.1
BuildRequires: perl-generators
BuildRequires: perl(lib)
@ -29,8 +33,8 @@ BuildRequires: perl(Module::Build)
BuildRequires: perl(Pod::Man)
# Run-time:
BuildRequires: %{_bindir}/nsgmls
BuildRequires: gettext
BuildRequires: opensp
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
@ -64,13 +68,15 @@ BuildRequires: perl(Text::WrapI18N)
BuildRequires: perl(Unicode::GCString)
# Required by the tests:
BuildRequires: perl(Syntax::Keyword::Try)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(YAML::Tiny)
Requires: %{_bindir}/nsgmls
Requires: %{_bindir}/xsltproc
Requires: /usr/bin/xsltproc
Requires: gettext
Requires: opensp
# hope texlive-kpseas-bin missing deps was fixed
# epel7 doesn't have /usr/share/texlive/texmf-dist/web2c/texmf.cnf
Requires: texlive-kpathsea
@ -95,12 +101,10 @@ chmod +x scripts/*
%build
export PO4AFLAGS="-v -v -v"
LANG=C.utf8
%{__perl} ./Build.PL installdirs=vendor
./Build
%install
LANG=C.utf8
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
@ -108,8 +112,7 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%find_lang %{name}
%check
LANG=C.utf8
#./Build test
./Build test || :
%files -f %{name}.lang
@ -132,6 +135,60 @@ LANG=C.utf8
%{_mandir}/*/man7/po4a.7*
%changelog
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.74-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed Jul 23 2025 Steven A. Falco <stevenfalco@gmail.com> - 0.74-2
- Convert from STI to TMT
* Sat Jul 12 2025 Steven A. Falco <stevenfalco@gmail.com> - 0.74-1
- Update to 0.74
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.73-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.73-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jun 17 2024 Packit <hello@packit.dev> - 0.73-1
- New release 0.73
* Sun May 26 2024 Packit <hello@packit.dev> - 0.72-1
- New release 0.72
* Thu May 09 2024 Richard W.M. Jones <rjones@redhat.com> - 0.71-4
- Fix "Malformed encoding" error with newest Perl
(https://github.com/mquinson/po4a/issues/494)
* Mon Mar 11 2024 Sérgio Basto <sergio@serjux.com> - 0.71-3
- Disable tests again, randomly they fail with Charset "CHARSET" is not a
portable encoding name. Message conversion to user's charset might not work.
* Mon Mar 04 2024 Sérgio Basto <sergio@serjux.com> - 0.71-2
- Add upstream patch Fix the --translate-only option
* Sat Mar 02 2024 Packit <hello@packit.dev> - 0.71-1
- New release 0.71
* Sun Feb 25 2024 Sérgio Basto <sergio@serjux.com> - 0.70-2
- Fix the parsing of nested simple and double quotes
- Enable build tests
* Sun Feb 18 2024 Sérgio M. Basto <sergio@serjux.com> - 0.70-1
- New release 0.70
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.69-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.69-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Oct 12 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.69-3
- Fix path-based dependencies
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.69-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Jan 23 2023 Sérgio Basto <sergio@serjux.com> - 0.69-1
- Update po4a to 0.69 (#2157762)

View file

@ -1 +1 @@
SHA512 (po4a-0.69.tar.gz) = 66cfb120cd1dcda180031aeb25d7e29e6c2856bafb2aa2e0ec864fc93919a51aafd95f2a8dfa13a36db05dc6b0890088bafe32a032a3126760ff7a0c247b609f
SHA512 (po4a-0.74.tar.gz) = 0af7099ea25ac3bc8667c84acf0e0b3c9bbcfd45661dc9befe88b2f3363d6c6c428699ca740a470eaefbe1bf9d55fb218844e0e69104a424fbde71eb240cbdd4

View file

@ -20,13 +20,15 @@ This is the hello world documentation
L<goodbye(1)>
EOF
cp test.pod local.pod
# 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
-p output.pot -m test.pod -l local.pod
cat output.pot
@ -36,4 +38,4 @@ grep 'msgid "DESCRIPTION"' output.pot
grep 'msgid "This is the hello world documentation"' output.pot
# Clean up.
rm output.pot test.pod
rm output.pot test.pod local.pod

2
tests/main.fmf Normal file
View file

@ -0,0 +1,2 @@
summary: Smoke test
test: ./basic-test.sh

View file

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