Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
15
.gitignore
vendored
15
.gitignore
vendored
@ -1 +1,14 @@
|
||||
SOURCES/Devel-CheckLib-1.11.tar.gz
|
||||
/Devel-CheckLib-0.95.tar.gz
|
||||
/Devel-CheckLib-0.96.tar.gz
|
||||
/Devel-CheckLib-0.97.tar.gz
|
||||
/Devel-CheckLib-0.98.tar.gz
|
||||
/Devel-CheckLib-0.99.tar.gz
|
||||
/Devel-CheckLib-1.03.tar.gz
|
||||
/Devel-CheckLib-1.05.tar.gz
|
||||
/Devel-CheckLib-1.06.tar.gz
|
||||
/Devel-CheckLib-1.07.tar.gz
|
||||
/Devel-CheckLib-1.09.tar.gz
|
||||
/Devel-CheckLib-1.10.tar.gz
|
||||
/Devel-CheckLib-1.11.tar.gz
|
||||
/Devel-CheckLib-1.13.tar.gz
|
||||
/Devel-CheckLib-1.14.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
8d295b8bde71208621b7b136dd1c8f1ecf6cc105 SOURCES/Devel-CheckLib-1.11.tar.gz
|
||||
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
@ -1,21 +1,26 @@
|
||||
# Run optional test
|
||||
%if ! (0%{?rhel})
|
||||
%bcond_without perl_Devel_CheckLib_enables_optional_test
|
||||
%else
|
||||
%bcond_with perl_Devel_CheckLib_enables_optional_test
|
||||
%endif
|
||||
|
||||
Name: perl-Devel-CheckLib
|
||||
Version: 1.11
|
||||
Release: 5%{?dist}
|
||||
Version: 1.14
|
||||
Release: 9%{?dist}
|
||||
Summary: Check that a library is available
|
||||
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Devel-CheckLib/
|
||||
Source0: http://www.cpan.org/modules/by-module/Devel/Devel-CheckLib-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/Devel-CheckLib
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-CheckLib-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Run-time:
|
||||
BuildRequires: perl(Exporter)
|
||||
@ -23,26 +28,53 @@ BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(File::Temp) >= 0.16
|
||||
BuildRequires: perl(Text::ParseWords)
|
||||
# Tests:
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl(blib)
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(File::Spec::Functions)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(IO::CaptureOutput) >= 1.0801
|
||||
BuildRequires: perl(Capture::Tiny)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More) >= 0.62
|
||||
%if %{with perl_Devel_CheckLib_enables_optional_test}
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
# Optional tests
|
||||
%if %{with perl_Devel_CheckLib_enables_optional_test}
|
||||
BuildRequires: perl(Mock::Config)
|
||||
%endif
|
||||
# perl inherits the compiler flags it was built with, hence we need this on hardened systems
|
||||
Requires: redhat-rpm-config
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
# Filter modules bundled for tests
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||||
|
||||
%description
|
||||
Devel::CheckLib is a perl module that checks whether a particular C library
|
||||
and its headers are available.
|
||||
|
||||
%package tests
|
||||
Summary: Tests for %{name}
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: perl-Test-Harness
|
||||
Requires: gcc
|
||||
# Optional tests
|
||||
%if %{with perl_Devel_CheckLib_enables_optional_test}
|
||||
Requires: perl(Mock::Config)
|
||||
%endif
|
||||
|
||||
%description tests
|
||||
Tests from %{name}. Execute them
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%setup -q -n Devel-CheckLib-%{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
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
@ -51,7 +83,26 @@ make %{?_smp_mflags}
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||
perl -i -ne 'print $_ unless m{\Q'-Mblib'\E}' %{buildroot}%{_libexecdir}/%{name}/t/cmdline-LIBS-INC.t
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
# Some tests need to write into temporary files/directories.
|
||||
# Copy the tests into a writable directory and execute them from there.
|
||||
DIR=$(mktemp -d)
|
||||
pushd "$DIR"
|
||||
cp -a %{_libexecdir}/%{name}/* ./
|
||||
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
popd
|
||||
rm -rf "$DIR"
|
||||
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
|
||||
@ -61,10 +112,57 @@ make test
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Jul 13 2018 Petr Pisar <ppisar@redhat.com> - 1.11-5
|
||||
- Disable optional test
|
||||
* Wed Jun 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-9
|
||||
- Add test BR gcc and perl(blib) to not skip the tests
|
||||
- Package tests
|
||||
- Resolves: rhbz#2216280
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.14-8
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14-7
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Dec 10 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-5
|
||||
- Disable optional test on RHEL
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-3
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Nov 15 2019 Denis Fateyev <denis@fateyev.com> - 1.14-1
|
||||
- Update to 1.14
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-5
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-2
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Wed Jun 20 2018 Denis Fateyev <denis@fateyev.com> - 1.13-1
|
||||
- Update to 1.13
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Sanity tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (Devel-CheckLib-1.14.tar.gz) = a5a310cd20e7bfa3c28718b0cba997e029ae0a422ed355d70774691521a3f5c2942eb39269dec1b09e706c1d124559313ab79e787430e0bb3ad43d8aa937539c
|
||||
10
tests/upstream-tests.fmf
Normal file
10
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,10 @@
|
||||
summary: Upstream tests
|
||||
component: perl-Devel-CheckLib
|
||||
require: perl-Devel-CheckLib-tests
|
||||
test: /usr/libexec/perl-Devel-CheckLib/test
|
||||
tag:
|
||||
- Tier1
|
||||
- rhel-buildroot
|
||||
tier: '1'
|
||||
extra-nitrate: TC#0615549
|
||||
id: 0d9bf91c-397b-4d02-a37b-fe53a312bccd
|
||||
Loading…
Reference in New Issue
Block a user