8
0

Accepting request 36930 from devel:languages:perl

Copy from devel:languages:perl/perl-SQL-Statement based on submit request 36930 from user computersalat

OBS-URL: https://build.opensuse.org/request/show/36930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-SQL-Statement?expand=0&rev=8
This commit is contained in:
OBS User autobuild
2010-04-05 16:48:56 +00:00
committed by Git OBS Bridge
parent 6bfa3d6d9b
commit f6c2c05b21
4 changed files with 84 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package perl-SQL-Statement (Version 1.23)
# spec file for package perl-SQL-Statement (Version 1.25)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,30 +19,45 @@
Name: perl-SQL-Statement
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: SQL parsing and processing engine
Version: 1.23
Version: 1.25
Release: 1
License: GPLv2+
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/R/RE/REHSACK/SQL-Statement-%{version}.tar.gz
Url: http://search.cpan.org/dist/SQL-Statement/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: p_sqlst
Obsoletes: p_sqlst
Requires: perl = %{perl_version}
#Source: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/SQL-Statement-1.25.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: dos2unix
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Carp)
BuildRequires: perl(Clone) >= 0.30
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DBD::File) >= 0.37
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Scalar::Util) >= 1.0
# for testsuite
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
BuildRequires: perl(DBD::CSV)
#
Requires: perl = %{perl_version}
Requires: perl(Carp)
Requires: perl(Clone) >= 0.30
Requires: perl(Data::Dumper)
Requires: perl(DBD::File) >= 0.37
Requires: perl(Params::Util) >= 1.00
Requires: perl(Scalar::Util) >= 1.0
#
Recommends: perl(DBD::CSV)
# rpmlint: self-obsoletion p_sqlst obsoletes p_sqlst
#Provides: p_sqlst
#Obsoletes: p_sqlst
%description
The SQL::Statement module implements a pure Perl SQL parsing and execution
@@ -52,23 +67,28 @@ functions, implicit and explicit joins, complexly nested search conditions,
and other features.
%prep
%setup -q -n SQL-Statement-%{version}
%setup -q -n %{cpan_name}-%{version}
# rpmlint wrong-file-end-of-line-encoding
dos2unix README
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make %{?_smp_mflags}
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}
chmod a-x Changes Todo
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
make test
# fix file perm
find $RPM_BUILD_ROOT -name "*.pm" -exec chmod 644 {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %name.files
%defattr(-,root,root,-)