From 0279463197da2865b2189d1b754f8f65e55730bb Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Wed, 23 Jul 2008 23:54:28 +0000 Subject: [PATCH] initial commit --- .cvsignore | 1 + import.log | 1 + perl-DBIx-Class-Schema-Loader.spec | 103 +++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 106 insertions(+) create mode 100644 import.log create mode 100644 perl-DBIx-Class-Schema-Loader.spec diff --git a/.cvsignore b/.cvsignore index e69de29..4ee1198 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +DBIx-Class-Schema-Loader-0.04005.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..3bd616e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-DBIx-Class-Schema-Loader-0_04005-1_fc9:HEAD:perl-DBIx-Class-Schema-Loader-0.04005-1.fc9.src.rpm:1216857250 diff --git a/perl-DBIx-Class-Schema-Loader.spec b/perl-DBIx-Class-Schema-Loader.spec new file mode 100644 index 0000000..3928f60 --- /dev/null +++ b/perl-DBIx-Class-Schema-Loader.spec @@ -0,0 +1,103 @@ +Name: perl-DBIx-Class-Schema-Loader +Version: 0.04005 +Release: 1%{?dist} +Summary: Dynamic definition of a DBIx::Class::Schema +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/DBIx-Class-Schema-Loader/ +Source0: http://www.cpan.org/modules/by-module/DBIx/DBIx-Class-Schema-Loader-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# core +BuildRequires: perl(Digest::MD5) >= 2.36 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) +BuildRequires: perl(Text::Balanced) + +# cpan +BuildRequires: perl(Carp::Clan) +BuildRequires: perl(Class::Accessor::Fast) >= 0.30 +BuildRequires: perl(Class::C3) >= 0.18 +BuildRequires: perl(Class::Data::Accessor) >= 0.03 +BuildRequires: perl(Class::Inspector) +BuildRequires: perl(Data::Dump) >= 1.06 +BuildRequires: perl(DBD::SQLite) >= 1.12 +BuildRequires: perl(DBI) >= 1.56 +BuildRequires: perl(DBIx::Class) >= 0.07006 +BuildRequires: perl(Lingua::EN::Inflect::Number) >= 1.1 +BuildRequires: perl(UNIVERSAL::require) >= 0.11 +# optional tests +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) + +# not automatically picked up +Requires: perl(Class::Accessor::Fast) >= 0.30 +Requires: perl(Class::Data::Accessor) >= 0.03 + +%description +DBIx::Class::Schema::Loader automates the definition of a +DBIx::Class::Schema by scanning database table definitions +and setting up the columns, primary keys, and relationships. + +%prep +%setup -q -n DBIx-Class-Schema-Loader-%{version} + +# make sure doc/tests don't generate provides +# note we first filter out the bits in _docdir... +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` +EOF + +%define __perl_provides %{_builddir}/DBIx-Class-Schema-Loader-%{version}/%{name}-prov +chmod +x %{__perl_provides} + +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` +EOF + +%define __perl_requires %{_builddir}/DBIx-Class-Schema-Loader-%{version}/%{name}-req +chmod +x %{__perl_requires} + +%build +echo n | %{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} + +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README t/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jun 02 2008 Chris Weyl 0.04005-1 +- update to 0.4005 +- filter _docdir requires/provides + +* Mon Mar 17 2008 Chris Weyl 0.04004-1 +- brush-up for review submission + +* Wed Oct 17 2007 Chris Weyl 0.04003-1 +- Specfile autogenerated by cpanspec 1.71. diff --git a/sources b/sources index e69de29..ebe43ad 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d9e112493df06800862b93bf46760c4f DBIx-Class-Schema-Loader-0.04005.tar.gz