Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/perl-XML-Twig.git#d7d3eca93b3b617cbaabb1d59a5a352ba196af3a
This commit is contained in:
parent
e5ab8031b1
commit
320b718b8c
@ -1,13 +1,20 @@
|
|||||||
|
# Run optional test
|
||||||
|
%if ! (0%{?rhel})
|
||||||
|
%bcond_without perl_XML_Twig_enables_optional_test
|
||||||
|
%else
|
||||||
|
%bcond_with perl_XML_Twig_enables_optional_test
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: perl-XML-Twig
|
Name: perl-XML-Twig
|
||||||
Version: 3.52
|
Version: 3.52
|
||||||
Release: 14%{?dist}
|
Release: 15%{?dist}
|
||||||
Summary: Perl module for processing huge XML documents in tree mode
|
Summary: Perl module for processing huge XML documents in tree mode
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/XML-Twig
|
URL: https://metacpan.org/release/XML-Twig
|
||||||
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils
|
||||||
BuildRequires: expat >= 2.0.1
|
BuildRequires: expat >= 2.0.1
|
||||||
BuildRequires: findutils
|
|
||||||
BuildRequires: glibc-common
|
BuildRequires: glibc-common
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
@ -42,6 +49,7 @@ BuildRequires: perl(lib)
|
|||||||
BuildRequires: perl(Test)
|
BuildRequires: perl(Test)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
# Optional tests:
|
# Optional tests:
|
||||||
|
%if %{with perl_XML_Twig_enables_optional_test}
|
||||||
BuildRequires: perl(IO::String)
|
BuildRequires: perl(IO::String)
|
||||||
BuildRequires: perl(LWP)
|
BuildRequires: perl(LWP)
|
||||||
BuildRequires: perl(HTML::Entities)
|
BuildRequires: perl(HTML::Entities)
|
||||||
@ -57,6 +65,7 @@ BuildRequires: perl(XML::Filter::BufferText)
|
|||||||
BuildRequires: perl(XML::Handler::YAWriter)
|
BuildRequires: perl(XML::Handler::YAWriter)
|
||||||
BuildRequires: perl(XML::SAX::Writer) >= 0.39
|
BuildRequires: perl(XML::SAX::Writer) >= 0.39
|
||||||
BuildRequires: perl(XML::Simple)
|
BuildRequires: perl(XML::Simple)
|
||||||
|
%endif
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||||
Requires: perl(Encode)
|
Requires: perl(Encode)
|
||||||
Requires: perl(HTML::TreeBuilder) >= 4.00
|
Requires: perl(HTML::TreeBuilder) >= 4.00
|
||||||
@ -86,11 +95,11 @@ iconv -f iso88591 -t utf8 < Changes > Changes.utf8 && \
|
|||||||
mv -f Changes.utf8 Changes
|
mv -f Changes.utf8 Changes
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL -y INSTALLDIRS=perl NO_PACKLIST=1
|
perl Makefile.PL -y INSTALLDIRS=perl NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=%{buildroot}
|
%{make_install}
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -104,6 +113,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 14 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.52-15
|
||||||
|
- Do not run optional test on RHEL
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-14
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.52-14
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user