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