Blame SPECS/perl-Socket.spec

cbbc5f
%{?scl:%scl_package perl-Socket}
cbbc5f
cbbc5f
%global cpan_version 2.016
cbbc5f
Name:           %{?scl_prefix}perl-Socket
cbbc5f
Epoch:          2
cbbc5f
Version:        %(echo '%{cpan_version}' | tr '_' '.')
cbbc5f
Release:        1%{?dist}
cbbc5f
Summary:        Networking constants and support functions
cbbc5f
License:        GPL+ or Artistic
cbbc5f
Group:          Development/Libraries
cbbc5f
URL:            http://search.cpan.org/dist/Socket/
cbbc5f
Source0:        http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Socket-%{cpan_version}.tar.gz
cbbc5f
BuildRequires:  %{?scl_prefix}perl
cbbc5f
BuildRequires:  %{?scl_prefix}perl(Config)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(ExtUtils::CBuilder)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(ExtUtils::Constant) >= 0.23
cbbc5f
# ExtUtils::Constant::ProxySubs not used
cbbc5f
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(strict)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(warnings)
cbbc5f
# Run-time:
cbbc5f
BuildRequires:  %{?scl_prefix}perl(Carp)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(Exporter)
cbbc5f
# Scalar::Util is needed only if getaddrinfo(3) does not exist. Not our case.
cbbc5f
BuildRequires:  %{?scl_prefix}perl(warnings::register)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(XSLoader)
cbbc5f
# Tests only:
cbbc5f
BuildRequires:  %{?scl_prefix}perl(Errno)
cbbc5f
BuildRequires:  %{?scl_prefix}perl(Test::More)
cbbc5f
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
cbbc5f
cbbc5f
%{?perl_default_filter}
cbbc5f
cbbc5f
%description
cbbc5f
This module provides a variety of constants, structure manipulators and other
cbbc5f
functions related to socket-based networking. The values and functions
cbbc5f
provided are useful when used in conjunction with Perl core functions such as
cbbc5f
socket(), setsockopt() and bind(). It also provides several other support
cbbc5f
functions, mostly for dealing with conversions of network addresses between
cbbc5f
human-readable and native binary forms, and for hostname resolver operations.
cbbc5f
cbbc5f
%prep
cbbc5f
%setup -q -n Socket-%{cpan_version}
cbbc5f
cbbc5f
%build
cbbc5f
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" && make %{?_smp_mflags}%{?scl:'}
cbbc5f
cbbc5f
%install
cbbc5f
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
cbbc5f
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
cbbc5f
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
cbbc5f
%{_fixperms} $RPM_BUILD_ROOT/*
cbbc5f
cbbc5f
%check
cbbc5f
%{?scl:scl enable %{scl} '}make test%{?scl:'}
cbbc5f
cbbc5f
%files
cbbc5f
%doc Artistic Changes Copying LICENSE
cbbc5f
%{perl_vendorarch}/auto/*
cbbc5f
%{perl_vendorarch}/Socket*
cbbc5f
%{_mandir}/man3/*
cbbc5f
cbbc5f
%changelog
cbbc5f
* Thu Oct 09 2014 Petr Pisar <ppisar@redhat.com> - 2:2.016-1
cbbc5f
- 2.016 bump
cbbc5f
cbbc5f
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.015-3
cbbc5f
- Increase Epoch to favour standalone package
cbbc5f
cbbc5f
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.015-2
cbbc5f
- Perl 5.20 rebuild
cbbc5f
cbbc5f
* Mon Aug 18 2014 Petr Pisar <ppisar@redhat.com> - 1:2.015-1
cbbc5f
- 0.15 bump
cbbc5f
cbbc5f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.014-3
cbbc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
cbbc5f
cbbc5f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.014-2
cbbc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cbbc5f
cbbc5f
* Mon Jun 02 2014 Petr Pisar <ppisar@redhat.com> - 1:2.014-1
cbbc5f
- 2.014 bump
cbbc5f
cbbc5f
* Tue Oct 29 2013 Petr Pisar <ppisar@redhat.com> - 1:2.013-1
cbbc5f
- 2.013 bump
cbbc5f
cbbc5f
* Tue Sep 10 2013 Petr Pisar <ppisar@redhat.com> - 1:2.012-1
cbbc5f
- 2.012 bump
cbbc5f
cbbc5f
* Tue Aug 06 2013 Petr Pisar <ppisar@redhat.com> - 1:2.011-1
cbbc5f
- 2.011 bump
cbbc5f
cbbc5f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.010-4
cbbc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cbbc5f
cbbc5f
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.010-3
cbbc5f
- Link minimal build-root packages against libperl.so explicitly
cbbc5f
cbbc5f
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.010-2
cbbc5f
- Perl 5.18 rebuild
cbbc5f
cbbc5f
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.010-1
cbbc5f
- Increase epoch to compete with perl.spec
cbbc5f
cbbc5f
* Tue Jun 25 2013 Petr Pisar <ppisar@redhat.com> - 2.010-1
cbbc5f
- 2.010 bump
cbbc5f
cbbc5f
* Fri May 24 2013 Petr Pisar <ppisar@redhat.com> - 2.009-3
cbbc5f
- Specify all dependencies
cbbc5f
cbbc5f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.009-2
cbbc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cbbc5f
cbbc5f
* Mon Jan 21 2013 Petr Pisar <ppisar@redhat.com> - 2.009-1
cbbc5f
- 2.009 bump
cbbc5f
cbbc5f
* Thu Jan 03 2013 Petr Pisar <ppisar@redhat.com> - 2.008-1
cbbc5f
- 2.008 bump
cbbc5f
cbbc5f
* Mon Dec 17 2012 Petr Pisar <ppisar@redhat.com> - 2.007-1
cbbc5f
- 2.007 bump
cbbc5f
cbbc5f
* Thu Nov 08 2012 Petr Pisar <ppisar@redhat.com> - 2.006-2
cbbc5f
- Update description
cbbc5f
cbbc5f
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 2.006-1
cbbc5f
- 2.006 bump
cbbc5f
cbbc5f
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 2.005-1
cbbc5f
- 2.005 bump
cbbc5f
cbbc5f
* Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 2.004-1
cbbc5f
- 2.004 bump
cbbc5f
cbbc5f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.002-3
cbbc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cbbc5f
cbbc5f
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 2.002-2
cbbc5f
- Perl 5.16 rebuild
cbbc5f
cbbc5f
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 2.002-1
cbbc5f
- 2.002 bump
cbbc5f
cbbc5f
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.001-2
cbbc5f
- Perl 5.16 rebuild
cbbc5f
cbbc5f
* Wed Mar 28 2012 Petr Pisar <ppisar@redhat.com> - 2.001-1
cbbc5f
- 2.001 bump (bug-fixing release)
cbbc5f
cbbc5f
* Tue Mar 27 2012 Petr Pisar <ppisar@redhat.com> - 2.000-3
cbbc5f
- Fix invalid write while unpacking AF_UNIX sockaddr (bug #806543)
cbbc5f
cbbc5f
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 2.000-2
cbbc5f
- Increase release number due to F17 build
cbbc5f
cbbc5f
* Wed Mar 14 2012 Petr Pisar <ppisar@redhat.com> - 2.000-1
cbbc5f
- 2.000 bump
cbbc5f
- Fix a buffer overflow (RT#75623)
cbbc5f
cbbc5f
* Wed Feb 22 2012 Petr Pisar <ppisar@redhat.com> - 1.99-1
cbbc5f
- 1.99 bump
cbbc5f
cbbc5f
* Thu Feb 16 2012 Petr Pisar <ppisar@redhat.com> - 1.98-1
cbbc5f
- 1.98 bump
cbbc5f
cbbc5f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-2
cbbc5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cbbc5f
cbbc5f
* Mon Dec 19 2011 Petr Pisar <ppisar@redhat.com> - 1.97-1
cbbc5f
- 1.97 bump
cbbc5f
- License texts added
cbbc5f
cbbc5f
* Mon Dec 12 2011 Petr Pisar <ppisar@redhat.com> - 1.96-1
cbbc5f
- 1.96 bump
cbbc5f
cbbc5f
* Fri Dec 02 2011 Petr Pisar <ppisar@redhat.com> - 1.95-1
cbbc5f
- 1.95 bump
cbbc5f
cbbc5f
* Wed Nov 23 2011 Petr Pisar <ppisar@redhat.com> 1.94.07-1
cbbc5f
- 1.94_07 packaged.