[perl-Test-Dir] Import

Petr Pisar ppisar at fedoraproject.org
Fri May 4 12:39:10 UTC 2012


commit 72491301e7cd52d4105070071e1e766982e145c5
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri May 4 14:38:44 2012 +0200

    Import

 .gitignore         |    1 +
 perl-Test-Dir.spec |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..146aa59 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-Dir-1.014.tar.gz
diff --git a/perl-Test-Dir.spec b/perl-Test-Dir.spec
new file mode 100644
index 0000000..429d611
--- /dev/null
+++ b/perl-Test-Dir.spec
@@ -0,0 +1,54 @@
+Name:           perl-Test-Dir
+Version:        1.014
+Release:        1%{?dist}
+Summary:        Some simple tests on directories and folders
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Test-Dir/
+Source0:        http://www.cpan.org/authors/id/M/MT/MTHURN/Test-Dir-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(inc::Module::Install)
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Test::Builder)
+# Tests:
+BuildRequires:  perl(File::Path) >= 2.07
+BuildRequires:  perl(Test::Builder::Tester)
+BuildRequires:  perl(Test::More)
+# Optional tests:
+BuildRequires:  perl(Pod::Coverage) >= 0.18
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This modules provides a collection of test utilities for directory and folder
+attributes. Use it in combination with Test::More in your test programs.
+
+%prep
+%setup -q -n Test-Dir-%{version}
+rm -r inc
+sed -i -e '/^inc\// d' MANIFEST
+find -type f -exec chmod -x {} +
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Apr 26 2012 Petr Pisar <ppisar at redhat.com> 1.014-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..85ecb35 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8186affbc9aa841916a1f64c84b19fbd  Test-Dir-1.014.tar.gz


More information about the scm-commits mailing list