From 869be88ab7ee80921b62d19eee93e6c3ecb79f62 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Mon, 26 Oct 2015 00:39:20 +0100 Subject: [PATCH] Initial import. --- .gitignore | 1 + perl-SQL-Tokenizer.spec | 64 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 perl-SQL-Tokenizer.spec diff --git a/.gitignore b/.gitignore index e69de29..4cafcf2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/SQL-Tokenizer-0.24.tar.gz diff --git a/perl-SQL-Tokenizer.spec b/perl-SQL-Tokenizer.spec new file mode 100644 index 0000000..0f5fcf9 --- /dev/null +++ b/perl-SQL-Tokenizer.spec @@ -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 - 0.24-3 +- Take into account review comments (#1274496) + +* Thu Oct 22 2015 Emmanuel Seyman - 0.24-2 +- Clean up spec file + +* Sat Oct 17 2015 Adam Williamson - 0.24-1 +- initial package diff --git a/sources b/sources index e69de29..b280dde 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cdc77019c685e6ee569907506de2a5e0 SQL-Tokenizer-0.24.tar.gz