Modernize the spec a bit and add Carp to BRs

This commit is contained in:
Petr Šabata 2012-11-15 13:38:07 +01:00
parent 88b4ccf64b
commit 4f03c9e11a

View File

@ -1,13 +1,13 @@
Name: perl-IO-Socket-INET6
Version: 2.69
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Perl Object interface for AF_INET|AF_INET6 domain sockets
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/~mondejar/IO-Socket-INET6/
Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(Socket)
@ -15,7 +15,7 @@ BuildRequires: perl(Socket6)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Perl Object interface for AF_INET|AF_INET6 domain sockets.
@ -24,29 +24,26 @@ Perl Object interface for AF_INET|AF_INET6 domain sockets.
%setup -q -n IO-Socket-INET6-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} ';' 2>/dev/null
%{_fixperms} $RPM_BUILD_ROOT
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README ChangeLog
%{perl_vendorlib}/IO/
%{_mandir}/man3/IO::Socket::INET6.3pm*
%changelog
* Thu Nov 15 2012 Petr Šabata <contyk@redhat.com> - 2.69-4
- Modernize the spec a bit and add Carp to BRs
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.69-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild