perl-PkgConfig-LibPkgConf/perl-PkgConfig-LibPkgConf.spec

47 lines
1.4 KiB
RPMSpec
Raw Normal View History

2020-08-05 14:22:56 +08:00
Name: perl-PkgConfig-LibPkgConf
Version: 0.11
Release: 1
Summary: Interface to pkg-config files via libpkgconf
License: GPL+ or Artistic
URL: https://metacpan.org/release/PkgConfig-LibPkgConf
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/PkgConfig-LibPkgConf-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: pkgconfig(libpkgconf) >= 1.5.0
%description
Many libraries in compiled languages such as C or C++ provide *.pc files to
specify the flags required for compiling and linking against those libraries.
Traditionally, the command line program pkg-config is used to query these
files. This package provides a Perl-level API using libpkgconf to these files.
%prep
%setup -q -n PkgConfig-LibPkgConf-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%{make_build}
%install
%{make_install}
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/PkgConfig*
%{_mandir}/man3/*
%changelog
* Sat Aug 1 2020 dingyue <dingyue5@huawei.com> - 0.11-1
- Package init