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-Crypt-OpenSSL-Guess.git#36cd4b33ed951c8d4bf066a173eaf106bc5578ad
This commit is contained in:
DistroBaker 2021-03-12 22:52:58 +00:00
parent c5d8bd7e37
commit 7048774c19
7 changed files with 59 additions and 6 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -1 +1,2 @@
/Crypt-OpenSSL-Guess-0.11.tar.gz /Crypt-OpenSSL-Guess-0.11.tar.gz
/Crypt-OpenSSL-Guess-0.12.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

@ -1,11 +1,12 @@
Name: perl-Crypt-OpenSSL-Guess Name: perl-Crypt-OpenSSL-Guess
Version: 0.11 Version: 0.12
Release: 10%{?dist} Release: 2%{?dist}
Summary: Guess OpenSSL include path Summary: Guess OpenSSL include path
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Crypt-OpenSSL-Guess/ URL: https://metacpan.org/release/Crypt-OpenSSL-Guess/
Source0: https://cpan.metacpan.org/authors/id/A/AK/AKIYM/Crypt-OpenSSL-Guess-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/A/AK/AKIYM/Crypt-OpenSSL-Guess-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
@ -14,6 +15,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
# Run-time # Run-time
BuildRequires: perl(Config) BuildRequires: perl(Config)
BuildRequires: perl(English)
BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(ExtUtils::MM) BuildRequires: perl(ExtUtils::MM)
BuildRequires: perl(File::Spec) BuildRequires: perl(File::Spec)
@ -31,18 +33,42 @@ Recommends: openssl
Crypt::OpenSSL::Guess provides helpers to guess OpenSSL include path on any Crypt::OpenSSL::Guess provides helpers to guess OpenSSL include path on any
platforms. platforms.
%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 %prep
%setup -q -n Crypt-OpenSSL-Guess-%{version} %setup -q -n Crypt-OpenSSL-Guess-%{version}
# Help file to recognise the Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
chmod +x "$F"
done
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test make test
%files %files
@ -51,7 +77,16 @@ make test
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Tue Mar 09 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-2
- Package tests
* Mon Mar 08 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-1
- 0.12 bump
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-10 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - 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 (Crypt-OpenSSL-Guess-0.11.tar.gz) = cdae7f20a15d24842cf117bfba4f3bc0ec7d1066251e0480cbadd8f0aa28c9c9573905726fc1333ea9fbbb3769a67dbf28043de8487dcce27dab5d14a0848b09 SHA512 (Crypt-OpenSSL-Guess-0.12.tar.gz) = 2575abda7da800e24676b1614396f6b5ca36e1e89e1f19525689aba5dac673b9f90f26ca0f9f9046580b156645ed078f9e4ea9d77ea81ade10f404f2d004a5c4

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

@ -0,0 +1,4 @@
summary: Upstream tests
component: perl-Crypt-OpenSSL-Guess
require: perl-Crypt-OpenSSL-Guess-tests
test: /usr/libexec/perl-Crypt-OpenSSL-Guess/test