!4 【轻量级 PR】:define mod_name to opitomize the specfile
From: @ZhouShuiQing Reviewed-by: @licunlong Signed-off-by: @licunlong
This commit is contained in:
commit
1d66dbb96f
@ -1,11 +1,12 @@
|
|||||||
Name: perl-Net-Daemon
|
%define mod_name Net-Daemon
|
||||||
|
Name: perl-%{mod_name}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 0.49
|
Version: 0.49
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Perl extension for portable daemons
|
Summary: Perl extension for portable daemons
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Net-Daemon
|
URL: https://metacpan.org/release/%{mod_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/M/MN/MNOONING/Net-Daemon-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/M/MN/MNOONING/%{mod_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl perl-generators
|
BuildRequires: perl perl-generators
|
||||||
Requires: perl
|
Requires: perl
|
||||||
@ -29,7 +30,7 @@ BuildArch: noarch
|
|||||||
This package provide %{summary}.
|
This package provide %{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Net-Daemon-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||||
@ -52,6 +53,9 @@ make test
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 1:0.49-2
|
||||||
|
- define mod_name to opitomize the specfile
|
||||||
|
|
||||||
* Sat Nov 20 2021 shangyibin <shangyibin1@openeuler.org> - 1:0.49-1
|
* Sat Nov 20 2021 shangyibin <shangyibin1@openeuler.org> - 1:0.49-1
|
||||||
- update version to 0.49
|
- update version to 0.49
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user