Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-Net-LibIDN.git#b89f0736f7e7977c9fa4de0b5ff6e7ebc8093207
This commit is contained in:
DistroBaker 2020-12-31 03:11:13 +00:00
parent 39c39e889f
commit edcb22925d

View File

@ -1,15 +1,15 @@
%global pkgname Net-LibIDN
Summary: Perl bindings for GNU LibIDN
Name: perl-Net-LibIDN
Version: 0.12
Release: 38%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{pkgname}
Source: https://cpan.metacpan.org/authors/id/T/TH/THOR/%{pkgname}-%{version}.tar.gz
Summary: Perl bindings for GNU LibIDN
Name: perl-Net-LibIDN
Version: 0.12
Release: 38%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{pkgname}
Source: https://cpan.metacpan.org/authors/id/T/TH/THOR/%{pkgname}-%{version}.tar.gz
# Use distribution CFLAGS for tests, bug #1242794, CPAN RT#105853
Patch0: Net-LibIDN-0.12-Respect-Config-s-cc-ccflags-and-ldflags.patch
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Patch0: Net-LibIDN-0.12-Respect-Config-s-cc-ccflags-and-ldflags.patch
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: gcc
BuildRequires: libidn-devel >= 0.4.0
BuildRequires: perl-interpreter >= 5.8.0
@ -45,7 +45,7 @@ done;
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
@ -57,7 +57,8 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} +
make test
%files
%doc Artistic Changes README
%license Artistic
%doc Changes README
%{_mandir}/man3/*.3pm*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net