define mod_name to opitomize the specfile

This commit is contained in:
zhoushuiqing 2022-10-25 02:33:02 +00:00 committed by Gitee
parent b18b827e87
commit 432da65ded
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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