0.13 bump

This commit is contained in:
Jitka Plesnikova 2021-05-04 10:19:19 +02:00
parent 36cd4b33ed
commit f61ea4e2b2

View File

@ -1,6 +1,6 @@
Name: perl-Crypt-OpenSSL-Guess
Version: 0.12
Release: 2%{?dist}
Version: 0.13
Release: 1%{?dist}
Summary: Guess OpenSSL include path
License: GPL+ or Artistic
URL: https://metacpan.org/release/Crypt-OpenSSL-Guess/
@ -47,7 +47,7 @@ with "%{_libexecdir}/%{name}/test".
# Help file to recognise the Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
@ -57,6 +57,8 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%install
%{make_install}
%{_fixperms} %{buildroot}/*
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
@ -65,7 +67,6 @@ cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%{_fixperms} $RPM_BUILD_ROOT/*
%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
@ -81,6 +82,9 @@ make test
%{_libexecdir}/%{name}
%changelog
* Tue May 04 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-1
- 0.13 bump
* Tue Mar 09 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-2
- Package tests