File perl-SQL-Translator.spec of Package perl-SQL-Translator
#
# spec file for package perl-SQL-Translator
#
# Copyright (c) 2012 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/
#
Name: perl-SQL-Translator
%define cpan_name SQL-Translator
Summary: Manipulate structured data definitions (SQL and more)
License: GPL-2.0
Group: Development/Libraries/Perl
Version: 0.11010
Release: 0
Patch1: sqlite.patch
%{perl_requires}
Url: http://search.cpan.org/dist/SQL-Translator/
Source: http://www.cpan.org/authors/id/J/JR/JROBINSON/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
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::ShareDir) >= 1
BuildRequires: perl(IO::Scalar) >= 2.11
BuildRequires: perl(Moo) >= 0.009007
BuildRequires: perl(Parse::RecDescent) >= 1.962002
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(XML::Writer) >= 0.5
BuildRequires: perl(YAML) >= 0.66
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(IO::Scalar) >= 2.11
Requires: perl(Moo) >= 0.009007
Requires: perl(Parse::RecDescent) >= 1.962002
Requires: perl(XML::Writer) >= 0.5
Recommends: perl(GD)
Recommends: perl(Graph::Directed)
Recommends: perl(GraphViz)
Recommends: perl(Spreadsheet::ParseExcel) >= 0.41
Recommends: perl(Template) >= 2.2
Recommends: perl(Text::RecordParser) >= 0.02
Recommends: perl(XML::LibXML) >= 1.69
%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}
%patch1 -p1
%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
## fix for checking filelist
# auto directory is included in the perl package
EXP=$(echo %perl_vendorlib/auto | %{__sed} -e "s@/@\\\/@g")
%{__sed} -i -e "/%dir\ $EXP$/d" %{name}.files
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc AUTHORS BUGS Changes LICENSE README
%changelog