[perl-Directory-Scratch] 0.16 bump, fix problematic $VERSION declaration
Petr Šabata
psabata at fedoraproject.org
Mon Jan 5 13:43:39 UTC 2015
commit f8f3ab0150d89b4dfb2f4893848fc2ccb5791de4
Author: Petr Šabata <contyk at redhat.com>
Date: Mon Jan 5 14:43:49 2015 +0100
0.16 bump, fix problematic $VERSION declaration
.gitignore | 1 +
perl-Directory-Scratch.spec | 52 ++++++++++++++++++------------------------
sources | 2 +-
3 files changed, 24 insertions(+), 31 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d348e44..73a7e9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
Directory-Scratch-0.14.tar.gz
/Directory-Scratch-0.15.tar.gz
+/Directory-Scratch-0.16.tar.gz
diff --git a/perl-Directory-Scratch.spec b/perl-Directory-Scratch.spec
index 40d2489..2552628 100644
--- a/perl-Directory-Scratch.spec
+++ b/perl-Directory-Scratch.spec
@@ -1,45 +1,40 @@
-Name: perl-Directory-Scratch
-Version: 0.15
+Name: perl-Directory-Scratch
+Version: 0.16
Release: 1%{?dist}
-# see lib/Directory/Scratch.pm (perl)
License: GPL+ or Artistic
Group: Development/Libraries
-Summary: Self-cleaning scratch space for tests
-Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Directory-Scratch-%{version}.tar.gz
+Summary: Self-cleaning scratch space for tests
+Source: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Directory-Scratch-%{version}.tar.gz
Url: http://search.cpan.org/dist/Directory-Scratch
BuildArch: noarch
+# Build
BuildRequires: perl
-BuildRequires: perl(inc::Module::Install)
-# Module::Install::Authority not yet packaged
-BuildRequires: perl(Module::Install::Metadata)
-BuildRequires: perl(Module::Install::WriteAll)
+BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
-# Run-time:
+BuildRequires: perl(warnings)
+# Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(File::Copy)
-BuildRequires: perl(File::Slurp) >= 9999.12
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::stat)
BuildRequires: perl(File::Temp)
BuildRequires: perl(overload)
BuildRequires: perl(Path::Class)
+BuildRequires: perl(Path::Tiny)
+BuildRequires: perl(Scalar::Util)
BuildRequires: perl(String::Random)
-BuildRequires: perl(warnings)
-# Tests:
+# Tests only
BuildRequires: perl(File::Path)
BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires: perl(File::Slurp) >= 9999.12
-
-%{?perl_default_filter}
-# Remove under-specified dependencies
-%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Slurp\\)$
+# Tests:
+Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires: perl(String::Random)
%description
-When writing test suites for modules that operate on files, it's often
+When writing test suites for modules that operate on files, it's often
inconvenient to correctly create a platform-independent temporary storage
-space, manipulate files inside it, then clean it up when the test exits.
-The inconvenience usually results in tests that don’t work everywhere, or
+space, manipulate files inside it, then clean it up when the test exits.
+The inconvenience usually results in tests that don’t work everywhere, or
worse, no tests at all.
This module aims to eliminate that problem by making it easy to do things
@@ -47,11 +42,6 @@ right.
%prep
%setup -q -n Directory-Scratch-%{version}
-# Remove bundled modules
-rm -r ./inc
-sed -i -e '/^inc\//d' MANIFEST
-# Module::Install::Authority not yet packaged
-sed -i -e "/^authority 'JROCKWAY';\$/d" Makefile.PL
%build
perl Makefile.PL INSTALLDIRS=vendor
@@ -59,18 +49,21 @@ make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name .packlist -exec rm -f {} +
%{_fixperms} %{buildroot}/*
%check
make test
%files
-%doc README Changes examples/
+%doc LICENSE CONTRIBUTING README Changes examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
+* Mon Jan 05 2015 Petr Šabata <contyk at redhat.com> - 0.16-1
+- 0.16 bump, fix problematic $VERSION declaration
+
* Fri Dec 05 2014 Petr Pisar <ppisar at redhat.com> - 0.15-1
- 0.15 bump
@@ -133,4 +126,3 @@ make test
* Wed Dec 10 2008 Chris Weyl <cweyl at alumni.drew.edu> 0.14-1
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.6)
-
diff --git a/sources b/sources
index e061ec2..e80f9cd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8d4ad115e1f2b3bfabb59267b8fec0fb Directory-Scratch-0.15.tar.gz
+52fe90b0c2d212cd07e89b4ce7268e45 Directory-Scratch-0.16.tar.gz
More information about the perl-devel
mailing list