]> git.pld-linux.org Git - packages/perl-Class-DBI-SQLite.git/blame - perl-Class-DBI-SQLite.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Class-DBI-SQLite.git] / perl-Class-DBI-SQLite.spec
CommitLineData
48e047f1 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
86b3f3a8 4#
395888c9 5%define pdir Class
6%define pnam DBI-SQLite
48e047f1 7Summary: Extension to Class::DBI for SQLite
4a66d969 8Summary(pl.UTF-8): Rozszerzenie Class::DBI dla SQLite
48e047f1 9Name: perl-Class-DBI-SQLite
026fcda2 10Version: 0.11
48e047f1 11Release: 1
aef65029 12# same as perl
13License: GPL v1+ or Artistic
48e047f1 14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
026fcda2 16# Source0-md5: 25e80b9d2f2d66e6fc51d487f0894802
6ab137bb 17URL: http://search.cpan.org/dist/Class-DBI-SQLite/
48e047f1 18%if %{with tests}
48e047f1 19BuildRequires: perl-Class-DBI >= 0.85
48e047f1 20BuildRequires: perl-DBD-SQLite >= 0.07
86b3f3a8
JB
21BuildRequires: perl-Ima-DBI >= 0.27
22BuildRequires: perl-SQL-Statement >= 1.004
48e047f1 23%endif
86b3f3a8
JB
24BuildRequires: perl-devel >= 1:5.8.0
25BuildRequires: rpm-perlprov >= 4.1-13
48e047f1 26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Class::DBI::SQLite is an extension to Class::DBI for DBD::SQLite,
31which allows you to populate auto incremented row id after insert.
32set_up_table method allows you to automate the setup of columns and
33primary key by using of SQLite PRAGMA statement (with SQL::Statement
86b3f3a8
JB
34module).
35
0b675505 36%description -l pl.UTF-8
86b3f3a8 37Class::DBI::SQLite to rozszerzenie Class::DBI dla DBD::SQLite,
0b675505
JR
38pozwalające wypełniać automatycznie zwiększany identyfikator wiersza
39po instrukcji INSERT. Metoda set_up_table pozwala zautomatyzować
40ustawianie kolumn i klucza głównego poprzez użycie instrukcji SQLite
41PRAGMA (przy użyciu modułu SQL::Statement).
48e047f1 42
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
45
46%build
47%{__perl} Makefile.PL \
48 INSTALLDIRS=vendor
49
50%{__make}
51%{?with_tests:%{__make} test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes
65%{perl_vendorlib}/Class/DBI/SQLite.pm
66%{_mandir}/man3/*
This page took 0.067576 seconds and 4 git commands to generate.