commit 88dc05e460b32b4ac14beecdb9b24af1cb346b14
Author: Denis Fateyev <de...@fateyev.com>
Date:   Sat Oct 11 22:14:07 2014 +0600

    perl-DBIx-RunSQL: initial submission (#1141390)

 .gitignore            |    1 +
 perl-DBIx-RunSQL.spec |   82 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4f8a84f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DBIx-RunSQL-0.12.tar.gz
diff --git a/perl-DBIx-RunSQL.spec b/perl-DBIx-RunSQL.spec
new file mode 100644
index 0000000..ec0034a
--- /dev/null
+++ b/perl-DBIx-RunSQL.spec
@@ -0,0 +1,82 @@
+Name:           perl-DBIx-RunSQL
+Version:        0.12
+Release:        2%{?dist}
+Summary:        Run SQL commands from a file
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/DBIx-RunSQL/
+
+Source0:        
http://search.cpan.org/CPAN/authors/id/C/CO/CORION/DBIx-RunSQL-%{version}.tar.gz
+%{?el5:BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} 
-n)}
+BuildArch:      noarch
+
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
+
+# Run-time:
+BuildRequires:  perl(DBI)
+BuildRequires:  perl(base)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+
+# Testing
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(DBD::SQLite)
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Slurp)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Pod::Readme)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(warnings)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(Getopt::Long)
+Requires:       perl(Pod::Usage)
+
+
+%description
+This module abstracts away the "run these SQL statements to set up
+a database" into a module. It also abstracts away the reading of
+SQL from a file and allows for various command line parameters
+to be passed in.
+
+
+%prep
+%setup -q -n DBIx-RunSQL-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+%if 0%{?el5}
+rm -rf $RPM_BUILD_ROOT
+%endif
+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
+
+%if 0%{?el5}
+%clean
+rm -rf $RPM_BUILD_ROOT
+%endif
+
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Tue Oct 07 2014 Denis Fateyev <de...@fateyev.com> - 0.12-2
+- Small spec improvements
+
+* Fri Sep 12 2014 Denis Fateyev <de...@fateyev.com> - 0.12-1
+- Initial release
diff --git a/sources b/sources
index e69de29..ca5401c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1fd98d555a36e85f7403f342a41b0282  DBIx-RunSQL-0.12.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to