[1497] | 1 | Name: perl-SQL-Statement
|
---|
| 2 | Version: 1.412
|
---|
| 3 | Release: 1%{?dist}
|
---|
| 4 | Vendor: bww bitwise works GmbH
|
---|
| 5 | Summary: SQL parsing and processing engine
|
---|
| 6 | Group: Development/Libraries
|
---|
| 7 | License: GPL+ or Artistic
|
---|
| 8 | URL: https://metacpan.org/release/SQL-Statement
|
---|
| 9 | Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/SQL-Statement-%{version}.tar.gz
|
---|
| 10 | BuildArch: noarch
|
---|
| 11 | # Build
|
---|
| 12 | BuildRequires: coreutils
|
---|
| 13 | BuildRequires: findutils
|
---|
| 14 | BuildRequires: make
|
---|
| 15 | #BuildRequires: perl-interpreter
|
---|
| 16 | BuildRequires: perl-generators
|
---|
| 17 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
| 18 | BuildRequires: perl(strict)
|
---|
| 19 | BuildRequires: perl(warnings)
|
---|
| 20 | BuildRequires: sed
|
---|
| 21 | # Runtime
|
---|
| 22 | BuildRequires: perl(base)
|
---|
| 23 | BuildRequires: perl(Carp)
|
---|
| 24 | BuildRequires: perl(Clone) >= 0.30
|
---|
| 25 | BuildRequires: perl(constant)
|
---|
| 26 | BuildRequires: perl(Data::Dumper)
|
---|
| 27 | BuildRequires: perl(DBI) >= 1.616
|
---|
| 28 | BuildRequires: perl(Encode)
|
---|
| 29 | BuildRequires: perl(Errno)
|
---|
| 30 | BuildRequires: perl(Exporter)
|
---|
| 31 | BuildRequires: perl(List::Util)
|
---|
| 32 | BuildRequires: perl(Math::Base::Convert)
|
---|
| 33 | BuildRequires: perl(Math::Trig)
|
---|
| 34 | BuildRequires: perl(Module::Runtime)
|
---|
| 35 | BuildRequires: perl(Params::Util) >= 1.00
|
---|
| 36 | BuildRequires: perl(Scalar::Util) >= 1.0
|
---|
| 37 | # XXX: BuildRequires: perl(SQL::UserDefs)
|
---|
| 38 | BuildRequires: perl(sort)
|
---|
| 39 | BuildRequires: perl(Text::Balanced)
|
---|
| 40 | BuildRequires: perl(Text::Soundex)
|
---|
| 41 | BuildRequires: perl(Time::HiRes)
|
---|
| 42 | BuildRequires: perl(vars)
|
---|
| 43 | # Tests only
|
---|
| 44 | #BuildRequires: perl(Cwd)
|
---|
| 45 | #BuildRequires: perl(File::Basename)
|
---|
| 46 | #BuildRequires: perl(File::Path)
|
---|
| 47 | #BuildRequires: perl(File::Spec)
|
---|
| 48 | #BuildRequires: perl(lib)
|
---|
| 49 | #BuildRequires: perl(Test::Deep)
|
---|
| 50 | #BuildRequires: perl(Test::More)
|
---|
| 51 | # Optional tests only
|
---|
| 52 | # DBD::CSV buildrequires SQL::Statement
|
---|
| 53 | %if 0%{!?perl_bootstrap:1}
|
---|
| 54 | #BuildRequires: perl(DBD::CSV) >= 0.30
|
---|
| 55 | %endif
|
---|
| 56 | BuildRequires: perl(DBD::DBM) >= 0.06
|
---|
| 57 | BuildRequires: perl(DBD::File) >= 0.40
|
---|
| 58 | BuildRequires: perl(DBD::SQLite)
|
---|
| 59 | BuildRequires: perl(MLDBM)
|
---|
| 60 | Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
---|
| 61 | Requires: perl(Clone) >= 0.30
|
---|
| 62 | Requires: perl(DBI) >= 1.616
|
---|
| 63 | Requires: perl(Math::Base::Convert)
|
---|
| 64 | Requires: perl(Params::Util) >= 1.00
|
---|
| 65 | Requires: perl(Scalar::Util) >= 1.0
|
---|
| 66 | # This module doesn't seem to exist...
|
---|
| 67 | # XXX: Requires: perl(SQL::UserDefs)
|
---|
| 68 | Requires: perl(Text::Soundex)
|
---|
| 69 |
|
---|
| 70 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Clone|Params::Util|Scalar::Util)\\)$
|
---|
| 71 |
|
---|
| 72 | %description
|
---|
| 73 | The SQL::Statement module implements a pure Perl SQL parsing and execution
|
---|
| 74 | engine. While it by no means implements full ANSI standard, it does support
|
---|
| 75 | many features including column and table aliases, built-in and user-defined
|
---|
| 76 | functions, implicit and explicit joins, complexly nested search conditions, and
|
---|
| 77 | other features.
|
---|
| 78 |
|
---|
| 79 | %prep
|
---|
| 80 | %setup -q -n SQL-Statement-%{version}
|
---|
| 81 | find -type f -exec chmod a-x {} +
|
---|
| 82 | sed -i -e 's/\r//' README
|
---|
| 83 |
|
---|
| 84 | %build
|
---|
| 85 | export SQL_STATEMENT_WARN_UPDATE=sure
|
---|
| 86 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
| 87 | make %{?_smp_mflags}
|
---|
| 88 | make manifypods
|
---|
| 89 |
|
---|
| 90 | %install
|
---|
| 91 | make pure_install DESTDIR=%{buildroot}
|
---|
| 92 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
---|
| 93 | chmod -R u+w %{buildroot}/*
|
---|
| 94 |
|
---|
| 95 | %check
|
---|
| 96 | #make test
|
---|
| 97 |
|
---|
| 98 | %files
|
---|
| 99 | %license ARTISTIC-1.0 GPL-1 GPL-2.0 LICENSE
|
---|
| 100 | %doc Changes README README.md
|
---|
| 101 | %{perl_vendorlib}/SQL/
|
---|
| 102 | %{_mandir}/man3/*.3pm*
|
---|
| 103 |
|
---|
| 104 | %changelog
|
---|
| 105 | * Fri Sep 28 2018 Elbert Pol <elbert.pol@gmail.com> 1.412-1
|
---|
| 106 | - First OS/2 rpm release
|
---|