Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-Locale-Codes.git#d7b9e23f017cffafcdc923385a562416c08c4f93
This commit is contained in:
DistroBaker 2021-03-11 20:07:50 +00:00
parent 5426917edf
commit b1e2ae6be7
8 changed files with 36 additions and 10 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -39,3 +39,4 @@
/Locale-Codes-3.64.tar.gz
/Locale-Codes-3.65.tar.gz
/Locale-Codes-3.66.tar.gz
/Locale-Codes-3.67.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View File

@ -0,0 +1,2 @@
from Config import *
addFilter("-tests\.noarch: W: no-documentation");

View File

@ -1,6 +1,6 @@
Name: perl-Locale-Codes
Version: 3.66
Release: 2%{?dist}
Version: 3.67
Release: 1%{?dist}
Summary: Distribution of modules to handle locale codes
License: GPL+ or Artistic
URL: https://metacpan.org/release/Locale-Codes
@ -32,6 +32,8 @@ Requires: perl(deprecate)
%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
@ -42,9 +44,10 @@ including languages, countries, currency, etc.
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}-%{version}. Execute them
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
@ -64,17 +67,17 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%install
%{make_install}
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
%{_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
%{_fixperms} %{buildroot}/*
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check
unset RELEASE_TESTING
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test
%files
@ -87,6 +90,9 @@ make test
%{_libexecdir}/%{name}
%changelog
* 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

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1 +1 @@
SHA512 (Locale-Codes-3.66.tar.gz) = e0096c2f167ca81761a40e9728ad11f1ae3b0854e48744610ed8a69f1d5baa40b553994382ea4db05724113ee5c2f507feaf303c0fd29daeb006a0383c35d825
SHA512 (Locale-Codes-3.67.tar.gz) = aa477c07f5e673c6810e8ba33ba699691525c48d2e5311a93c0222a4ee58afc52d23597450101f822c077d3fb6b762df2bb2276aed76f8391ad9ce38f329a7f8

4
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,4 @@
summary: Upstream tests
component: perl-Locale-Codes
require: perl-Locale-Codes-tests
test: /usr/libexec/perl-Locale-Codes/test