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