perl-SQL-Translator/perl-SQL-Translator.spec

Name: perl-SQL-Translator
Summary: SQL DDL transformations and more
Version: 0.11007
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/SQL-Translator/
Description: SQL DDL transformations and more.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Jess Robinson <cpan@desert-island.me.uk>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name SQL-Translator

Summary: SQL DDL transformations and more
Name: perl-SQL-Translator
Version: 0.11007
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/SQL-Translator/

Source: http://search.cpan.org/CPAN/authors/id/J/JR/JROBINSON/SQL-Translator-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(Class::Base)
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
BuildRequires: perl(Class::MakeMethods)
BuildRequires: perl(DBI)
BuildRequires: perl(Digest::SHA1) >= 2
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::ShareDir) >= 1
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Dir)
BuildRequires: perl(IO::Scalar) >= 2.11
BuildRequires: perl(Parse::RecDescent) >= 1.962002
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.6
BuildRequires: perl(XML::Writer) >= 0.5
BuildRequires: perl(YAML) >= 0.66
BuildRequires: perl >= 5.005
Requires: perl(Carp::Clan)
Requires: perl(Class::Accessor::Fast)
Requires: perl(Class::Base)
Requires: perl(Class::Data::Inheritable) >= 0.02
Requires: perl(Class::MakeMethods)
Requires: perl(DBI)
Requires: perl(Digest::SHA1) >= 2
Requires: perl(File::ShareDir) >= 1
Requires: perl(File::Spec)
Requires: perl(IO::Dir)
Requires: perl(IO::Scalar) >= 2.11
Requires: perl(Parse::RecDescent) >= 1.962002
Requires: perl(Pod::Usage)
Requires: perl(Scalar::Util)
Requires: perl(XML::Writer) >= 0.5
Requires: perl >= 5.005

%filter_from_requires /^perl*/d
%filter_setup


%description
SQL DDL transformations and more.

%prep
%setup -n %{real_name}-%{version}
%{__cat} <<EOF >%{_tmppath}/%{name}-filter-requirements.sh
#!/bin/bash
%{__perl_requires} $* | grep -v '^perl(:)$'
EOF
%{__chmod} +x %{_tmppath}/%{name}-filter-requirements.sh
%define __perl_requires %{_tmppath}/%{name}-filter-requirements.sh

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" --skipdeps
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS BUGS Changes LICENSE MANIFEST MANIFEST.SKIP README
%doc %{_mandir}/man1/sqlt.1*
%doc %{_mandir}/man1/sqlt-diagram.1*
%doc %{_mandir}/man1/sqlt-diff.1*
%doc %{_mandir}/man1/sqlt-diff-old.1*
%doc %{_mandir}/man1/sqlt-dumper.1*
%doc %{_mandir}/man1/sqlt-graph.1*
%doc %{_mandir}/man3/SQL::Translator.3pm*
%doc %{_mandir}/man3/SQL::Translator::*.3pm*
%doc %{_mandir}/man3/Test::SQL::Translator.3pm*
%dir %{perl_vendorlib}/SQL/
%{perl_vendorlib}/SQL/Translator/
%{perl_vendorlib}/SQL/Translator.pm
%dir %{perl_vendorlib}/Test/
%dir %{perl_vendorlib}/Test/SQL/
%{perl_vendorlib}/Test/SQL/Translator.pm
%{perl_vendorlib}/auto/share/dist/SQL-Translator/
%{_bindir}/sqlt
%{_bindir}/sqlt-diagram
%{_bindir}/sqlt-diff
%{_bindir}/sqlt-diff-old
%{_bindir}/sqlt-dumper
%{_bindir}/sqlt-graph

%changelog
* Thu Feb 10 2011 Christoph Maser <cmaser@gmx.de> - 0.11007-1
- Updated to version 0.11007.

* Fri Oct 29 2010 Christoph Maser <cmaser@gmx.de> - 0.11006-1
- Updated to version 0.11006.

* Thu Oct 22 2009 Christoph Maser <cmr@financial.com> - 0.11003-1
- Updated to version 0.11003.

* Tue Sep  1 2009 Christoph Maser <cmr@financial.com> - 0.11002-1
- Updated to version 0.11002.

* Sat Aug 29 2009 Christoph Maser <cmr@financial.com> - 0.11001-1
- Updated to version 0.11001.

* Mon Jun 29 2009 Christoph Maser <cmr@financial.com> - 0.09007-1
- Updated to version 0.09007.

* Thu Jun 18 2009 Christoph Maser <cmr@financial.com> - 0.09006-1
- Updated to version 0.09006.

* Mon Mar 03 2008 Dag Wieers <dag@wieers.com> - 0.09000-1
- Updated to release 0.09000.

* Thu Dec 27 2007 Dag Wieers <dag@wieers.com> - 0.08001-2
- Filtered out wrong perl(:) dependency.

* Sat Nov 24 2007 Dag Wieers <dag@wieers.com> - 0.08001-1
- Initial package. (using DAR)