1 |
|
### RPM external openldap 2.3.39 |
2 |
+ |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac |
3 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib |
4 |
|
Source: ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20071118.tgz |
5 |
+ |
Patch0: openldap-2.3.39-gcc44 |
6 |
|
Requires: openssl db4 |
7 |
|
#cyrus-sasl |
8 |
< |
Provides: libsasl2.so.2 |
8 |
> |
Provides: libsasl2.so.2 libsasl2.so.2()(64bit) |
9 |
|
|
10 |
|
#http://www.openssl.org/source/%n-%realversion.tar.gz |
11 |
|
|
12 |
|
%prep |
13 |
|
%setup -q -n %n-%{realversion} |
14 |
|
pwd |
15 |
+ |
%patch0 -p1 |
16 |
+ |
|
17 |
|
%build |
18 |
|
|
19 |
|
pwd |
42 |
|
make |
43 |
|
%install |
44 |
|
make install |
41 |
– |
|
42 |
– |
# SCRAM ToolBox toolfile |
43 |
– |
mkdir -p %i/etc/scram.d |
44 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
45 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
46 |
– |
<Tool name=%n version=%v> |
47 |
– |
<Client> |
48 |
– |
<Environment name=OPENLDAP_BASE default="%i"></Environment> |
49 |
– |
<Environment name=LIBDIR default="$OPENLDAP_BASE/lib"></Environment> |
50 |
– |
</Client> |
51 |
– |
<use name=openssl> |
52 |
– |
<use name=db4> |
53 |
– |
</Tool> |
54 |
– |
EOF_TOOLFILE |
55 |
– |
|
56 |
– |
%post |
57 |
– |
%{relocateConfig}etc/scram.d/%n |
58 |
– |
|