define mod_name to opitomize the specfile
This commit is contained in:
parent
b18b827e87
commit
432da65ded
@ -1,11 +1,12 @@
|
||||
Name: perl-Net-Daemon
|
||||
%define mod_name Net-Daemon
|
||||
Name: perl-%{mod_name}
|
||||
Epoch: 1
|
||||
Version: 0.49
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Perl extension for portable daemons
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Net-Daemon
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MN/MNOONING/Net-Daemon-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MN/MNOONING/%{mod_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl perl-generators
|
||||
Requires: perl
|
||||
@ -29,7 +30,7 @@ BuildArch: noarch
|
||||
This package provide %{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n Net-Daemon-%{version}
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||
@ -52,6 +53,9 @@ make test
|
||||
|
||||
|
||||
%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
|
||||
- update version to 0.49
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user