perl-XML-NamespaceSupport/perl-XML-NamespaceSupport.spec

54 lines
1.4 KiB
RPMSpec
Raw Normal View History

2022-10-24 19:54:56 +08:00
%define mod_name XML-NamespaceSupport
Name: perl-%{mod_name}
2019-12-14 21:09:10 +08:00
Version: 1.12
2022-10-24 19:54:56 +08:00
Release: 8
2019-12-14 21:09:10 +08:00
Summary: A simple generic namespace processor
License: GPL+ or Artistic
2022-10-24 19:54:56 +08:00
Url: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERIGRIN/%{mod_name}-%{version}.tar.gz
2019-12-14 21:09:10 +08:00
BuildRequires: make perl-generators perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6 perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) perl(warnings) perl(constant) perl(vars) perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildArch: noarch
%description
This module offers a simple to process namespaced XML names (unames)
from within any application that may need them. It also helps maintain
a prefix to namespace URI map, and provides a number of basic checks.
%package_help
%prep
2022-10-24 19:54:56 +08:00
%autosetup -p1 -n %{mod_name}-%{version}
2019-12-14 21:09:10 +08:00
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}
%check
make test
%files
%license LICENSE
%{perl_vendorlib}/XML/
%files help
%doc Changes README
%{_mandir}/man3/*.3*
%changelog
2022-10-24 19:54:56 +08:00
* Mon Oct 24 2022 hongjinghao<hongjinghao@huawei.com> - 1.12-8
- add mod_name macro
2022-06-16 15:43:11 +08:00
* Fri Nov 15 2019 caomeng<caomeng5@huawei.com> - 1.12-7
2019-12-14 21:09:10 +08:00
- Package init