%define module SQLite-Work %define name perl-%{module} %define version 0.04 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: A Perl module to report on and update an SQLite database License: GPL or Artistic Group: Development/Perl Source0: http://search.cpan.org/CPAN/authors/id/R/RU/RUBYKAT/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: perl-DBD-SQLite BuildRequires: perl-Getopt-ArgvFile BuildRequires: perl-devel BuildRequires: perl-Module-Build %description This generates HTML (and non-HTML) reports from an SQLite database, taking care of the query-building and the report formatting. This also has methods for adding and updating the database. The SQLite::Work::CGI module has extra methods which deal with CGI using the CGI module; the included "show.cgi" and "edit.cgi" are demonstration CGI scripts which use the SQLite::Work::CGI module. The sqlreport script uses SQLite::Work to generate reports from the command-line. %prep %setup -q -n %{module}-%{version} %build %__perl Build.PL installdirs=vendor ./Build %check ./Build test %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=%{buildroot} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Changes README TODO *.cgi %{perl_vendorlib}/SQLite/* %{_mandir}/*/* %{_bindir}/* %changelog * Thu Feb 23 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.04-2mdk - Fix BuildRequires - make rpmbuildupdate friendly * Fri Feb 17 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.04-1mdk - Initial Mandriva release.