2386
|
1 |
#
|
19693
|
2 |
# spec file for package db_evo
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
2386
|
7 |
#
|
|
8 |
Name: db_evo
|
|
9 |
License: other
|
|
10 |
Group: System/Libraries
|
|
11 |
Version: 3.1.17
|
19643
|
12 |
Release: 40
|
19693
|
13 |
Distribution: Java Desktop System
|
2386
|
14 |
Vendor: Sun Microsystems, Inc.
|
|
15 |
Summary: Berkeley Data Base Library
|
|
16 |
Source: http://www.sleepycat.com/update/snapshot/db-3.1.17.tar.gz
|
|
17 |
URL: http://www.sleepycat.com/
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
Docdir: %{_defaultdocdir}/doc
|
|
20 |
Autoreqprov: on
|
|
21 |
|
|
22 |
%description
|
|
23 |
The Berkeley DB library is commonly used for application specific data
|
|
24 |
management.
|
|
25 |
|
|
26 |
%prep
|
|
27 |
%setup -q -n db-%{version}
|
|
28 |
|
4455
|
29 |
|
2386
|
30 |
%build
|
3263
|
31 |
%ifos linux
|
|
32 |
if [ -x /usr/bin/getconf ]; then
|
|
33 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
34 |
fi
|
|
35 |
%else
|
3846
|
36 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
3263
|
37 |
%endif
|
|
38 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
39 |
CPUS=1
|
|
40 |
fi
|
|
41 |
|
2386
|
42 |
cd build_unix
|
|
43 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
44 |
../dist/configure --prefix=%{_prefix} \
|
|
45 |
--libdir=%{_libdir}/evolution-private \
|
|
46 |
--includedir=%{_includedir}/evolution-private
|
3263
|
47 |
make -j $CPUS
|
2386
|
48 |
|
|
49 |
%install
|
|
50 |
cd build_unix
|
|
51 |
make install prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|
52 |
libdir=$RPM_BUILD_ROOT%{_libdir}/evolution-private \
|
|
53 |
includedir=$RPM_BUILD_ROOT%{_includedir}/evolution-private
|
3628
|
54 |
rm $RPM_BUILD_ROOT%{_bindir}/*
|
|
55 |
rm -Rf $RPM_BUILD_ROOT%{_prefix}/docs
|
2386
|
56 |
|
|
57 |
%clean
|
|
58 |
rm -rf $RPM_BUILD_ROOT
|
|
59 |
|
|
60 |
%files
|
|
61 |
%defattr(-,root,root)
|
|
62 |
%{_libdir}/evolution-private/lib*.a
|
|
63 |
%{_includedir}/*
|
|
64 |
|
|
65 |
%changelog
|
3628
|
66 |
* Wed Jul 07 2004 - [email protected]
|
|
67 |
- ported to rpm4
|
|
68 |
|
3263
|
69 |
* Wed Jul 07 2004 - [email protected]
|
|
70 |
- added "-j $CPUS" to make to speed up builds
|
|
71 |
|
2386
|
72 |
* Mon Mar 15 2004 - <[email protected]>
|
|
73 |
- initial version
|