%define module DBIx-DBSchema %define name perl-%{module} %define version 0.31 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Summary: Database-independent schema objects Source: http://search.cpan.org/CPAN/authors/id/I/IV/IVAN/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl-DBI BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description DBIx::DBSchema objects are collections of DBIx::DBSchema::Table objects and represent a database schema. This module implements an OO-interface to database schemas. Using this module, you can create a database schema with an OO Perl interface. You can read the schema from an existing database. You can save the schema to disk and restore it a different process. Most importantly, DBIx::DBSchema can write SQL CREATE statements statements for different databases from a single source. Currently supported databases are MySQL and PostgreSQL. Sybase support is partially implemented. DBIx::DBSchema will attempt to use generic SQL syntax for other databases. Assistance adding support for other databases is welcomed. See DBIx::DBSchema::DBD, "Driver Writer's Guide and Base Class". %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/DBIx %{_mandir}/man3/* %changelog * Sat Apr 01 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.31-1mdk - New release 0.31 * Fri Mar 10 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.30-1mdk - New release 0.30 * Mon Dec 05 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.28-1mdk - New release 0.28 - don't ship empty dirs - better summary - spec cleanup * Sat Oct 01 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.27-2mdk - BuildRequires fix * Sat Oct 01 2005 Michael Scherer <misc@mandriva.org> 0.27-1mdk - First mandriva package