|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
Name: perl-generators
|
|
|
|
|
Version: 1.11
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Version: 1.16
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: RPM Perl dependencies generators
|
|
|
|
|
License: GPL+
|
|
|
|
|
License: GPL-1.0-or-later
|
|
|
|
|
URL: http://jplesnik.fedorapeople.org/generators
|
|
|
|
|
Source0: %{url}/generators-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -13,6 +13,7 @@ BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl-interpreter >= 4:5.22.0-351
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
@ -29,7 +30,6 @@ BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Simple)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl-interpreter >= 4:5.22.0-351
|
|
|
|
|
# Per Perl packaging guidelines, build-requiring perl-generators should
|
|
|
|
|
# deliver Perl macros
|
|
|
|
@ -44,12 +44,39 @@ Recommends: perl(version)
|
|
|
|
|
# The generators and attribute files were split from rpm-build
|
|
|
|
|
Conflicts: rpm-build < 4.11.2-15
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(PerlNS\\)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides RPM Perl dependencies generators which are used for
|
|
|
|
|
getting provides and requires from Perl binaries and modules.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
%if %{defined perl_bootstrap}
|
|
|
|
|
# Supply run-time dependencies manually when perl-generators is not available
|
|
|
|
|
Requires: perl(Exporter)
|
|
|
|
|
Requires: perl(lib)
|
|
|
|
|
Requires: perl(strict)
|
|
|
|
|
Requires: perl(Test::More)
|
|
|
|
|
Requires: perl(Test::Simple)
|
|
|
|
|
Requires: perl(warnings)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n generators-%{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 INSTALLVENDORSCRIPT=%{_rpmconfigdir} \
|
|
|
|
@ -58,26 +85,92 @@ perl Makefile.PL INSTALLDIRS=vendor INSTALLVENDORSCRIPT=%{_rpmconfigdir} \
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs/
|
|
|
|
|
install -p -m 644 fileattrs/* '%{buildroot}%{_rpmconfigdir}/fileattrs'
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
perl -i -pe "s{bin/perl}{%{_rpmconfigdir}/perl}" %{buildroot}%{_libexecdir}/%{name}/t/lib/PerlNS.pm
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes TODO
|
|
|
|
|
%{_rpmconfigdir}/perl.*
|
|
|
|
|
%{_rpmconfigdir}/perl*
|
|
|
|
|
%{_rpmconfigdir}/fileattrs/perl*.attr
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.11-12
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.16-7
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.16-6
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16-6
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 05 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-1
|
|
|
|
|
- 1.16 bump
|
|
|
|
|
|
|
|
|
|
* Tue Dec 06 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.15-1
|
|
|
|
|
- 1.15 bump
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Tue Aug 16 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-1
|
|
|
|
|
- 1.14 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-7
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-6
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-3
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-2
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 10 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-1
|
|
|
|
|
- 1.13 bump
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.11-11
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Wed Feb 10 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-1
|
|
|
|
|
- 1.12 bump
|
|
|
|
|
Add perltest.attr to generate dependencies from /usr/libexec/
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|