perl-XML-LibXML-PrettyPrint/perl-XML-LibXML-PrettyPrint.spec
2020-08-10 14:46:39 +08:00

65 lines
1.9 KiB
RPMSpec

Name: perl-XML-LibXML-PrettyPrint
Version: 0.006
Release: 5
Summary: Add pleasant white space to an XML tree
# CONTRIBUTING: GPL+ or Artistic or CC-BY-SA
# COPYRIGHT: Public Domain
# LICENSE: GPL1 and Artistic license text
# Other files: GPL+ or Artistic
License: (GPL+ or Artistic) and (GPL+ or Artistic or CC-BY-SA) and Public Domain
URL: https://metacpan.org/release/XML-LibXML-PrettyPrint
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/XML-LibXML-PrettyPrint-%{version}.tar.gz
# Do not use /usr/bin/env in scripts
Patch0: XML-LibXML-PrettyPrint-0.006-Normalize-shell-bang.patch
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
# Run-time:
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Exporter::Tiny)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl(XML::LibXML) >= 1.62
# Tests:
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
XML::LibXML::PrettyPrint is a Perl module that can be applied to an
XML::LibXML DOM tree to reformat it into a more readable result.
%prep
%setup -q -n XML-LibXML-PrettyPrint-%{version}
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes CONTRIBUTING COPYRIGHT CREDITS README
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.006-5
- Initial release for OpenEuler