|
|
|
@ -1,16 +1,16 @@
|
|
|
|
|
Summary: Internationalization library for Perl, compatible with gettext
|
|
|
|
|
Name: perl-libintl-perl
|
|
|
|
|
Version: 1.33
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
# gettext_xs/gettext_xs.pm: GPL-3.0-or-later
|
|
|
|
|
# gettext_xs/Makefile.PL: LGPL-2.0-or-later
|
|
|
|
|
# lib/Locale/gettext_xs.pod: LGPL-2.0-or-later
|
|
|
|
|
# lib/Locale/RecodeData.pm: GPL-3.0-or-later
|
|
|
|
|
# lib/Locale/libintlFAQ.pod: LGPL-2.0-or-later
|
|
|
|
|
# COPYING: GPL-3.0-or-later
|
|
|
|
|
License: GPL-3.0-or-later AND LGPL-2.0-or-later
|
|
|
|
|
URL: https://metacpan.org/release/libintl-perl
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GU/GUIDO/libintl-perl-%{version}.tar.gz
|
|
|
|
|
Version: 1.29
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
# gettext_xs/gettext_xs.pm: GPLv3+
|
|
|
|
|
# gettext_xs/Makefile.PL: LGPLv2+
|
|
|
|
|
# lib/Locale/gettext_xs.pod: LGPLv2+
|
|
|
|
|
# lib/Locale/RecodeData.pm: GPLv3+
|
|
|
|
|
# lib/Locale/libintlFAQ.pod: LGPLv2+
|
|
|
|
|
# COPYING: GPLv3+
|
|
|
|
|
License: GPLv3+ and LGPLv2+
|
|
|
|
|
URL: http://search.cpan.org/dist/libintl-perl/
|
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/libintl-perl-%{version}.tar.gz
|
|
|
|
|
# this module was renamed in the f25 dev cycle
|
|
|
|
|
Provides: perl-libintl = %{version}-%{release}
|
|
|
|
|
Obsoletes: perl-libintl < 1.25
|
|
|
|
@ -49,11 +49,10 @@ BuildRequires: perl(I18N::Langinfo)
|
|
|
|
|
# Tests:
|
|
|
|
|
# Needed for tests/03bind_textdomain_codeset_pp.t
|
|
|
|
|
BuildRequires: glibc-langpack-de
|
|
|
|
|
# Needed for tests/04find_domain_bug.t
|
|
|
|
|
BuildRequires: glibc-langpack-en
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
BuildRequires: perl(Test::Harness)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Carp)
|
|
|
|
|
Requires: perl(Encode::Alias)
|
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
@ -67,14 +66,6 @@ The package libintl-perl is an internationalization library for Perl that
|
|
|
|
|
aims to be compatible with the Uniforum message translations system as
|
|
|
|
|
implemented for example in GNU gettext.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n libintl-perl-%{version}
|
|
|
|
@ -89,33 +80,17 @@ for file in po/*.po; do
|
|
|
|
|
mv $file.new $file
|
|
|
|
|
done
|
|
|
|
|
rm .gitignore MANIFEST
|
|
|
|
|
cd ../..
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in test.pl tests/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PERLLOCAL=1
|
|
|
|
|
%make_build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f \( -name .packlist -o \
|
|
|
|
|
-name '*.bs' -size 0 \) -delete
|
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a xs_disabled %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a tests %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a test.pl %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
T2_HARNESS_JOB_COUNT="$(getconf _NPROCESSORS_ONLN)" %{_libexecdir}/%{name}/test.pl
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
@ -128,97 +103,7 @@ make test
|
|
|
|
|
%{perl_vendorarch}/auto/Locale/
|
|
|
|
|
%{_mandir}/man?/*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 12 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.33-9
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.33-8
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.33-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.33-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.33-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.33-4
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed May 31 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.33-3
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.33-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Dec 25 2022 Emmanuel Seyman <emmanuel@seyman.fr> - 1.33-1
|
|
|
|
|
- Update to 1.33
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.32-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.32-6
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.32-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.32-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.32-3
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.32-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 01 2020 Emmanuel Seyman <emmanuel@seyman.fr> - 1.32-1
|
|
|
|
|
- Update to 1.32
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-7
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 1.31-6
|
|
|
|
|
- Spec file cleanups: Use make_build and make_install macros
|
|
|
|
|
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
|
|
|
|
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-3
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 25 2018 Emmanuel Seyman <emmanuel@seyman.fr> - 1.31-1
|
|
|
|
|
- Update to 1.31
|
|
|
|
|
- Whitelist known rpmlint errors
|
|
|
|
|
|
|
|
|
|
* Tue Nov 06 2018 Emmanuel Seyman <emmanuel@seyman.fr> - 1.30-1
|
|
|
|
|
- Update to 1.30
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.29-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.29-4
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 05 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.29-3
|
|
|
|
|
- Run the tests with LANG=en_US to ensure we use the right dictionary
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.29-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|