3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: DB_File allows to manage a simple ASCII database
9 Summary(pl): DB_File pozwala na korzystanie z prostej, tekstowej bazy danych
14 License: GPL or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
17 # Source0-md5: c473cd75e8ad73edb4cf907e32f00514
18 Patch0: %{name}-rpm-automation.patch
19 BuildRequires: db-devel
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 DB_File is a module which allows Perl programs to make use of the
26 facilities provided by Berkeley DB version 1.
29 DB_File jest modu³em, który pozwala programom w Perlu na korzystanie
30 z udogodnieñ, dostarczanych przez Berkeley DB w wersji 1.
33 %setup -q -n %{pnam}-%{version}
37 %{__perl} -pi -e "s/INSTALLDIRS => 'perl',//" Makefile.PL
38 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
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