Spec tidy-up
- Use author-independent source URL - Use %{make_build} and %{make_install} - Fix permissions verbosely
This commit is contained in:
parent
941d54ef58
commit
26e1b6128f
@ -1,18 +1,17 @@
|
|||||||
Name: perl-Net-CIDR-Lite
|
Name: perl-Net-CIDR-Lite
|
||||||
Version: 0.21
|
Version: 0.21
|
||||||
Release: 25%{?dist}
|
Release: 26%{?dist}
|
||||||
Summary: Perl extension for merging IPv4 or IPv6 CIDR addresses
|
Summary: Perl extension for merging IPv4 or IPv6 CIDR addresses
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Net-CIDR-Lite
|
URL: https://metacpan.org/release/Net-CIDR-Lite
|
||||||
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOUGW/Net-CIDR-Lite-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/modules/by-module/Net/Net-CIDR-Lite-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Build
|
# Build
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: findutils
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-interpreter
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
# Runtime
|
# Runtime
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
@ -34,13 +33,12 @@ ranges. Works for IPv4 and IPv6 addresses.
|
|||||||
%setup -q -n Net-CIDR-Lite-%{version}
|
%setup -q -n Net-CIDR-Lite-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
%make_build
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
%{make_install}
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
%{_fixperms} -c %{buildroot}
|
||||||
%{_fixperms} $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
@ -51,6 +49,12 @@ make test
|
|||||||
%{_mandir}/man3/Net::CIDR::Lite.3*
|
%{_mandir}/man3/Net::CIDR::Lite.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 8 2019 Paul Howarth <paul@city-fan.org> - 0.21-26
|
||||||
|
- Spec tidy-up
|
||||||
|
- Use author-independent source URL
|
||||||
|
- Use %%{make_build} and %%{make_install}
|
||||||
|
- Fix permissions verbosely
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-25
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-25
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user