sasl/sasl.spec

changeset 725
405367b5a7ff
parent 724
b318ab5c5f26
child 727
914043724d20
equal deleted inserted replaced
4:5d6a78e16385 5:5195360d4028
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: BASE 31 Class: BASE
32 Group: Cryptography 32 Group: Cryptography
33 License: BSD 33 License: BSD
34 Version: 2.1.23 34 Version: 2.1.23
35 Release: 20101020 35 Release: 20120800
36 36
37 # package options 37 # package options
38 %option with_fsl yes 38 %option with_fsl yes
39 %option with_sasldb yes 39 %option with_sasldb yes
40 %option with_pam no 40 %option with_pam no
110 regex = cyrus-sasl-(\d+\.\d+\.\d+)\.tar\.gz 110 regex = cyrus-sasl-(\d+\.\d+\.\d+)\.tar\.gz
111 } 111 }
112 112
113 %prep 113 %prep
114 %setup -q -n cyrus-sasl-%{version} 114 %setup -q -n cyrus-sasl-%{version}
115 %{l_shtool} subst \
116 -e 's;u_int\([0-9]*\)_t;uint\1_t;g' \
117 sasldb/db_berkeley.c
115 %patch -p0 118 %patch -p0
116 119
117 %build 120 %build
118 # ensure the OpenPKG Berkeley-DB is picked up only 121 # ensure the OpenPKG Berkeley-DB is picked up only
119 %{l_shtool} subst \ 122 %{l_shtool} subst \
293 -e "s;^\(saslauthd_LDADD[ ]*=[ ]*[^\\]*\);\1 -lcrypt -lldap -llber -lssl -lcrypto ;" \ 296 -e "s;^\(saslauthd_LDADD[ ]*=[ ]*[^\\]*\);\1 -lcrypt -lldap -llber -lssl -lcrypto ;" \
294 saslauthd/Makefile 297 saslauthd/Makefile
295 %endif 298 %endif
296 299
297 # build package 300 # build package
298 %{l_make} %{l_mflags} 301 %{l_make} %{l_mflags -O}
299 ( cd saslauthd 302 ( cd saslauthd
300 %{l_make} %{l_mflags} testsaslauthd 303 %{l_make} %{l_mflags -O} testsaslauthd
301 ) || exit $? 304 ) || exit $?
302 ( cd sample 305 ( cd sample
303 %{l_make} %{l_mflags} sample-client sample-server 306 %{l_make} %{l_mflags -O} sample-client sample-server
304 ) || exit $? 307 ) || exit $?
305 308
306 %install 309 %install
307
308 # install package 310 # install package
309 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 311 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
310 312
311 # remove libtool cruft 313 # remove libtool cruft
312 rm -f \ 314 rm -f \
313 $RPM_BUILD_ROOT%{l_prefix}/lib/*.la \ 315 $RPM_BUILD_ROOT%{l_prefix}/lib/*.la \
314 $RPM_BUILD_ROOT%{l_prefix}/lib/*.s[ol] \ 316 $RPM_BUILD_ROOT%{l_prefix}/lib/*.s[ol] \

mercurial