]> git.pld-linux.org Git - packages/perl-DB_File.git/blame - perl-DB_File.spec
- release 3 (by relup.sh)
[packages/perl-DB_File.git] / perl-DB_File.spec
CommitLineData
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 10Summary: DB_File allows to manage a simple ASCII database
862a7c63 11Summary(pl.UTF-8): DB_File pozwala na korzystanie z prostej, tekstowej bazy danych
ceb60edc 12Name: perl-DB_File
87f170a7 13Version: 1.826
f64a1d24 14Release: 3
f738e29b 15# same as perl
686dad87 16License: GPL v1+ or Artistic
ceb60edc 17Group: Development/Languages/Perl
e08f54b2 18Source0: http://www.cpan.org/modules/by-module/DB_File/%{pnam}-%{version}.tar.gz
87f170a7 19# Source0-md5: 4bc334674903b799ccf15e5ae042a40b
b68728d0 20Patch0: %{name}-rpm-automation.patch
8a53e4b1 21URL: http://search.cpan.org/dist/DB_File/
cd93ca57 22BuildRequires: db-devel
31e73cd9 23BuildRequires: perl-devel >= 1:5.8.0
b8125d38 24BuildRequires: rpm-perlprov >= 4.1-13
8721ab9f 25Requires: db = %{db_ver}
ceb60edc 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
146735dc 29DB_File is a module which allows Perl programs to make use of the
30facilities provided by Berkeley DB version 1.
ceb60edc 31
42fd7c4d
JR
32%description -l pl.UTF-8
33DB_File jest modułem, który pozwala programom w Perlu na korzystanie
8a53e4b1 34z 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
51rm -rf $RPM_BUILD_ROOT
52
cd93ca57 53%{__make} install \
54 DESTDIR=$RPM_BUILD_ROOT
0ca5cfa5 55
ceb60edc 56%clean
57rm -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
686dad87 67%{_mandir}/man3/DB_File.3pm*
This page took 0.121809 seconds and 4 git commands to generate.