From cf9971767aa00da70bc9b188b475c341c90334f6 Mon Sep 17 00:00:00 2001 From: shenxiangwei Date: Mon, 24 Oct 2022 16:17:43 +0800 Subject: [PATCH] Add mod_name Macro --- perl-IO-HTML.spec | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/perl-IO-HTML.spec b/perl-IO-HTML.spec index 6d2c52e..cfc1184 100644 --- a/perl-IO-HTML.spec +++ b/perl-IO-HTML.spec @@ -1,10 +1,12 @@ -Name: perl-IO-HTML +%define mod_name IO-HTML + +Name: perl-%{mod_name} Version: 1.004 -Release: 1 +Release: 2 Summary: Open an HTML file with automatic charset detection License: GPL+ or Artistic -URL: https://metacpan.org/release/IO-HTML -Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/IO-HTML-%{version}.tar.gz +URL: https://metacpan.org/release/%{mod_name} +Source0: https://cpan.metacpan.org/authors/id/C/CJ/CJM/%{mod_name}-%{version}.tar.gz BuildArch: noarch 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). %package help -Summary: Documentation for perl-IO-HTML +Summary: Documentation for perl-%{mod_name} %description help -Documentation for perl-IO-HTML. +Documentation for perl-%{mod_name}. %prep -%autosetup -n IO-HTML-%{version} -p1 +%autosetup -n %{mod_name}-%{version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -49,6 +51,9 @@ make test %{_mandir}/man3/* %changelog +* Mon Oct 24 2022 hongjinghao - 1.004-2 +- Add mod_name Macro + * Fri Dec 3 2021 guozhaorui - 1.004-1 - update version to 1.004