- make rpmlint happy

This commit is contained in:
Marcela Mašláňová 2010-02-17 07:58:07 +00:00
parent 43ae2ca611
commit 8100f58cc7

View File

@ -1,14 +1,14 @@
Name: perl-NetAddr-IP
Version: 4.027
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Manages IPv4 and IPv6 addresses and subnets
# Upstream explicitly gave permission for us to distribute under Artistic 2.0
# Will be reflected in next release.
License: Artistic 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/NetAddr-IP/
Source0: http://www.cpan.org/modules/by-module/NetAddr/NetAddr-IP-%{version}.tar.gz
Source1: License_of_perl-NetAddr-IP.txt
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-%{version}.tar.gz
Source1: License_of_perl-NetAddr-IP.txt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -23,12 +23,18 @@ Math::BigInt as in previous versions.
%setup -q -n NetAddr-IP-%{version}
cp %{SOURCE1} .
%{?filter_setup:
%filter_from_provides /^perl(NetAddr::IP.*)$/d
%?perl_default_filter
}
# Fix UTF-8
iconv -f ISO_8859-1 -t UTF-8 -o tmp.pm IP.pm &&
mv -f tmp.pm IP.pm
iconv -f ISO_8859-1 -t UTF-8 -o tmp.pm Lite/Lite.pm &&
mv -f tmp.pm Lite/Lite.pm
iconv -f ISO_8859-1 -t UTF-8 -o README.new README &&
mv -f README.new README
%build
@ -38,7 +44,7 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
@ -60,6 +66,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/*
%changelog
* Wed Feb 17 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4.027-3
- make rpmlint happy
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 4.027-2
- rebuild against perl 5.10.1