Compare commits

...

No commits in common. 'c9' and 'f38' have entirely different histories.
c9 ... f38

16
.gitignore vendored

@ -1 +1,15 @@
SOURCES/Devel-CheckLib-1.14.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
/Devel-CheckLib-1.16.tar.gz

@ -1 +0,0 @@
8efd38986e28c0c73ff8abab9bf1c6a9ed22cd3a SOURCES/Devel-CheckLib-1.14.tar.gz

@ -6,8 +6,8 @@
%endif %endif
Name: perl-Devel-CheckLib Name: perl-Devel-CheckLib
Version: 1.14 Version: 1.16
Release: 9%{?dist} Release: 4%{?dist}
Summary: Check that a library is available Summary: Check that a library is available
License: GPL+ or Artistic License: GPL+ or Artistic
@ -16,11 +16,9 @@ Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-CheckLib
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time: # Run-time:
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
@ -28,8 +26,6 @@ BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) >= 0.16 BuildRequires: perl(File::Temp) >= 0.16
BuildRequires: perl(Text::ParseWords) BuildRequires: perl(Text::ParseWords)
# Tests: # Tests:
BuildRequires: gcc
BuildRequires: perl(blib)
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(IO::File) BuildRequires: perl(IO::File)
@ -40,41 +36,15 @@ BuildRequires: perl(Test::More) >= 0.88
%if %{with perl_Devel_CheckLib_enables_optional_test} %if %{with perl_Devel_CheckLib_enables_optional_test}
BuildRequires: perl(Mock::Config) BuildRequires: perl(Mock::Config)
%endif %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 %description
Devel::CheckLib is a perl module that checks whether a particular C library Devel::CheckLib is a perl module that checks whether a particular C library
and its headers are available. 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 %prep
%setup -q -n Devel-CheckLib-%{version} %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 %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags} make %{?_smp_mflags}
@ -83,26 +53,7 @@ make %{?_smp_mflags}
make pure_install DESTDIR=$RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $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 %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
@ -112,21 +63,28 @@ make test
%{_mandir}/man1/*.1* %{_mandir}/man1/*.1*
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Wed Jun 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-9 * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
- Add test BR gcc and perl(blib) to not skip the tests - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
- Package tests
- Resolves: rhbz#2216280 * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-2
- Perl 5.36 rebuild
* Fri May 27 2022 Denis Fateyev <denis@fateyev.com> - 1.16-1
- Update to 1.16
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.14-8 * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14-7 * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-6 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

@ -0,0 +1 @@
SHA512 (Devel-CheckLib-1.16.tar.gz) = 919da046cdd1f48e0ccd8a7734a98f3144c0005c8303b02b43aeedcd2cfc148c78f502f26a80ea2612279e2becf4948b408d8cbd4b7cc514519c5954ae4139cb
Loading…
Cancel
Save