From 9e51121a6a17e355a89068d6701019f0370449f5 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Oct 24 2007 07:05:38 +0000 Subject: pseudo-branch of perl-SQL-Translator to F-7 --- diff --git a/perl-SQL-Translator.spec b/perl-SQL-Translator.spec new file mode 100644 index 0000000..5ea1d49 --- /dev/null +++ b/perl-SQL-Translator.spec @@ -0,0 +1,119 @@ +Name: perl-SQL-Translator +Version: 0.08001 +Release: 2%{?dist} +Summary: Manipulate structured data definitions (SQL and more) +License: GPLv2 +Group: Development/Libraries +URL: http://search.cpan.org/dist/SQL-Translator/ +Source0: http://www.cpan.org/authors/id/J/JR/JROBINSON/SQL-Translator-%{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(File::Basename) +#BuildRequires: perl(File::Spec) +#BuildRequires: perl(IO::Dir) +#BuildRequires: perl(IO::File) +#BuildRequires: perl(Pod::Usage) +BuildRequires: perl(Test::More) >= 0.6 +#BuildRequires: perl(Text::ParseWords) +# cpan +BuildRequires: perl(Class::Base) +BuildRequires: perl(Class::Data::Inheritable) >= 0.02 +BuildRequires: perl(Class::MakeMethods) +BuildRequires: perl(GD) +BuildRequires: perl(GraphViz) +BuildRequires: perl(IO::Scalar) +BuildRequires: perl(Log::Log4perl) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Parse::RecDescent) >= 1.94 +# >= 0.2602 avail in FC-5+ +BuildRequires: perl(Spreadsheet::ParseExcel) +BuildRequires: perl(Template) >= 2.1 +BuildRequires: perl(Text::RecordParser) >= 0.02 +BuildRequires: perl(XML::Writer) >= 0.5 +BuildRequires: perl(XML::XPath) >= 1.13 +BuildRequires: perl(YAML) >= 0.39 +# test +BuildRequires: perl(Test::Differences) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(XML::Parser) + +%description +SQL::Translator is a group of Perl modules that converts vendor-specific +SQL table definitions into other formats, such as other vendor-specific +SQL, ER diagrams, documentation (POD and HTML), XML, and Class::DBI +classes. The main focus of SQL::Translator is SQL, but parsers exist +for other structured data formats, including Excel spreadsheets and +arbitrarily delimited text files. Through the separation of the code into +parsers and producers with an object model in between, it’s possible to +combine any parser with any producer, to plug in custom parsers or +producers, or to manipulate the parsed data via the built-in object model. +Presently only the definition parts of SQL are handled (CREATE, ALTER), +not the manipulation of data (INSERT, UPDATE, DELETE). + +%prep +%setup -q -n SQL-Translator-%{version} + +find . -type f -exec chmod -c -x {} + +perl -pi -e 's|^#!/usr/local/bin/perl|#!/usr/bin/perl|' t/*.t + +# Filter unwanted Provides: +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} $* |\ + sed -e '/perl(Producer::BaseTest)/d' +EOF + +%define __perl_provides %{_builddir}/SQL-Translator-%{version}/%{name}-prov +chmod +x %{__perl_provides} + +# Filter unwanted Requires: +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} $* |\ + sed -e '/perl(:)/d' +EOF + +%define __perl_requires %{_builddir}/SQL-Translator-%{version}/%{name}-req +chmod +x %{__perl_requires} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf %{buildroot} + +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS BUGS Changes LICENSE README images/ t/ +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man[13]/* + +%changelog +* Wed Oct 24 2007 Chris Weyl 0.08001-2 +- bump + +* Sun Oct 14 2007 Chris Weyl 0.08001-1 +- updated to 0.08001 +- update license tag +- nix errant perl(Producer::BaseTest) provides +- make description useful :) +- we now skip Template::Toolkit tests correctly, so stop disabling them + +* Mon May 14 2007 Chris Weyl 0.08-1 +- Specfile autogenerated by cpanspec 1.71. diff --git a/sources b/sources index e69de29..a95f126 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +496269e1d96388660a5da25b862356d8 SQL-Translator-0.08001.tar.gz