|
|
@ -3,20 +3,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-gettext
|
|
|
|
Name: perl-gettext
|
|
|
|
Version: 1.07
|
|
|
|
Version: 1.07
|
|
|
|
Release: 21%{?dist}
|
|
|
|
Release: 35%{?dist}
|
|
|
|
Summary: Interface to gettext family of functions
|
|
|
|
Summary: Interface to gettext family of functions
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
URL: https://metacpan.org/release/gettext
|
|
|
|
URL: https://metacpan.org/release/gettext
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/%{tarname}-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/%{tarname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: %{__make}
|
|
|
|
BuildRequires: %{__make}
|
|
|
|
BuildRequires: %{__perl}
|
|
|
|
BuildRequires: %{__perl}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gettext
|
|
|
|
# Run-time:
|
|
|
|
# Run-time:
|
|
|
@ -30,37 +30,63 @@ BuildRequires: perl(Encode)
|
|
|
|
# Tests:
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Need to allow LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
# Testsuite fails w/ LANG=C.UTF-8 on fedora >= 40
|
|
|
|
|
|
|
|
BuildRequires: glibc-langpack-en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(test_data.*\\)
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The gettext module permits access from perl to the gettext() family of
|
|
|
|
The gettext module permits access from perl to the gettext() family of
|
|
|
|
functions for retrieving message strings from databases constructed to
|
|
|
|
functions for retrieving message strings from databases constructed to
|
|
|
|
internationalize software.
|
|
|
|
internationalize software.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n perl-%{tarname}
|
|
|
|
%package -n perl-%{tarname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n perl-%{tarname}
|
|
|
|
%description -n perl-%{tarname}
|
|
|
|
The gettext module permits access from perl to the gettext() family of
|
|
|
|
The gettext module permits access from perl to the gettext() family of
|
|
|
|
functions for retrieving message strings from databases constructed to
|
|
|
|
functions for retrieving message strings from databases constructed to
|
|
|
|
internationalize software.
|
|
|
|
internationalize software.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n perl-%{tarname}-tests
|
|
|
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
|
|
|
Requires: perl-%{tarname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n perl-%{tarname}-tests
|
|
|
|
|
|
|
|
Tests from perl-%{tarname}. Execute them
|
|
|
|
|
|
|
|
with "%{_libexecdir}/perl-%{tarname}/test".
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{tarname}-%{version}
|
|
|
|
%setup -q -n %{tarname}-%{version}
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
%{make_install}
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/perl-%{tarname}
|
|
|
|
|
|
|
|
cp -a t test_data $RPM_BUILD_ROOT%{_libexecdir}/perl-%{tarname}
|
|
|
|
|
|
|
|
cat > $RPM_BUILD_ROOT%{_libexecdir}/perl-%{tarname}/test << 'EOF'
|
|
|
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd %{_libexecdir}/perl-%{tarname} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_libexecdir}/perl-%{tarname}/test
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
# Testsuite fails w/ LANG=C.UTF-8 on fedora >= 40
|
|
|
|
|
|
|
|
LANG=en_US.UTF-8 %{__make} test
|
|
|
|
|
|
|
|
|
|
|
|
%files -n perl-%{tarname}
|
|
|
|
%files -n perl-%{tarname}
|
|
|
|
%doc README
|
|
|
|
%doc README
|
|
|
@ -68,14 +94,61 @@ internationalize software.
|
|
|
|
%{perl_vendorarch}/Locale
|
|
|
|
%{perl_vendorarch}/Locale
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n perl-%{tarname}-tests
|
|
|
|
|
|
|
|
%{_libexecdir}/perl-%{tarname}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.07-21
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.07-35
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Related: rhbz#1991688
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 1.07-34
|
|
|
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 12 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-33
|
|
|
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.07-32
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-29
|
|
|
|
|
|
|
|
- BR: glibc-langpack-en (RHBZ#2259131).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-30
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-29
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-28
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-27
|
|
|
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-26
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 28 2022 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-25
|
|
|
|
|
|
|
|
- Convert license to SPDX.
|
|
|
|
|
|
|
|
- Modernize spec.
|
|
|
|
|
|
|
|
- Update sources to sha215.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-24
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-23
|
|
|
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-22
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-21
|
|
|
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.07-20
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-20
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-19
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|