Spec tidy-up
- Use author-independent source URL - Classify builds by usage - Drop redundant buildroot cleaning in %install section - Don't need to delete empty directories from the buildroot - Make %files list more explicit
This commit is contained in:
parent
a4816b1570
commit
28e5c9c053
3
perl-ExtUtils-PkgConfig.rpmlintrc
Normal file
3
perl-ExtUtils-PkgConfig.rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from Config import *
|
||||||
|
addFilter("spelling-error Summary\(en_US\) config -> ")
|
||||||
|
addFilter("spelling-error %description -l en_US config -> ")
|
@ -1,27 +1,30 @@
|
|||||||
Name: perl-ExtUtils-PkgConfig
|
Name: perl-ExtUtils-PkgConfig
|
||||||
Version: 1.16
|
Version: 1.16
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Simplistic interface to pkg-config
|
Summary: Simplistic interface to pkg-config
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://metacpan.org/release/ExtUtils-PkgConfig
|
URL: https://metacpan.org/release/ExtUtils-PkgConfig
|
||||||
Source0: https://cpan.metacpan.org/authors/id/X/XA/XAOC/ExtUtils-PkgConfig-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/modules/by-module/ExtUtils/ExtUtils-PkgConfig-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
# Module Build
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: perl-interpreter
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl(Cwd)
|
BuildRequires: perl(Cwd)
|
||||||
BuildRequires: perl(English)
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
# Module Runtime
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
BuildRequires: perl(English)
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
BuildRequires: perl(vars)
|
BuildRequires: perl(vars)
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
# Test Suite
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
# Dependencies
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -29,40 +32,39 @@ The pkg-config program retrieves information about installed libraries,
|
|||||||
usually for the purposes of compiling against and linking to them.
|
usually for the purposes of compiling against and linking to them.
|
||||||
|
|
||||||
ExtUtils::PkgConfig is a very simplistic interface to this utility,
|
ExtUtils::PkgConfig is a very simplistic interface to this utility,
|
||||||
intended for use in the Makefile.PL of perl extensions which bind
|
intended for use in the Makefile.PL of perl extensions that bind
|
||||||
libraries that pkg-config knows. It is really just boilerplate code
|
libraries that pkg-config knows. It is really just boilerplate code
|
||||||
that you would've written yourself.
|
that you would've written yourself.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ExtUtils-PkgConfig-%{version}
|
%setup -q -n ExtUtils-PkgConfig-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install DESTDIR=%{buildroot}
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
%{_fixperms} -c %{buildroot}
|
||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%{perl_vendorlib}/ExtUtils/
|
%{perl_vendorlib}/ExtUtils/
|
||||||
%{_mandir}/man3/*.3pm*
|
%{_mandir}/man3/ExtUtils::PkgConfig.3*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 29 2019 Paul Howarth <paul@city-fan.org> - 1.16-10
|
||||||
|
- Spec tidy-up
|
||||||
|
- Use author-independent source URL
|
||||||
|
- Classify builds by usage
|
||||||
|
- Drop redundant buildroot cleaning in %%install section
|
||||||
|
- Don't need to delete empty directories from the buildroot
|
||||||
|
- Make %%files list more explicit
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-9
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-9
|
||||||
- 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