Browse Source

make --with_ex a package option

master
Michael van Elst 23 years ago committed by Ralf S. Engelschall
parent
commit
4bd2429f62
  1. 14
      sa/sa.spec

14
sa/sa.spec

@ -22,6 +22,9 @@
## SUCH DAMAGE. ## SUCH DAMAGE.
## ##
# package options
%{!?with_ex: %define with_ex no}
# package information # package information
Name: sa Name: sa
Summary: Socket Abstraction Library Summary: Socket Abstraction Library
@ -32,7 +35,7 @@ Distribution: OpenPKG [PLUS]
Group: System Group: System
License: MIT/X11-style License: MIT/X11-style
Version: 1.0.2 Version: 1.0.2
Release: 20021204 Release: 20021216
# list of sources # list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/sa/sa-%{version}.tar.gz Source0: ftp://ftp.ossp.org/pkg/lib/sa/sa-%{version}.tar.gz
@ -40,8 +43,11 @@ Source0: ftp://ftp.ossp.org/pkg/lib/sa/sa-%{version}.tar.gz
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206, ex BuildPreReq: OpenPKG, openpkg >= 20020206
PreReq: OpenPKG, openpkg >= 20020206, ex PreReq: OpenPKG, openpkg >= 20020206
%if "%{with_ex}" == "yes"
BuildPreReq: ex
%endif
AutoReq: no AutoReq: no
AutoReqProv: no AutoReqProv: no
@ -55,7 +61,9 @@ AutoReqProv: no
CFLAGS="%{l_cflags -O}" \ CFLAGS="%{l_cflags -O}" \
./configure \ ./configure \
--prefix=%{l_prefix} \ --prefix=%{l_prefix} \
%if "%{with_ex}" == "yes"
--with-ex=%{l_prefix} \ --with-ex=%{l_prefix} \
%endif
--disable-shared --disable-shared
%{l_make} %{l_mflags -O} %{l_make} %{l_mflags -O}

Loading…
Cancel
Save