summaryrefslogtreecommitdiff
path: root/perl-Class-DBI-SQLite.spec
blob: 344aecb307c75a43cf73836db14ca3e18ae0b29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define		pdir	Class
%define		pnam	DBI-SQLite
Summary:	Extension to Class::DBI for SQLite
Summary(pl):	Rozszerzenie Class::DBI dla SQLite
Name:		perl-Class-DBI-SQLite
Version:	0.09
Release:	1
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5:	2c5d39332df11c8cc72aa9de6020ae61
%if %{with tests}
BuildRequires:	perl-Class-DBI >= 0.85
BuildRequires:	perl-DBD-SQLite >= 0.07
BuildRequires:	perl-Ima-DBI >= 0.27
BuildRequires:	perl-SQL-Statement >= 1.004
%endif
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Class::DBI::SQLite is an extension to Class::DBI for DBD::SQLite,
which allows you to populate auto incremented row id after insert.
set_up_table method allows you to automate the setup of columns and
primary key by using of SQLite PRAGMA statement (with SQL::Statement
module).

%description -l pl
Class::DBI::SQLite to rozszerzenie Class::DBI dla DBD::SQLite,
pozwalające wypełniać automatycznie zwiększany identyfikator wiersza
po instrukcji INSERT. Metoda set_up_table pozwala zautomatyzować
ustawianie kolumn i klucza głównego poprzez użycie instrukcji SQLite
PRAGMA (przy użyciu modułu SQL::Statement).

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor

%{__make}
%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes
%{perl_vendorlib}/Class/DBI/SQLite.pm
%{_mandir}/man3/*