Break build cycle when bootstrapping
This commit is contained in:
parent
3bcad0a785
commit
47ccd3c726
@ -1,16 +1,19 @@
|
||||
Name: perl-Fedora-VSP
|
||||
Version: 0.001
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Perl version normalization for RPM
|
||||
License: GPLv3+
|
||||
Group: Development/Libraries
|
||||
URL: https://ppisar.fedorapeople.org/Fedora-VSP/
|
||||
Source0: %{url}Fedora-VSP-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
%if !%{defined perl_bootstrap}
|
||||
# Break build cycle: perl-Fedora-VSP → perl-generators → perl-Fedora-VSP
|
||||
BuildRequires: perl-generators
|
||||
%endif
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Run-time:
|
||||
BuildRequires: perl(strict)
|
||||
@ -19,6 +22,12 @@ BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(version)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
%if %{defined perl_bootstrap}
|
||||
# Break build cycle: perl-Fedora-VSP → perl-generators → perl-Fedora-VSP
|
||||
Requires: perl(strict)
|
||||
Requires: perl(warnings)
|
||||
Provides: perl(Fedora::VSP) = %{version}
|
||||
%endif
|
||||
|
||||
%description
|
||||
This module provides functions for normalizing Perl version strings for
|
||||
@ -32,9 +41,9 @@ perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
@ -45,6 +54,10 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon May 30 2016 Petr Pisar <ppisar@redhat.com> - 0.001-4
|
||||
- Break build cycle when bootstrapping: perl-Fedora-VSP → perl-generators
|
||||
→ perl-Fedora-VSP
|
||||
|
||||
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.001-3
|
||||
- Perl 5.24 rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user