bf9c93
Name:           perl-Storable
bf9c93
Version:        2.45
bf9c93
Release:        3%{?dist}
bf9c93
Summary:        Persistence for Perl data structures
bf9c93
License:        GPL+ or Artistic
bf9c93
Group:          Development/Libraries
bf9c93
URL:            http://search.cpan.org/dist/Storable/
bf9c93
Source0:        http://www.cpan.org/authors/id/A/AM/AMS/Storable-%{version}.tar.gz
bf9c93
BuildRequires:  perl
bf9c93
BuildRequires:  perl(Config)
bf9c93
BuildRequires:  perl(ExtUtils::MakeMaker)
bf9c93
# Run-time:
bf9c93
# Carp substitutes missing Log::Agent
bf9c93
BuildRequires:  perl(Carp)
bf9c93
BuildRequires:  perl(Exporter)
bf9c93
# Fcntl is optional, but locking is good
bf9c93
BuildRequires:  perl(Fcntl)
bf9c93
BuildRequires:  perl(IO::File)
bf9c93
# Log::Agent is optional
bf9c93
BuildRequires:  perl(vars)
bf9c93
BuildRequires:  perl(XSLoader)
bf9c93
# Tests:
bf9c93
BuildRequires:  perl(bytes)
bf9c93
BuildRequires:  perl(integer)
bf9c93
BuildRequires:  perl(overload)
bf9c93
BuildRequires:  perl(Test::More)
bf9c93
BuildRequires:  perl(threads)
bf9c93
BuildRequires:  perl(Safe)
bf9c93
BuildRequires:  perl(Scalar::Util)
bf9c93
BuildRequires:  perl(strict)
bf9c93
# Optional tests:
bf9c93
# Data::Dump not used
bf9c93
# Data::Dumper not used
bf9c93
BuildRequires:  perl(B::Deparse) >= 0.61
bf9c93
BuildRequires:  perl(Digest::MD5)
bf9c93
BuildRequires:  perl(File::Spec) >= 0.8
bf9c93
BuildRequires:  perl(Hash::Util)
bf9c93
BuildRequires:  perl(Tie::Hash)
bf9c93
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
bf9c93
# Carp substitutes missing Log::Agent
bf9c93
Requires:       perl(Carp)
bf9c93
Requires:       perl(Config)
bf9c93
# Fcntl is optional, but locking is good
bf9c93
Requires:       perl(Fcntl)
bf9c93
Requires:       perl(IO::File)
bf9c93
bf9c93
%{?perl_default_filter}
bf9c93
bf9c93
%description
bf9c93
The Storable package brings persistence to your Perl data structures
bf9c93
containing scalar, array, hash or reference objects, i.e. anything that
bf9c93
can be conveniently stored to disk and retrieved at a later time.
bf9c93
bf9c93
%prep
bf9c93
%setup -q -n Storable-%{version}
bf9c93
# Remove bundled modules
bf9c93
rm -rf t/compat
bf9c93
sed -i -e '/^t\/compat\//d' MANIFEST
bf9c93
bf9c93
%build
bf9c93
# Be ware hints/linux.pl removes "-ON" from CFLAGS if N > 2 because it can
bf9c93
# break the code.
bf9c93
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
bf9c93
make %{?_smp_mflags}
bf9c93
bf9c93
%install
bf9c93
make pure_install DESTDIR=$RPM_BUILD_ROOT
bf9c93
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
bf9c93
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
bf9c93
%{_fixperms} $RPM_BUILD_ROOT/*
bf9c93
bf9c93
%check
bf9c93
make test
bf9c93
bf9c93
%files
bf9c93
%doc ChangeLog README
bf9c93
%{perl_vendorarch}/auto/*
bf9c93
%{perl_vendorarch}/Storable*
bf9c93
%{_mandir}/man3/*
bf9c93
bf9c93
%changelog
bf9c93
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.45-3
bf9c93
- Mass rebuild 2014-01-24
bf9c93
bf9c93
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.45-2
bf9c93
- Mass rebuild 2013-12-27
bf9c93
bf9c93
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.45-1
bf9c93
- 2.45 bump
bf9c93
bf9c93
* Tue Jun 11 2013 Petr Pisar <ppisar@redhat.com> - 2.39-2
bf9c93
- Do not export private libraries
bf9c93
bf9c93
* Fri May 24 2013 Petr Pisar <ppisar@redhat.com> 2.39-1
bf9c93
- Specfile autogenerated by cpanspec 1.78.