@ -1,18 +1,18 @@
Name: perl-SQL-Translator
Name: perl-SQL-Translator
Version: 0.09004
Version: 0.11001
Release: 3 %{?dist}
Release: 1 %{?dist}
Summary: Manipulate structured data definitions (SQL and more)
Summary: Manipulate structured data definitions (SQL and more)
# see, e.g., lib/SQL/Translator.pm
# see, e.g., lib/SQL/Translator.pm
License: GPLv2
License: GPLv2
Group: Development/Libraries
Group: Development/Libraries
URL: http://search.cpan.org/dist/SQL-Translator/
URL: http://search.cpan.org/dist/SQL-Translator/
Source0: http://www.cpan.org /authors/id/J/JR/JROBINSON/SQL-Translator-%{version}.tar.gz
Source0: http://search.cpan.org/CPAN /authors/id/J/JR/JROBINSON/SQL-Translator-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# not automatically detected
# not automatically detected
Requires: perl(Class::Accessor::Fast)
Requires: perl(Class::Accessor::Fast)
Requires: perl(Class::Data::Inheritable)
Requires: perl(Class::Data::Inheritable) >= 0.02
# core
# core
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Basename)
@ -28,26 +28,51 @@ BuildRequires: perl(Class::Base)
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
BuildRequires: perl(Class::MakeMethods)
BuildRequires: perl(Class::MakeMethods)
BuildRequires: perl(DBI)
BuildRequires: perl(DBI)
BuildRequires: perl(Digest::SHA1) >= 2.00
BuildRequires: perl(Digest::SHA1) >= 2
BuildRequires: perl(GD)
BuildRequires: perl(GD)
BuildRequires: perl(Graph::Directed)
BuildRequires: perl(Graph::Directed)
BuildRequires: perl(GraphViz)
BuildRequires: perl(GraphViz)
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(IO::Scalar) >= 2.11
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Parse::RecDescent) >= 1.94
BuildRequires: perl(Parse::RecDescent) >= 1.096
# >= 0.2602 avail in FC-5+
# >= 0.2602 avail in FC-5+
BuildRequires: perl(Spreadsheet::ParseExcel)
BuildRequires: perl(Spreadsheet::ParseExcel)
BuildRequires: perl(Template) >= 2.1
BuildRequires: perl(Template) >= 2.1
BuildRequires: perl(Text::RecordParser) >= 0.02
BuildRequires: perl(Text::RecordParser) >= 0.02
BuildRequires: perl(XML::Writer) >= 0.5
BuildRequires: perl(XML::Writer) >= 0.5
BuildRequires: perl(XML::XPath) >= 1.13
BuildRequires: perl(XML::XPath) >= 1.13
BuildRequires: perl(YAML) >= 0.39
BuildRequires: perl(YAML) >= 0.66
# test
# test
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(XML::Parser)
BuildRequires: perl(XML::Parser)
### auto-added reqs!
Requires: perl(Carp::Clan)
Requires: perl(Class::Base)
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.096
Requires: perl(Pod::Usage)
Requires: perl(XML::Writer) >= 0.5
### auto-added brs!
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(File::ShareDir) >= 1
BuildRequires: perl(CPAN)
%{?perl_default_filter:
%filter_from_requires /perl(:)/d
%perl_default_filter
}
%description
%description
SQL::Translator is a group of Perl modules that converts vendor-specific
SQL::Translator is a group of Perl modules that converts vendor-specific
SQL table definitions into other formats, such as other vendor-specific
SQL table definitions into other formats, such as other vendor-specific
@ -65,54 +90,61 @@ not the manipulation of data (INSERT, UPDATE, DELETE).
%setup -q -n SQL-Translator-%{version}
%setup -q -n SQL-Translator-%{version}
find . -type f -exec chmod -c -x {} +
find . -type f -exec chmod -c -x {} +
perl -pi -e 's|^#!/usr/local/bin/perl|#!/usr/bin/perl|' t/*.t
perl -pi -e 's|^#!/usr/local/bin/perl|#!%{__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
%build
%{__perl} Build.PL installdirs=vendor
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
./Build
make %{?_smp_mflags}
%install
%install
rm -rf %{buildroot}
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} +
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%{_fixperms} %{buildroot}/*
%check
%check
./Build test
make test
%clean
%clean
rm -rf %{buildroot}
rm -rf %{buildroot}
%files
%files
%defattr(-,root,root,-)
%defattr(-,root,root,-)
%doc AUTHORS BUGS Changes LICENSE README images / t/
%doc AUTHORS BUGS Changes LICENSE README share / t/
%{_bindir}/*
%{_bindir}/*
%{perl_vendorlib}/*
%{perl_vendorlib}/*
%{_mandir}/man[13]/*
%{_mandir}/man[13]/*
%changelog
%changelog
* Mon Aug 24 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.11001-1
- auto-update to 0.11001 (by cpan-spec-update 0.01)
- added a new br on perl(Carp::Clan) (version 0)
- altered br on perl(Digest::SHA1) (2.00 => 2)
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
- added a new br on perl(File::ShareDir) (version 1)
- altered br on perl(IO::Scalar) (0 => 2.11)
- altered br on perl(Parse::RecDescent) (1.94 => 1.096)
- altered br on perl(YAML) (0.39 => 0.66)
- added a new br on CPAN (inc::Module::AutoInstall found)
- added a new req on perl(Carp::Clan) (version 0)
- added a new req on perl(Class::Base) (version 0)
- altered req on perl(Class::Data::Inheritable) (0 => 0.02)
- added a new req on perl(Class::MakeMethods) (version 0)
- added a new req on perl(DBI) (version 0)
- added a new req on perl(Digest::SHA1) (version 2)
- added a new req on perl(File::ShareDir) (version 1)
- added a new req on perl(File::Spec) (version 0)
- added a new req on perl(IO::Dir) (version 0)
- added a new req on perl(IO::Scalar) (version 2.11)
- added a new req on perl(Parse::RecDescent) (version 1.096)
- added a new req on perl(Pod::Usage) (version 0)
- added a new req on perl(XML::Writer) (version 0.5)
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09004-3
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09004-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild