Add mod_name Macro

This commit is contained in:
shenxiangwei 2022-10-24 16:17:43 +08:00
parent 7b753938a5
commit cf9971767a

View File

@ -1,10 +1,12 @@
Name: perl-IO-HTML %define mod_name IO-HTML
Name: perl-%{mod_name}
Version: 1.004 Version: 1.004
Release: 1 Release: 2
Summary: Open an HTML file with automatic charset detection Summary: Open an HTML file with automatic charset detection
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/IO-HTML URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/IO-HTML-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/%{mod_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) >= 6.30 BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) >= 6.30
@ -19,13 +21,13 @@ based on the HTML5 algorithm. You can then pass the filehandle to
HTML::Parser or a related module (or just read it yourself). HTML::Parser or a related module (or just read it yourself).
%package help %package help
Summary: Documentation for perl-IO-HTML Summary: Documentation for perl-%{mod_name}
%description help %description help
Documentation for perl-IO-HTML. Documentation for perl-%{mod_name}.
%prep %prep
%autosetup -n IO-HTML-%{version} -p1 %autosetup -n %{mod_name}-%{version} -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
@ -49,6 +51,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Mon Oct 24 2022 hongjinghao <hongjinghao@huawei.com> - 1.004-2
- Add mod_name Macro
* Fri Dec 3 2021 guozhaorui <guozhaorui1@huawei.com> - 1.004-1 * Fri Dec 3 2021 guozhaorui <guozhaorui1@huawei.com> - 1.004-1
- update version to 1.004 - update version to 1.004