添加%{mod_name}宏

添加%{mod_name}宏

Signed-off-by: hongjinghao <hongjinghao@huawei.com>
This commit is contained in:
hongjinghao 2022-10-31 09:31:28 +00:00 committed by Gitee
parent e1eb9770da
commit a0e781f488
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,12 @@
%define mod_name XML-SAX-Base
Name: perl-XML-SAX-Base Name: perl-XML-SAX-Base
Version: 1.09 Version: 1.09
Release: 7 Release: 8
Summary: Base class SAX Drivers and Filters Summary: Base class SAX Drivers and Filters
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/XML-SAX-Base URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-Base-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/G/GR/GRANTM/%{mod_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils, perl-interpreter, perl-generators BuildRequires: coreutils, perl-interpreter, perl-generators
BuildRequires: perl(base), perl(Carp), perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(base), perl(Carp), perl(ExtUtils::MakeMaker) >= 6.76
@ -26,7 +28,7 @@ Requires: man
This package includes man files for perl-XML-SAX-Base. This package includes man files for perl-XML-SAX-Base.
%prep %prep
%autosetup -n XML-SAX-Base-%{version} -p1 %autosetup -n %{mod_name}-%{version} -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@ -51,5 +53,8 @@ make test
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Mon Oct 31 2022 hongjinghao <hongjinghao@huawei.com> - 1.09-8
- use %{mod_name} marco
* Wed Nov 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.09-7 * Wed Nov 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.09-7
- Package init - Package init