source: spec/trunk/SPECS/perl-SQL-Statement.spec@ 1566

Last change on this file since 1566 was 1497, checked in by tellie, 7 years ago

spec: perl-SQL-Statement: Release version 1.412-1.

File size: 3.3 KB
Line 
1Name: perl-SQL-Statement
2Version: 1.412
3Release: 1%{?dist}
4Vendor: bww bitwise works GmbH
5Summary: SQL parsing and processing engine
6Group: Development/Libraries
7License: GPL+ or Artistic
8URL: https://metacpan.org/release/SQL-Statement
9Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/SQL-Statement-%{version}.tar.gz
10BuildArch: noarch
11# Build
12BuildRequires: coreutils
13BuildRequires: findutils
14BuildRequires: make
15#BuildRequires: perl-interpreter
16BuildRequires: perl-generators
17BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
18BuildRequires: perl(strict)
19BuildRequires: perl(warnings)
20BuildRequires: sed
21# Runtime
22BuildRequires: perl(base)
23BuildRequires: perl(Carp)
24BuildRequires: perl(Clone) >= 0.30
25BuildRequires: perl(constant)
26BuildRequires: perl(Data::Dumper)
27BuildRequires: perl(DBI) >= 1.616
28BuildRequires: perl(Encode)
29BuildRequires: perl(Errno)
30BuildRequires: perl(Exporter)
31BuildRequires: perl(List::Util)
32BuildRequires: perl(Math::Base::Convert)
33BuildRequires: perl(Math::Trig)
34BuildRequires: perl(Module::Runtime)
35BuildRequires: perl(Params::Util) >= 1.00
36BuildRequires: perl(Scalar::Util) >= 1.0
37# XXX: BuildRequires: perl(SQL::UserDefs)
38BuildRequires: perl(sort)
39BuildRequires: perl(Text::Balanced)
40BuildRequires: perl(Text::Soundex)
41BuildRequires: perl(Time::HiRes)
42BuildRequires: 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
56BuildRequires: perl(DBD::DBM) >= 0.06
57BuildRequires: perl(DBD::File) >= 0.40
58BuildRequires: perl(DBD::SQLite)
59BuildRequires: perl(MLDBM)
60Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
61Requires: perl(Clone) >= 0.30
62Requires: perl(DBI) >= 1.616
63Requires: perl(Math::Base::Convert)
64Requires: perl(Params::Util) >= 1.00
65Requires: perl(Scalar::Util) >= 1.0
66# This module doesn't seem to exist...
67# XXX: Requires: perl(SQL::UserDefs)
68Requires: perl(Text::Soundex)
69
70%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Clone|Params::Util|Scalar::Util)\\)$
71
72%description
73The SQL::Statement module implements a pure Perl SQL parsing and execution
74engine. While it by no means implements full ANSI standard, it does support
75many features including column and table aliases, built-in and user-defined
76functions, implicit and explicit joins, complexly nested search conditions, and
77other features.
78
79%prep
80%setup -q -n SQL-Statement-%{version}
81find -type f -exec chmod a-x {} +
82sed -i -e 's/\r//' README
83
84%build
85export SQL_STATEMENT_WARN_UPDATE=sure
86perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
87make %{?_smp_mflags}
88make manifypods
89
90%install
91make pure_install DESTDIR=%{buildroot}
92find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
93chmod -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
Note: See TracBrowser for help on using the repository browser.