]>
Commit | Line | Data |
---|---|---|
c761b0b7 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
917bb11b | 4 | # |
76593924 | 5 | Summary: CDB_File - Perl extension for access to cdb databases |
e1e13796 | 6 | Summary(pl.UTF-8): CDB_File - rozszerzenie Perla umożliwiające dostęp do baz cdb |
5e5d212a | 7 | Name: perl-CDB_File |
6427dfa4 | 8 | Version: 0.97 |
269d62d8 | 9 | Release: 12 |
76593924 | 10 | # same as perl |
11 | License: GPL v1+ or Artistic | |
5e5d212a | 12 | Group: Development/Languages/Perl |
269fa45f | 13 | Source0: http://www.cpan.org/modules/by-module/CDB_File/CDB_File-%{version}.tar.gz |
6427dfa4 | 14 | # Source0-md5: 22fd84f6b2176528001835eae706e66d |
917bb11b | 15 | URL: http://search.cpan.org/dist/CDB_File/ |
235adac3 | 16 | BuildRequires: perl-devel >= 1:5.8.0 |
2db6f964 | 17 | BuildRequires: rpm-perlprov >= 4.1-13 |
4a50630c | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5e5d212a | 19 | |
20 | %description | |
76593924 | 21 | CDB_File is a module which provides a Perl interface to Dan Berstein's |
22 | cdb package. cdb is a fast, reliable, lightweight package for creating | |
23 | and reading constant databases. | |
5e5d212a | 24 | |
f840b84e JR |
25 | %description -l pl.UTF-8 |
26 | CDB_File jest modułem stanowiącym interfejs perlowy do pakietu cdb | |
76593924 | 27 | Dana Bersteina. cdb jest szybkim, niezawodnym, lekkim pakietem do |
f840b84e | 28 | odczytu i tworzenia stałych baz danych. |
5e5d212a | 29 | |
30 | %prep | |
31 | %setup -q -n CDB_File-%{version} | |
32 | ||
33 | %build | |
2db6f964 | 34 | %{__perl} Makefile.PL \ |
24bb6d7f | 35 | INSTALLDIRS=vendor |
c761b0b7 | 36 | %{__make} \ |
8e123aa0 | 37 | CC="%{__cc}" \ |
c761b0b7 | 38 | OPTIMIZE="%{rpmcflags}" |
39 | ||
40 | %{?with_tests: %{__make} test} | |
5e5d212a | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
5e5d212a | 44 | |
c761b0b7 | 45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
5e5d212a | 47 | |
5e5d212a | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
b6a083d0 | 53 | %doc README ACKNOWLEDGE CHANGES |
2db6f964 | 54 | %{perl_vendorarch}/CDB_File.pm |
55 | %dir %{perl_vendorarch}/auto/CDB_File | |
2db6f964 | 56 | %attr(755,root,root) %{perl_vendorarch}/auto/CDB_File/CDB_File.so |
5e5d212a | 57 | %{_mandir}/man3/* |