[perl-Test-PostgreSQL] Import
Petr Pisar
ppisar at fedoraproject.org
Tue Mar 3 14:56:07 UTC 2015
commit f12b198e56ee20fc2ea8cd6526bbaba4ff1aa0b5
Author: Petr Písař <ppisar at redhat.com>
Date: Tue Mar 3 15:55:59 2015 +0100
Import
.gitignore | 1 +
perl-Test-PostgreSQL.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 72 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f6c0dff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-PostgreSQL-1.05.tar.gz
diff --git a/perl-Test-PostgreSQL.spec b/perl-Test-PostgreSQL.spec
new file mode 100644
index 0000000..a3ac887
--- /dev/null
+++ b/perl-Test-PostgreSQL.spec
@@ -0,0 +1,70 @@
+Name: perl-Test-PostgreSQL
+Version: 1.05
+Release: 1%{?dist}
+Summary: PostgreSQL runner for Perl tests
+# lib/Test/PostgreSQL.pm: Artistic 2.0
+# other files: GPL+ or Artistic
+# See CPAN RT#102481
+License: Artistic 2.0 and (GPL+ or Artistic)
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Test-PostgreSQL/
+Source0: http://www.cpan.org/authors/id/T/TJ/TJC/Test-PostgreSQL-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(inc::Module::Install)
+BuildRequires: perl(Module::Install::Metadata)
+BuildRequires: perl(Module::Install::WriteAll)
+BuildRequires: perl(strict)
+# Run-time:
+BuildRequires: perl(Class::Accessor::Lite)
+BuildRequires: perl(Cwd)
+# The DBD::Pg is used via DBI->connect() first argument
+BuildRequires: perl(DBD::Pg)
+BuildRequires: perl(DBI)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(POSIX)
+BuildRequires: perl(Time::HiRes)
+BuildRequires: perl(warnings)
+# initdb and postmaster tools are used
+BuildRequires: postgresql-server
+# Tests:
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::SharedFork) >= 0.06
+# Optional tests:
+BuildRequires: perl(Test::Pod) >= 1.14
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+# The DBD::Pg is used via DBI->connect() first argument
+Requires: perl(DBD::Pg)
+# initdb and postmaster tools are used
+Requires: postgresql-server
+
+%description
+The Test::PostgreSQL Perl module automatically setups a PostgreSQL instance in
+a temporary directory, and destroys it when the Perl script exits.
+
+%prep
+%setup -q -n Test-PostgreSQL-%{version}
+# Remove bundled modules
+rm -r ./inc
+sed -i -e '/^inc\//d' MANIFEST
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Mar 03 2015 Petr Pisar <ppisar at redhat.com> 1.05-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..adbb15f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f9b4a4f4fa923cdeece3a79b402ddb70 Test-PostgreSQL-1.05.tar.gz
More information about the scm-commits
mailing list