diff --git a/Alien-Libxml2-0.16.tar.gz b/Alien-Libxml2-0.16.tar.gz new file mode 100644 index 0000000..5da9653 Binary files /dev/null and b/Alien-Libxml2-0.16.tar.gz differ diff --git a/perl-Alien-Libxml2.spec b/perl-Alien-Libxml2.spec new file mode 100644 index 0000000..de272db --- /dev/null +++ b/perl-Alien-Libxml2.spec @@ -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 - 0.16-1 +- Package init