]>
Commit | Line | Data |
---|---|---|
2bf3d5ce | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir DBD | |
7 | %define pnam SQLite2 | |
e6437ca0 | 8 | Summary: DBD::SQLite2 - Self Contained RDBMS in a DBI Driver (sqlite 2.x) |
7b269968 | 9 | Summary(pl.UTF-8): DBD::SQlite2 - Kompletny RDBMS zawarty w sterowniku DBI (sqlite 2.x) |
2bf3d5ce | 10 | Name: perl-DBD-SQLite2 |
2e2ea32f MK |
11 | Version: 0.37 |
12 | Release: 1 | |
2bf3d5ce | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
2e2ea32f | 17 | # Source0-md5: f05f60d8a54f0024abb3b3e39861ee3d |
e6437ca0 | 18 | URL: http://search.cpan.org/dist/DBD-SQLite2/ |
2bf3d5ce | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-DBI | |
23 | %endif | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | DBD::SQLite2 is a DBI driver for SQLite database. SQLite is a public | |
28 | domain RDBMS database engine that you can find at | |
aca7e343 | 29 | <http://www.sqlite.org/>. |
b639477f | 30 | |
2bf3d5ce | 31 | Rather than ask you to install SQLite first, DBD::SQLite2 includes the |
32 | entire thing in the distribution. So in order to get a fast | |
33 | transaction capable RDBMS working for your perl project you simply | |
34 | have to install this module, and nothing else. | |
b639477f | 35 | |
e6437ca0 ER |
36 | This version uses older version of SQLite engine (2.x). To get a |
37 | newest one please use perl-DBD-SQLite. | |
2bf3d5ce | 38 | |
341edd66 | 39 | %description -l pl.UTF-8 |
2bf3d5ce | 40 | DBD::SQLite2 to sterownik DBI do baz danych SQLite. SQLite to silnik |
341edd66 | 41 | relacyjnych baz danych na licencji public domain. Można go znaleźć pod |
aca7e343 | 42 | adresem <http://www.sqlite.org/>. |
b639477f | 43 | |
341edd66 JR |
44 | DBD::SQLite2 zawiera w sobie cały silnik bazy danych. Dzięki temu aby |
45 | otrzymać działający RDBMS dostępny z poziomu Perla nie trzeba | |
46 | instalować żadnych innych pakietów. | |
b639477f | 47 | |
341edd66 JR |
48 | Ta wersja korzysta ze starszej wersji silnika SQLite (2.x). Aby użyć |
49 | nowszej wersji należy zainstalować pakiet perl-DBD-SQLite. | |
2bf3d5ce | 50 | |
51 | %prep | |
52 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
53 | ||
74be0501 | 54 | # not real test |
55 | mv t/ak-dbd.t{,est} | |
56 | ||
2bf3d5ce | 57 | %build |
74be0501 | 58 | %{__perl} Makefile.PL \ |
2bf3d5ce | 59 | INSTALLDIRS=vendor |
74be0501 | 60 | |
2bf3d5ce | 61 | %{__make} \ |
14a30d94 | 62 | CC="%{__cc}" \ |
74be0501 | 63 | OPTIMIZE="%{rpmcflags}" |
2bf3d5ce | 64 | |
65 | %{?with_tests:%{__make} test} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
e6437ca0 ER |
73 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/DBD/getsqlite.pl |
74 | ||
2bf3d5ce | 75 | %clean |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc Changes README | |
81 | %{perl_vendorarch}/DBD/SQLite2.pm | |
82 | %dir %{perl_vendorarch}/auto/DBD/SQLite2 | |
2bf3d5ce | 83 | %attr(755,root,root) %{perl_vendorarch}/auto/DBD/SQLite2/SQLite2.so |
84 | %{_mandir}/man3/DBD* |