!2 【轻量级 PR】:添加%{mod_name}宏
From: @hongjinghao Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
80cec815e7
@ -1,13 +1,14 @@
|
|||||||
%define __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(URI\\)$
|
%define __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(URI\\)$
|
||||||
%define __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(WWW::RobotRules::InCore\\)
|
%define __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(WWW::RobotRules::InCore\\)
|
||||||
|
%define mod_name WWW-RobotRules
|
||||||
|
|
||||||
Name: perl-WWW-RobotRules
|
Name: perl-WWW-RobotRules
|
||||||
Version: 6.02
|
Version: 6.02
|
||||||
Release: 21
|
Release: 22
|
||||||
Summary: This module parses the /robots.txt file as specified in "A Standard for Robot Exclusion"
|
Summary: This module parses the /robots.txt file as specified in "A Standard for Robot Exclusion"
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/WWW-RobotRules
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/WWW-RobotRules-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{mod_name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: perl-generators perl(AnyDBM_File) perl(Carp) perl(ExtUtils::MakeMaker) perl(Fcntl) perl(URI) >= 1.10
|
BuildRequires: perl-generators perl(AnyDBM_File) perl(Carp) perl(ExtUtils::MakeMaker) perl(Fcntl) perl(URI) >= 1.10
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ Buildarch: noarch
|
|||||||
This package includes help documentation and manuals related to perl-WWW-RobotRules.
|
This package includes help documentation and manuals related to perl-WWW-RobotRules.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n WWW-RobotRules-6.02 -p1
|
%autosetup -n %{mod_name}-6.02 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
@ -49,5 +50,8 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 31 2022 hongjinghao <hongjinghao@huawei.com> - 6.02-22
|
||||||
|
- use %{mod_name} marco
|
||||||
|
|
||||||
* Thu Oct 17 2019 dongjian <dongjian13@huawei.com> - 6.02-21
|
* Thu Oct 17 2019 dongjian <dongjian13@huawei.com> - 6.02-21
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user