perl-XML-Parser/perl-XML-Parser.spec

74 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

%define mod_name XML-Parser
Name: perl-%{mod_name}
2019-09-30 11:13:40 -04:00
Epoch: 1
2020-07-23 18:57:18 +08:00
Version: 2.46
Release: 2
2019-09-30 11:13:40 -04:00
Summary: Perl module for parsing XML documents
License: GPLv1+ or Artistic 1.0
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{mod_name}-%{version}.tar.gz
2019-09-30 11:13:40 -04:00
2020-05-13 17:08:46 +08:00
BuildRequires: gcc make perl-generators perl expat-devel perl-devel
2019-09-30 11:13:40 -04:00
Requires: perl
%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.
%package help
Summary: Man page for %{name}
BuildArch: noarch
%description help
%{summary}.
%prep
%autosetup -n %{mod_name}-%{version}
2019-09-30 11:13:40 -04:00
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build
%install
%make_install
2019-12-25 16:03:57 +08:00
%{_fixperms} %{buildroot}/*
2019-09-30 11:13:40 -04:00
%check
make test
%files
%defattr(-,root,root)
%doc Changes README samples/
%{perl_vendorarch}/XML/
%{perl_vendorarch}/auto/XML/
%files help
%{_mandir}/man3/*.3*
%changelog
* Wed Oct 26 2022 wangyuhang <wangyuhang27@huawei.com> - 1:2.46-2
- define mod_name to opitomize the specfile
2020-07-23 18:57:18 +08:00
* Wed Jul 22 2020 dingyue <dingyue5@huawei.com> - 1:2.46-1
- update to 2.46
2020-07-23 18:57:18 +08:00
2020-05-13 17:08:46 +08:00
* Wed May 13 2020 licunlong <licunlong1@huawei.com> - 1:2.44-4
- add perl-devel buildrequire
2019-12-25 16:03:57 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:2.44-3
- Change mod of files
2019-09-30 11:13:40 -04:00
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:2.44-2
- Adjust requires
* Fri Sep 6 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:2.44-1
- Package init