Files
openRuyi/SPECS/perl-XML-Parser/perl-XML-Parser.spec
2026-04-01 10:11:02 +08:00

56 lines
1.8 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
Name: perl-XML-Parser
Version: 2.47
Release: %autorelease
Summary: Perl module for parsing XML documents
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/dist/XML-Parser
#!RemoteAsset
Source0: http://www.cpan.org/authors/id/T/TO/TODDR/XML-Parser-%{version}.tar.gz
BuildRequires: make
BuildRequires: perl-rpm-packaging
BuildRequires: perl-macros
BuildRequires: perl >= 5.4.50
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
# Manual
BuildRequires: pkgconfig(expat)
%description
This module provides ways to parse XML documents. It is built on top of
XML::Parser::Expat, which is a lower level interface to James Clark's expat
library. Each call to one of the parsing methods creates a new instance of
XML::Parser::Expat which is then used to parse the document. Expat options
may be provided when the XML::Parser object is created. These options are
then passed on to the Expat object on each parse call. They can also be
given as extra arguments to the parse methods, in which case they override
options given at XML::Parser creation time.
%prep
%setup -q -n XML-Parser-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{make_build}
%install
%perl_make_install
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README README.md
%changelog
%{?autochangelog}