!2 package init

Merge pull request !2 from weidongkl/master
This commit is contained in:
openeuler-ci-bot 2020-08-13 16:58:58 +08:00 committed by Gitee
commit bea21f645d
2 changed files with 85 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,85 @@
%global _empty_manifest_terminate_build 0
Name: perl-XML-LibXML-PrettyPrint
Version: 0.006
Release: 1
Summary: Add pleasant whitespace to a DOM tree
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/XML-LibXML-PrettyPrint/
Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/XML-LibXML-PrettyPrint-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl >= 0:5.008001
BuildRequires: perl-generators
BuildRequires: perl(Exporter::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(XML::LibXML) >= 1.62
Requires: perl(Exporter::Tiny)
Requires: perl(XML::LibXML) >= 1.62
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Long XML files can be daunting for humans to read. Of course, XML is really
designed for computers to read - not people - but there are times when mere
mortals do need to read and edit XML by hand. For example, if your
application stores its configuration in XML, or you need to dump some XML
to STDOUT for debugging purposes.
%package help
Summary : Add pleasant whitespace to a DOM tree
Provides: perl-XML-LibXML-PrettyPrint-doc
%description help
Long XML files can be daunting for humans to read. Of course, XML is really
designed for computers to read - not people - but there are times when mere
mortals do need to read and edit XML by hand. For example, if your
application stores its configuration in XML, or you need to dump some XML
to STDOUT for debugging purposes.
%prep
%setup -q -n XML-LibXML-PrettyPrint-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
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
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes CONTRIBUTING COPYRIGHT CREDITS dist.ini doap.ttl LICENSE META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Wed Aug 12 2020 weidong <weidong@uniontech.com> 0.006-1
- Initial release for OpenEuler