public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-SQL-Translator] epel10.2: initial commit
@ 2026-08-07 12:47 Chris Weyl
  0 siblings, 0 replies; only message in thread
From: Chris Weyl @ 2026-08-07 12:47 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-SQL-Translator
Branch : epel10.2
Commit : 62fe8500822fa9d59228219907b2034353a73873
Author : Chris Weyl <cweyl@fedoraproject.org>
Date   : 2007-10-24T07:02:20+00:00
Stats  : +118/-0 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-SQL-Translator/c/62fe8500822fa9d59228219907b2034353a73873?branch=epel10.2

Log:
initial commit

---
diff --git a/.cvsignore b/.cvsignore
index e69de29..21ad8b1 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+SQL-Translator-0.08001.tar.gz

diff --git a/perl-SQL-Translator.spec b/perl-SQL-Translator.spec
new file mode 100644
index 0000000..32da439
--- /dev/null
+++ b/perl-SQL-Translator.spec
@@ -0,0 +1,116 @@
+Name:           perl-SQL-Translator
+Version:        0.08001
+Release:        1%{?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
+* Sun Oct 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 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 <cweyl@alumni.drew.edu> 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 12:47 [rpms/perl-SQL-Translator] epel10.2: initial commit Chris Weyl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox