|
|
@ -7,18 +7,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Devel-CheckLib
|
|
|
|
Name: perl-Devel-CheckLib
|
|
|
|
Version: 1.16
|
|
|
|
Version: 1.16
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 14%{?dist}
|
|
|
|
Summary: Check that a library is available
|
|
|
|
Summary: Check that a library is available
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
URL: https://metacpan.org/release/Devel-CheckLib
|
|
|
|
URL: https://metacpan.org/release/Devel-CheckLib
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-CheckLib-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-CheckLib-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
@ -26,6 +28,8 @@ 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)
|
|
|
@ -36,35 +40,111 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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 NO_PERLLOCAL=1
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{make_install}
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
%doc CHANGES README TODO
|
|
|
|
%doc CHANGES README TODO
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/use-devel-checklib
|
|
|
|
%{perl_vendorlib}/Devel*
|
|
|
|
%{perl_vendorlib}/Devel*
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man1/use-devel-checklib.1*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%{_mandir}/man3/Devel::CheckLib.3*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.16-14
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16-13
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-12
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-11
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 28 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-9
|
|
|
|
|
|
|
|
- Move redhat-rpm-config from tests to main package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-8
|
|
|
|
|
|
|
|
- Requires: redhat-rpm-config for tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-7
|
|
|
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-6
|
|
|
|
|
|
|
|
- Add test BR gcc to not skip the tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 12 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.16-5
|
|
|
|
|
|
|
|
- Update license to SPDX format
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|