diff --git a/SPECS/perl-libxml-perl.spec b/SPECS/perl-libxml-perl.spec index c8f11d5..fa5b0b1 100644 --- a/SPECS/perl-libxml-perl.spec +++ b/SPECS/perl-libxml-perl.spec @@ -1,14 +1,15 @@ Name: perl-libxml-perl Version: 0.08 -Release: 33%{?dist} +Release: 45%{?dist} Summary: A collection of Perl modules for working with XML License: (GPL+ or Artistic) and Public Domain -URL: http://search.cpan.org/dist/libxml-perl/ -Source0: http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz +URL: https://metacpan.org/release/libxml-perl +Source0: https://cpan.metacpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz BuildArch: noarch BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(:VERSION) >= 5.5.0 @@ -19,7 +20,6 @@ BuildRequires: perl(UNIVERSAL) BuildRequires: perl(vars) BuildRequires: perl(XML::Parser) >= 2.19 # Tests: -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(XML::Parser) >= 2.19 # Filter out unversioned provides @@ -33,16 +33,46 @@ documents for working with XML in Perl. libxml-perl software works in combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove and others. +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n libxml-perl-%{version} +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=%{buildroot} -chmod -R u+w %{buildroot}/* +%{make_install} +%{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/bash +set -e +# Some tests write into temporary files/directories. The easiest solution +# is to copy the tests into a writable directory and execute them from there. +DIR=$(mktemp -d) +pushd "$DIR" +cp -a %{_libexecdir}/%{name}/* ./ +prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +popd +rm -rf "$DIR" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check make test @@ -51,9 +81,51 @@ make test %doc ChangeLog Changes README %{perl_vendorlib}/Data/ %{perl_vendorlib}/XML/ -%{_mandir}/man3/*.3* +%{_mandir}/man3/Data*.3* +%{_mandir}/man3/XML*.3* + +%files tests +%{_libexecdir}/%{name} %changelog +* Mon Jul 01 2024 Jitka Plesnikova - 0.08-45 +- Resolves: RHEL-43290 +- Package tests + +* Mon Aug 09 2021 Mohan Boddu - 0.08-44 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.08-43 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.08-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.08-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 0.08-40 +- Perl 5.32 rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.08-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.08-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 0.08-37 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.08-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.08-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 29 2018 Jitka Plesnikova - 0.08-34 +- Perl 5.28 rebuild + * Fri Feb 09 2018 Fedora Release Engineering - 0.08-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild