From b24dee5286c6cb3d8834c72668f8c35dfda7ae6f Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 19 Jan 2025 02:14:09 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- perl-XML-LibXML.spec | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec index 281b281..4403258 100644 --- a/perl-XML-LibXML.spec +++ b/perl-XML-LibXML.spec @@ -1,9 +1,9 @@ Name: perl-XML-LibXML Version: 2.0210 -Release: 1 +Release: 2 Epoch: 1 Summary: Perl Binding for libxml2 -License: (GPL+ or Artistic) and MIT +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) and MIT URL: https://metacpan.org/release/XML-LibXML Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz @@ -19,7 +19,7 @@ BuildRequires: perl(Errno), perl(locale), perl(POSIX), perl(Test::More), perl(X BuildRequires: perl(XML::SAX::ParserFactory), perl(URI::file), perl(utf8), perl(Alien::Base::Wrapper) BuildRequires: perl(Alien::Libxml2) -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)), perl-interpreter +Requires: libxml2 >= %(rpm -q --queryformat="%%{VERSION}" libxml2) Requires(preun): perl-interpreter Provides: perl-XML-LibXML-Common = %{version} Obsoletes: perl-XML-LibXML-Common <= 0.13 @@ -30,12 +30,7 @@ the GNOME libxml2 library. This module provides interfaces for parsing and manipulating XML files and allows Perl programmers to use the highly capable validating XML parser and the high performance DOM implementation. -%package help -Summary: man files for perl-XML-LibXML -Requires: man - -%description help -This package includes man files for perl-XML-LibXML. +%package_help %prep %autosetup -n XML-LibXML-%{version} -p1 @@ -52,7 +47,6 @@ perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %install make pure_install DESTDIR=$RPM_BUILD_ROOT NO_PACKLIST=1 -find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete chmod -R u+w $RPM_BUILD_ROOT/* %check @@ -82,6 +76,10 @@ fi %{_mandir}/man*/* %changelog +* Thu Jan 16 2025 Funda Wang - 1:2.0210-2 +- drop useless perl(:MODULE_COMPAT) requirement +- hardcode libxml2 version on runtime + * Wed Jul 17 2024 wuzhaomin - 1:2.0210-1 - Upgrade to version 2.0210 - Fix copying external entity from an ext_ent_handler handler -- Gitee