Initial import.

f38
Emmanuel Seyman 9 years ago
parent c13a95548c
commit 869be88ab7

1
.gitignore vendored

@ -0,0 +1 @@
/SQL-Tokenizer-0.24.tar.gz

@ -0,0 +1,64 @@
Name: perl-SQL-Tokenizer
Version: 0.24
Release: 3%{?dist}
Summary: Simple SQL tokenizer
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/SQL-Tokenizer/
Source0: http://www.cpan.org/authors/id/I/IZ/IZUT/SQL-Tokenizer-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
SQL::Tokenizer is a simple tokenizer for SQL queries. It does not claim to
be a parser or query verifier. It just creates sane tokens from a valid
SQL query.
%prep
%setup -q -n SQL-Tokenizer-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
# SQL-Tokenizer does not honor ExtUtils::MakeMaker's NO_PACKLIST
# Until this changes, we do things the old-fashioned way
# https://rt.cpan.org/Ticket/Display.html?id=107930
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/SQL*
%{_mandir}/man3/SQL*
%changelog
* Fri Oct 23 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 0.24-3
- Take into account review comments (#1274496)
* Thu Oct 22 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 0.24-2
- Clean up spec file
* Sat Oct 17 2015 Adam Williamson <awilliam@redhat.com> - 0.24-1
- initial package

@ -0,0 +1 @@
cdc77019c685e6ee569907506de2a5e0 SQL-Tokenizer-0.24.tar.gz
Loading…
Cancel
Save