2010-10-13 19:59:41 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-SQL-Translator (Version 0.11006)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-SQL-Translator
|
|
|
|
%define cpan_name SQL-Translator
|
|
|
|
Summary: Manipulate structured data definitions (SQL and more)
|
|
|
|
Version: 0.11006
|
|
|
|
Release: 1
|
|
|
|
License: GPL+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/SQL-Translator/
|
|
|
|
#Source: http://www.cpan.org/authors/id/R/RI/RIBASUSHI/SQL-Translator-%{version}.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2010-10-14 22:32:40 +00:00
|
|
|
Patch1: sqlite.patch
|
2010-10-13 19:59:41 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
|
|
|
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(File::Basename)
|
|
|
|
BuildRequires: perl(File::ShareDir) >= 1
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(GD)
|
|
|
|
BuildRequires: perl(Graph::Directed)
|
|
|
|
BuildRequires: perl(GraphViz)
|
|
|
|
BuildRequires: perl(IO::Dir)
|
|
|
|
BuildRequires: perl(IO::Scalar) >= 2.11
|
|
|
|
BuildRequires: perl(Parse::RecDescent) >= 1.962002
|
|
|
|
BuildRequires: perl(Spreadsheet::ParseExcel) >= 0.41
|
|
|
|
BuildRequires: perl(Template) >= 2.2
|
|
|
|
BuildRequires: perl(Test::Differences)
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
BuildRequires: perl(Text::ParseWords)
|
|
|
|
BuildRequires: perl(Text::RecordParser) >= 0.02
|
|
|
|
BuildRequires: perl(XML::LibXML) >= 1.69
|
|
|
|
BuildRequires: perl(XML::Writer) >= 0.5
|
|
|
|
BuildRequires: perl(YAML) >= 0.66
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
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::Basename)
|
|
|
|
Requires: perl(File::ShareDir) >= 1
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
Requires: perl(GD)
|
|
|
|
Requires: perl(Graph::Directed)
|
|
|
|
Requires: perl(GraphViz)
|
|
|
|
Requires: perl(IO::Dir)
|
|
|
|
Requires: perl(IO::Scalar) >= 2.11
|
|
|
|
Requires: perl(Parse::RecDescent) >= 1.962002
|
|
|
|
Requires: perl(Spreadsheet::ParseExcel) >= 0.41
|
|
|
|
Requires: perl(Template) >= 2.2
|
|
|
|
Requires: perl(Test::Differences)
|
|
|
|
Requires: perl(Test::Exception)
|
|
|
|
Requires: perl(Text::ParseWords)
|
|
|
|
Requires: perl(Text::RecordParser) >= 0.02
|
|
|
|
Requires: perl(XML::LibXML) >= 1.69
|
|
|
|
Requires: perl(XML::Writer) >= 0.5
|
|
|
|
Requires: perl(YAML) >= 0.66
|
|
|
|
|
|
|
|
%description
|
|
|
|
This documentation covers the API for SQL::Translator. For a more general
|
|
|
|
discussion of how to use the modules and scripts, please see
|
|
|
|
SQL::Translator::Manual.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-10-14 22:32:40 +00:00
|
|
|
%patch1 -p1
|
2010-10-13 19:59:41 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
# do not perl_process_packlist (noarch)
|
|
|
|
# remove .packlist file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
# remove perllocal.pod file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS BUGS Changes LICENSE README
|
|
|
|
|
|
|
|
%changelog
|