define mod_name to opitomize the specfile

Signed-off-by: Mingtai <yangmingtai@huawei.com>
This commit is contained in:
Mingtai 2022-10-24 11:02:32 +00:00 committed by Gitee
parent 141985d8a3
commit d603edce30
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,10 +1,11 @@
Name: perl-Text-Diff %define mod_name Text-Diff
Name: perl-%{mod_name}
Version: 1.45 Version: 1.45
Release: 7 Release: 8
Summary: Perform diffs on files and record sets Summary: Perform diffs on files and record sets
License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT
URL: https://metacpan.org/release/Text-Diff URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/Text-Diff-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{mod_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: make BuildRequires: make
@ -22,7 +23,7 @@ Requires: perl(Algorithm::Diff) >= 1.19
Text::Diff provides a basic set of services akin to the GNU diff utility. Text::Diff provides a basic set of services akin to the GNU diff utility.
%prep %prep
%setup -q -n Text-Diff-%{version} %setup -q -n %{mod_name}-%{version}
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@ -46,6 +47,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 1.45-8
- define mod_name to opitomize the specfile
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.45-7 * Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.45-7
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA