]>
Commit | Line | Data |
---|---|---|
31e73cd9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
ceb60edc | 5 | %include /usr/lib/rpm/macros.perl |
fc31e86c | 6 | %define pdir DB_File |
7 | %define pnam DB_File | |
7ba6502b | 8 | Summary: DB_File allows to manage a simple ASCII database |
42fd7c4d | 9 | Summary(pl.UTF-8): DB_File pozwala na korzystanie z prostej, tekstowej bazy danych |
ceb60edc | 10 | Name: perl-DB_File |
7df71bef | 11 | Version: 1.814 |
06676fee | 12 | Release: 2 |
f738e29b | 13 | # same as perl |
14 | License: GPL or Artistic | |
ceb60edc | 15 | Group: Development/Languages/Perl |
812dc1e7 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz |
7df71bef | 17 | # Source0-md5: 5ae102fe172f2aaf771a8d9cae23ca3a |
b68728d0 | 18 | Patch0: %{name}-rpm-automation.patch |
cd93ca57 | 19 | BuildRequires: db-devel |
31e73cd9 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
b8125d38 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
ceb60edc | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
146735dc | 25 | DB_File is a module which allows Perl programs to make use of the |
26 | facilities provided by Berkeley DB version 1. | |
ceb60edc | 27 | |
42fd7c4d JR |
28 | %description -l pl.UTF-8 |
29 | DB_File jest modułem, który pozwala programom w Perlu na korzystanie | |
30 | z udogodnień, dostarczanych przez Berkeley DB w wersji 1. | |
ceb60edc | 31 | |
32 | %prep | |
cf3e26a7 | 33 | %setup -q -n %{pnam}-%{version} |
b68728d0 | 34 | %patch0 -p1 |
ceb60edc | 35 | |
36 | %build | |
8608adff | 37 | %{__perl} -pi -e "s/INSTALLDIRS => 'perl',//" Makefile.PL |
b8125d38 | 38 | %{__perl} Makefile.PL \ |
46ae606c | 39 | INSTALLDIRS=vendor |
31e73cd9 JB |
40 | %{__make} \ |
41 | OPTIMIZE="%{rpmcflags}" | |
42 | ||
43 | %{?with_tests:%{__make} test} | |
ceb60edc | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
cd93ca57 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
0ca5cfa5 | 50 | |
ceb60edc | 51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
ec10bcd4 | 56 | %doc Changes README |
8608adff | 57 | %{perl_vendorarch}/DB_File.pm |
58 | %dir %{perl_vendorarch}/auto/DB_File | |
59 | %{perl_vendorarch}/auto/DB_File/DB_File.bs | |
60 | %{perl_vendorarch}/auto/DB_File/autosplit.ix | |
61 | %attr(755,root,root) %{perl_vendorarch}/auto/DB_File/DB_File.so | |
0ca5cfa5 | 62 | %{_mandir}/man3/* |