From 4a64bbd08f500b6fe924e690c90f6de65a27b191 Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 23 Dec 2024 21:09:23 +0300 Subject: [PATCH] import perl-libxml-perl-0.08-53.el10 --- .perl-libxml-perl.metadata | 2 +- SPECS/perl-libxml-perl.spec | 121 ++++++++++++++++++++++++++++++++---- 2 files changed, 111 insertions(+), 12 deletions(-) diff --git a/.perl-libxml-perl.metadata b/.perl-libxml-perl.metadata index 8263844..1e55fc2 100644 --- a/.perl-libxml-perl.metadata +++ b/.perl-libxml-perl.metadata @@ -1 +1 @@ -4fdc3b47b084c5801f389f5eb9fec95c710136a3 SOURCES/libxml-perl-0.08.tar.gz +4fdc3b47b084c5801f389f5eb9fec95c710136a3 SOURCES/libxml-perl-0.08.tar.gz diff --git a/SPECS/perl-libxml-perl.spec b/SPECS/perl-libxml-perl.spec index c8f11d5..4b05e84 100644 --- a/SPECS/perl-libxml-perl.spec +++ b/SPECS/perl-libxml-perl.spec @@ -1,14 +1,16 @@ Name: perl-libxml-perl Version: 0.08 -Release: 33%{?dist} +Release: 53%{?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 +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND LicenseRef-Fedora-Public-Domain +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: coreutils 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 +21,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 +34,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 +82,77 @@ 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 Dec 23 2024 Arkady L. Shane - 0.08-53 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.08-53 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jul 01 2024 Jitka Plesnikova - 0.08-52 +- Package tests + +* Thu Jan 25 2024 Fedora Release Engineering - 0.08-51 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.08-50 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.08-49 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.08-48 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.08-47 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 01 2022 Jitka Plesnikova - 0.08-46 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.08-45 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 0.08-44 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.08-43 +- Perl 5.34 rebuild + +* 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