define mod_name to opitomize the specfile
Signed-off-by: const <jiangchuangang@huawei.com> (cherry picked from commit 969c97b628d4e846c45faae7fc945561bd700341)
This commit is contained in:
parent
43f3063164
commit
80103d9b8a
@ -1,10 +1,12 @@
|
||||
%define mod_name Net-LibIDN
|
||||
|
||||
Name: perl-Net-LibIDN
|
||||
Version: 0.12
|
||||
Release: 33
|
||||
Release: 34
|
||||
Summary: Perl bindings for GNU Libidn
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Net-LibIDN
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TH/THOR/Net-LibIDN-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{mod_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TH/THOR/%{mod_name}-%{version}.tar.gz
|
||||
Patch0: Net-LibIDN-0.12-Respect-Config-s-cc-ccflags-and-ldflags.patch
|
||||
|
||||
BuildRequires: gcc libidn-devel perl-interpreter perl-devel perl-generators
|
||||
@ -22,7 +24,7 @@ Turbo Fredriksson's PHP-IDN.
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n Net-LibIDN-%{version} -p1
|
||||
%autosetup -n %{mod_name}-%{version} -p1
|
||||
|
||||
for F in _LibIDN.pm; do
|
||||
iconv -f latin1 -t utf-8 < "$F" > "${F}.utf"
|
||||
@ -53,5 +55,8 @@ make test
|
||||
%{_mandir}/man3/Net::LibIDN.3pm.gz
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 jiangchuangang <jiangchuangang@huawei.com> - 0.12-34
|
||||
- define mod_name to opitomize the specfile
|
||||
|
||||
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.12-33
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user