]> git.pld-linux.org Git - packages/perl-DB_File.git/blame - perl-DB_File.spec
rebuild with perl 5.32
[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#
1bd80168 5%define db_ver %(rpm -q --whatprovides --qf '%%|E?{%%{E}:}|%%{V}' db-devel)
f6a67cf6 6#
fc31e86c 7%define pdir DB_File
8%define pnam DB_File
7ba6502b 9Summary: DB_File allows to manage a simple ASCII database
862a7c63 10Summary(pl.UTF-8): DB_File pozwala na korzystanie z prostej, tekstowej bazy danych
ceb60edc 11Name: perl-DB_File
9251bbaa 12Version: 1.852
6f1868f5 13Release: 3
f738e29b 14# same as perl
686dad87 15License: GPL v1+ or Artistic
ceb60edc 16Group: Development/Languages/Perl
db469564 17Source0: https://www.cpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
9251bbaa 18# Source0-md5: 7b5aa99abd24ac0813a8c32b58216806
b68728d0 19Patch0: %{name}-rpm-automation.patch
8a53e4b1 20URL: http://search.cpan.org/dist/DB_File/
cd93ca57 21BuildRequires: db-devel
31e73cd9 22BuildRequires: perl-devel >= 1:5.8.0
b8125d38 23BuildRequires: rpm-perlprov >= 4.1-13
8721ab9f 24Requires: db = %{db_ver}
ceb60edc 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
146735dc 28DB_File is a module which allows Perl programs to make use of the
29facilities provided by Berkeley DB version 1.
ceb60edc 30
42fd7c4d
JR
31%description -l pl.UTF-8
32DB_File jest modułem, który pozwala programom w Perlu na korzystanie
8a53e4b1 33z udogodnień dostarczanych przez Berkeley DB w wersji 1.
ceb60edc 34
35%prep
cf3e26a7 36%setup -q -n %{pnam}-%{version}
b68728d0 37%patch0 -p1
ceb60edc 38
39%build
8608adff 40%{__perl} -pi -e "s/INSTALLDIRS => 'perl',//" Makefile.PL
b8125d38 41%{__perl} Makefile.PL \
46ae606c 42 INSTALLDIRS=vendor
31e73cd9 43%{__make} \
3758d1c8 44 CC="%{__cc}" \
31e73cd9
JB
45 OPTIMIZE="%{rpmcflags}"
46
47%{?with_tests:%{__make} test}
ceb60edc 48
49%install
50rm -rf $RPM_BUILD_ROOT
51
cd93ca57 52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
0ca5cfa5 54
ceb60edc 55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
ec10bcd4 60%doc Changes README
8608adff 61%{perl_vendorarch}/DB_File.pm
62%dir %{perl_vendorarch}/auto/DB_File
8608adff 63%attr(755,root,root) %{perl_vendorarch}/auto/DB_File/DB_File.so
686dad87 64%{_mandir}/man3/DB_File.3pm*
This page took 0.120757 seconds and 4 git commands to generate.