0.25 bump

- Modernize the spec somewhat
This commit is contained in:
Petr Šabata 2014-02-25 10:57:09 +01:00
parent c4f3693f9a
commit c328ee49a9
3 changed files with 14 additions and 19 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Socket6-0.23.tar.gz
/Socket6-0.25.tar.gz

View File

@ -2,21 +2,23 @@
%{?perl_default_filter}
Name: perl-Socket6
Version: 0.23
Release: 15%{?dist}
Version: 0.25
Release: 1%{?dist}
Summary: IPv6 related part of the C socket.h defines and structure manipulators
Group: Development/Libraries
License: BSD
URL: http://search.cpan.org/dist/Socket6/
Source0: http://www.cpan.org/authors/id/U/UM/UMEMOTO/Socket6-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(strict)
BuildREquires: perl(vars)
# Tests:
BuildRequires: perl(Socket)
BuildRequires: perl(Test)
@ -28,37 +30,25 @@ enable protocol independent programming.
If your environment supports IPv6, IPv6 related defines such as
AF_INET6 are included.
%prep
%setup -q -n Socket6-%{version}
# CPAN RT #66811
sed -i -e '/MAN3PODS/d' Makefile.PL
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$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 f -name '*.bs' -empty -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog README
%{perl_vendorarch}/Socket6*
%{perl_vendorarch}/auto/Socket6/
@ -66,6 +56,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Feb 25 2014 Petr Šabata <contyk@redhat.com> - 0.25-1
- 0.25 bump
- Modernize the spec somewhat
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
2c02adb13c449d48d232bb704ddbd492 Socket6-0.23.tar.gz
e6c40d662b1fc5ffd436b7f50daa1f04 Socket6-0.25.tar.gz