diff --git a/perl-XML-LibXML-PrettyPrint.spec b/perl-XML-LibXML-PrettyPrint.spec index 84770995ffee7a6e13f0e5fd1a95206e39c5002a..865aadb53e083db0d11373c33bcf01a4b968c160 100644 --- a/perl-XML-LibXML-PrettyPrint.spec +++ b/perl-XML-LibXML-PrettyPrint.spec @@ -1,12 +1,11 @@ -%global _empty_manifest_terminate_build 0 Name: perl-XML-LibXML-PrettyPrint Version: 0.006 -Release: 1 +Release: 2 Summary: Add pleasant whitespace to a DOM tree -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl 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 +URL: https://search.cpan.org/dist/XML-LibXML-PrettyPrint/ +Source0: https://www.cpan.org/authors/id/T/TO/TOBYINK/XML-LibXML-PrettyPrint-%{version}.tar.gz BuildArch: noarch BuildRequires: perl >= 0:5.008001 BuildRequires: perl-generators @@ -17,69 +16,53 @@ 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} +%make_build %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 +%files +%license LICENSE +%doc Changes CONTRIBUTING COPYRIGHT CREDITS dist.ini doap.ttl META.json README +%{_bindir}/xml-pretty %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog -* Wed Aug 12 2020 weidong 0.006-1 +* Sun Jan 19 2025 Funda Wang - 0.006-2 +- drop useless perl(:MODULE_COMPAT) requirement + +* Wed Aug 12 2020 weidong - 0.006-1 - Initial release for OpenEuler