|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: perl-Locale-Codes
|
|
|
|
|
Version: 3.67
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 3.57
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Distribution of modules to handle locale codes
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Locale-Codes
|
|
|
|
|
@ -17,67 +17,42 @@ BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.6
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(deprecate)
|
|
|
|
|
# deprecate not used on perl < 5.27.7
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(if)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
# Tests:
|
|
|
|
|
# Release tests are deleted
|
|
|
|
|
BuildRequires: perl(Test::Inter) >= 1.09
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
# Optional tests:
|
|
|
|
|
# File::Basename not used
|
|
|
|
|
# Test::Pod 1.00 not used
|
|
|
|
|
# Test::Pod::Coverage 1.00 not used
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(deprecate)
|
|
|
|
|
# deprecate not used on perl < 5.27.7
|
|
|
|
|
|
|
|
|
|
# Filter dependencies on private modules, they are not provided. Generator:
|
|
|
|
|
# for F in $(find lib -type f); do perl -e '$/ = undef; $_ = <>; if (/^package #\R([\w:]*);/m) { print qq{|^perl\\\\($1\\\\)} }' "$F"; done
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Locale::Codes::Country_Retired\\)|^perl\\(Locale::Codes::LangFam_Retired\\)|^perl\\(Locale::Codes::Script_Retired\\)|^perl\\(Locale::Codes::LangExt_Codes\\)|^perl\\(Locale::Codes::LangFam_Codes\\)|^perl\\(Locale::Codes::Script_Codes\\)|^perl\\(Locale::Codes::Language_Codes\\)|^perl\\(Locale::Codes::LangExt_Retired\\)|^perl\\(Locale::Codes::Currency_Codes\\)|^perl\\(Locale::Codes::LangVar_Retired\\)|^perl\\(Locale::Codes::Language_Retired\\)|^perl\\(Locale::Codes::Country_Codes\\)|^perl\\(Locale::Codes::LangVar_Codes\\)|^perl\\(Locale::Codes::Currency_Retired\\)
|
|
|
|
|
# Filter dependencies on test subscripts
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(do_tests\\.pl\\)
|
|
|
|
|
# Filter underspecified dependencies
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::Inter\\)$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Locale-Codes is a distribution containing a set of modules. The modules
|
|
|
|
|
each deal with different types of codes which identify parts of the locale
|
|
|
|
|
including languages, countries, currency, etc.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
Requires: perl(Test::Inter) >= 1.09
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Locale-Codes-%{version}
|
|
|
|
|
chmod -x examples/*
|
|
|
|
|
chmod +x t/*.pl
|
|
|
|
|
# Delete release tests
|
|
|
|
|
rm t/_*
|
|
|
|
|
perl -i -lne 'print $_ unless m{\At/_}' MANIFEST
|
|
|
|
|
# Delete unused files
|
|
|
|
|
rm t/runtests t/runtests.bat
|
|
|
|
|
perl -i -lne 'print $_ unless m{\At/runtests}' MANIFEST
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/usr/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -j $(getconf _NPROCESSORS_ONLN)
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
@ -86,78 +61,7 @@ make test
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.67-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.67-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Mar 02 2021 Petr Pisar <ppisar@redhat.com> - 3.67-1
|
|
|
|
|
- 3.67 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.66-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Dec 01 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.66-1
|
|
|
|
|
- 3.66 bump
|
|
|
|
|
|
|
|
|
|
* Wed Sep 02 2020 Petr Pisar <ppisar@redhat.com> - 3.65-1
|
|
|
|
|
- 3.65 bump
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.64-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.64-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 03 2020 Petr Pisar <ppisar@redhat.com> - 3.64-1
|
|
|
|
|
- 3.64 bump
|
|
|
|
|
|
|
|
|
|
* Wed Mar 04 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.63-1
|
|
|
|
|
- 3.63 bump
|
|
|
|
|
|
|
|
|
|
* Tue Mar 03 2020 Petr Pisar <ppisar@redhat.com> - 3.62-3
|
|
|
|
|
- depracate module is used on current perl
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.62-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2019 Petr Pisar <ppisar@redhat.com> - 3.62-1
|
|
|
|
|
- 3.62 bump
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.61-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 05 2019 Petr Pisar <ppisar@redhat.com> - 3.61-1
|
|
|
|
|
- 3.61 bump
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.60-2
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 01 2019 Petr Pisar <ppisar@redhat.com> - 3.60-1
|
|
|
|
|
- 3.60 bump
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.59-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 05 2018 Petr Pisar <ppisar@redhat.com> - 3.59-1
|
|
|
|
|
- 3.59 bump
|
|
|
|
|
|
|
|
|
|
* Tue Sep 04 2018 Petr Pisar <ppisar@redhat.com> - 3.58-1
|
|
|
|
|
- 3.58 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.57-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.57-2
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 04 2018 Petr Pisar <ppisar@redhat.com> - 3.57-1
|
|
|
|
|
- 3.57 bump
|
|
|
|
|
|
|
|
|
|
|