%define cpan_name SQL-Abstract-Limit Name: perl-%cpan_name Version: 0.12 Release: 1 Provides: %cpan_name Requires: perl = %{perl_version} perl-DBI perl-SQL-Abstract Group: Development/Libraries/Perl License: Artistic URL: http://search.cpan.org/dist/SQL-Abstract-Limit/ Summary: A portable LIMIT emulation for SQL::Abstract Source: %cpan_name-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl-DBI perl-SQL-Abstract perl-Test-Exception perl-Test-Pod perl-Test-Pod-Coverage %description Portability layer for LIMIT emulation. %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/Abstract %{perl_vendorarch}/auto/SQL/Abstract /var/adm/perl-modules/%{name} %doc Changes MANIFEST README %changelog -n %{name} * Sun Oct 26 2008 - gerrit.beine@gmx.de - first release 0.12