8
0
Gerrit Beine
2008-12-11 13:03:56 +00:00
committed by Git OBS Bridge
commit 2514817dc4
4 changed files with 75 additions and 0 deletions

48
perl-SQL-Abstract.spec Normal file
View File

@@ -0,0 +1,48 @@
%define cpan_name SQL-Abstract
Name: perl-%cpan_name
Version: 1.24
Release: 1
Provides: %cpan_name
Requires: perl = %{perl_version}
Group: Development/Libraries/Perl
License: Artistic
URL: http://search.cpan.org/dist/SQL-Abstract/
Summary: Generate SQL from Perl data structures
Source: %cpan_name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module was inspired by the excellent DBIx::Abstract. However, in using
that module I found that what I really wanted to do was generate SQL, but
still retain complete control over my statement handles and use the DBI
interface. So, I set out to create an abstract SQL generation module.
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%{perl_vendorlib}/SQL
%{perl_vendorarch}/auto/SQL
/var/adm/perl-modules/%{name}
%doc Changes MANIFEST README
%changelog -n %{name}
* Sun Oct 26 2008 - gerrit.beine@gmx.de
- first release 1.24