>From f12b198e56ee20fc2ea8cd6526bbaba4ff1aa0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Tue, 3 Mar 2015 15:55:59 +0100 Subject: Import
--- .gitignore | 1 + perl-Test-PostgreSQL.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 perl-Test-PostgreSQL.spec 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 <ppi...@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 -- cgit v0.11.2 http://pkgs.fedoraproject.org/cgit/perl-Test-PostgreSQL.git/commit/?h=f22&id=f12b198e56ee20fc2ea8cd6526bbaba4ff1aa0b5 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org