You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-DBIx-Class-Schema-Loader/perl-DBIx-Class-Schema-Load...

134 lines
4.4 KiB

17 years ago
Name: perl-DBIx-Class-Schema-Loader
Version: 0.04006
Release: 4%{?dist}
17 years ago
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://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/DBIx-Class-Schema-Loader-%{version}.tar.gz
# Broken Module-Install, replace with Module-Install-0.91
Patch0: DBIx-Class-Schema-Loader-0.04006.diff
17 years ago
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) >= 6.42
17 years ago
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Text::Balanced)
BuildRequires: perl(YAML::Tiny), perl(File::Remove)
17 years ago
# cpan
BuildRequires: perl(Carp::Clan)
17 years ago
BuildRequires: perl(Class::Accessor::Fast) >= 0.30
BuildRequires: perl(Class::C3) >= 0.18
BuildRequires: perl(Class::Data::Accessor) >= 0.03
BuildRequires: perl(Class::Inspector)
17 years ago
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
# Just to be safe
Requires: perl(DBIX::Class)
17 years ago
%description
DBIx::Class::Schema::Loader automates the definition of a
DBIx::Class::Schema by scanning database table definitions
17 years ago
and setting up the columns, primary keys, and relationships.
%prep
%setup -q -n DBIx-Class-Schema-Loader-%{version}
%patch0 -p1
17 years ago
# 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
%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps
17 years ago
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} +
17 years ago
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}/DBIx/Class/*
17 years ago
%{_mandir}/man3/*
%changelog
* Wed Aug 05 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.04006-4
- Fix mass rebuild breakdown:
Replace bundled Module-Install with Module-Install-0.91.
Add --skipdeps.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04006-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Jun 26 2009 Tom "spot" Callaway <tcallawa@redhat.com> 0.04006-2
- fix duplicate directory ownership (perl-DBIx-Class owns %{perl_vendorlib}/DBIx/Class/)
* Wed Jun 03 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.04006-1
- auto-update to 0.04006 (by cpan-spec-update 0.01)
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
- altered br on perl(Test::More) (0 => 0.47)
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04005-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
17 years ago
* Wed Jul 23 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.04005-2
- bump
17 years ago
* Mon Jun 02 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.04005-1
- update to 0.4005
- filter _docdir requires/provides
* Mon Mar 17 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.04004-1
- brush-up for review submission
* Wed Oct 17 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.04003-1
- Specfile autogenerated by cpanspec 1.71.