package init
This commit is contained in:
parent
dd5b9a3058
commit
e2631a31d7
BIN
PkgConfig-LibPkgConf-0.11.tar.gz
Normal file
BIN
PkgConfig-LibPkgConf-0.11.tar.gz
Normal file
Binary file not shown.
47
perl-PkgConfig-LibPkgConf.spec
Normal file
47
perl-PkgConfig-LibPkgConf.spec
Normal file
@ -0,0 +1,47 @@
|
||||
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
|
||||
Loading…
x
Reference in New Issue
Block a user