package init
This commit is contained in:
parent
7a16d8f725
commit
e010b57b5b
BIN
Alien-Libxml2-0.16.tar.gz
Normal file
BIN
Alien-Libxml2-0.16.tar.gz
Normal file
Binary file not shown.
86
perl-Alien-Libxml2.spec
Normal file
86
perl-Alien-Libxml2.spec
Normal file
@ -0,0 +1,86 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-Alien-Libxml2
|
||||
Version: 0.16
|
||||
Release: 1
|
||||
Summary: Alien::Libxml2 Perl module
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Alien-Libxml2/
|
||||
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-%{version}.tar.gz
|
||||
|
||||
%global debug_package %{nil}
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(:VERSION) >= 5.6
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(PkgConfig::LibPkgConf)
|
||||
BuildRequires: perl(Alien::Build::Plugin::Decode::Mojo)
|
||||
BuildRequires: perl(ExtUtils::CBuilder)
|
||||
BuildRequires: perl(Test2::V0) >= 0.000060
|
||||
BuildRequires: perl(Alien::Build::MM) >= 2.12
|
||||
BuildRequires: perl(Alien::Base) >= 2.12
|
||||
BuildRequires: perl(Alien::Build) >= 2.12
|
||||
|
||||
%description
|
||||
This module provides libxml2 for other modules to use.
|
||||
|
||||
%package help
|
||||
Summary: Alien::Libxml2 Perl module
|
||||
Provides: perl-Alien-Libxml2-doc
|
||||
|
||||
%description help
|
||||
This module provides libxml2 for other modules to use.
|
||||
|
||||
%prep
|
||||
%setup -q -n Alien-Libxml2-%{version}
|
||||
|
||||
%build
|
||||
export PERL_MM_OPT=""
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
export PERL_MM_OPT=""
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%{make_install}
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
pushd %{buildroot}
|
||||
touch filelist.lst
|
||||
if [ -d usr/bin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ];then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib ];then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files -f filelist.lst
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes META.json README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Alien*
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%changelog
|
||||
* Sat Aug 1 2020 dingyue <dingyue5@huawei.com> - 0.16-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user