|
|
|
@ -1,63 +1,126 @@
|
|
|
|
|
# Run optional tests
|
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
|
%bcond_without perl_Devel_Hide_enables_optional_test
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with perl_Devel_Hide_enables_optional_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-Devel-Hide
|
|
|
|
|
Version: 0.0009
|
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
Version: 0.0013
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Forces the unavailability of specified Perl modules (for testing)
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Devel-Hide/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/F/FE/FERREIRA/Devel-Hide-%{version}.tar.gz
|
|
|
|
|
URL: https://metacpan.org/release/Devel-Hide
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-Hide-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Run-time:
|
|
|
|
|
# File::Temp not used on perl >= 5.008
|
|
|
|
|
# Module Runtime
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
# Module::CoreList is used from a private subroutine that is never called
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Tests:
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
%if %{with perl_Devel_Hide_enables_optional_test}
|
|
|
|
|
# Optional tests:
|
|
|
|
|
# Optional Tests
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.18
|
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
# Dependencies
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Given a list of Perl modules/filenames, this module makes require and
|
|
|
|
|
use statements fail (no matter the specified files/modules are
|
|
|
|
|
Given a list of Perl modules/filenames, this module makes require and use
|
|
|
|
|
statements fail (regardless of whether the specified files/modules are
|
|
|
|
|
installed or not).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Devel-Hide-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{perl_vendorlib}/Devel/
|
|
|
|
|
%{_mandir}/man3/Devel::Hide.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.0013-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0013-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0013-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0013-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.0013-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Feb 17 2020 Paul Howarth <paul@city-fan.org> - 0.0013-1
|
|
|
|
|
- Update to 0.0013
|
|
|
|
|
- Cope with changes to how the hints hash works in perl 5.31.7
|
|
|
|
|
|
|
|
|
|
* Sun Feb 16 2020 Paul Howarth <paul@city-fan.org> - 0.0012-1
|
|
|
|
|
- Update to 0.0012
|
|
|
|
|
- Add -lexically argument to import() to support hiding modules just during
|
|
|
|
|
the current scope
|
|
|
|
|
|
|
|
|
|
* Thu Feb 13 2020 Paul Howarth <paul@city-fan.org> - 0.0011-1
|
|
|
|
|
- Update to 0.0011
|
|
|
|
|
- @INC hook should die directly (CPAN RT#120220)
|
|
|
|
|
- Match core error more closely (CPAN RT#120221)
|
|
|
|
|
- Add -quiet option to suppress some notices
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0010-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0010-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.0010-5
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0010-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0010-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.0010-2
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 18 2018 Paul Howarth <paul@city-fan.org> - 0.0010-1
|
|
|
|
|
- Update to 0.0010
|
|
|
|
|
- Makefile.PL: better prereqs declaration
|
|
|
|
|
- Documentation typo fix
|
|
|
|
|
- Switch upstream from search.cpan.org to metacpan.org
|
|
|
|
|
- Drop legacy Group: tag
|
|
|
|
|
- Use plain 'perl' instead of '%%{__perl}' macro
|
|
|
|
|
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0009-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|