6 |
|
#cyrus-sasl |
7 |
|
Provides: libsasl2.so.2 libsasl2.so.2()(64bit) |
8 |
|
|
9 |
– |
#http://www.openssl.org/source/%n-%realversion.tar.gz |
10 |
– |
|
9 |
|
%prep |
10 |
|
%setup -q -n %n-%{realversion} |
13 |
– |
pwd |
11 |
|
%patch0 -p1 |
12 |
|
|
13 |
|
%build |
14 |
|
|
18 |
– |
pwd |
19 |
– |
|
20 |
– |
# Fix missing sasl2 library link on 64-bit SLC4: |
21 |
– |
|
22 |
– |
mkdir -p sasl2lib |
23 |
– |
ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so |
24 |
– |
|
15 |
|
# CC C compiler command |
16 |
|
# CFLAGS C compiler flags |
17 |
|
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
23 |
|
export CPPFLAGS="-I$OPENSSL_ROOT/include -I$DB4_ROOT/include -I$CYRUS_SASL_ROOT/include" |
24 |
|
export LDFLAGS="-L$OPENSSL_ROOT/lib -L$DB4_ROOT/lib -L$CYRUS_SASL_ROOT/lib -L%{_builddir}/%n-%{realversion}/sasl2lib" |
25 |
|
echo $CPPFLAGS |
36 |
– |
which cc |
37 |
– |
which gcc |
26 |
|
|
27 |
|
./configure --prefix=%i --with-cyrus-sasl --with-tls |
28 |
|
make depend |
29 |
|
make |
30 |
|
%install |
31 |
|
make install |
44 |
– |
|
45 |
– |
# SCRAM ToolBox toolfile |
46 |
– |
mkdir -p %i/etc/scram.d |
47 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
48 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
49 |
– |
<Tool name=%n version=%v> |
50 |
– |
<Client> |
51 |
– |
<Environment name=OPENLDAP_BASE default="%i"></Environment> |
52 |
– |
<Environment name=LIBDIR default="$OPENLDAP_BASE/lib"></Environment> |
53 |
– |
</Client> |
54 |
– |
<use name=openssl> |
55 |
– |
<use name=db4> |
56 |
– |
</Tool> |
57 |
– |
EOF_TOOLFILE |
58 |
– |
|
59 |
– |
%post |
60 |
– |
%{relocateConfig}etc/scram.d/%n |
61 |
– |
|