Browse Source

fixed ex test, make with_ex a package option

master
Michael van Elst 23 years ago committed by Ralf S. Engelschall
parent
commit
25b50f24bb
  1. 15
      al/al.spec

15
al/al.spec

@ -22,6 +22,9 @@
## SUCH DAMAGE. ## SUCH DAMAGE.
## ##
# package options
%{!?with_ex: %define with_ex no}
# package information # package information
Name: al Name: al
Summary: Assembly Line Library Summary: Assembly Line Library
@ -31,7 +34,7 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [PLUS] Distribution: OpenPKG [PLUS]
Group: System Group: System
License: MIT/X11-style License: MIT/X11-style
Version: 0.9.0 Version: 0.9.1
Release: 20021216 Release: 20021216
# list of sources # list of sources
@ -42,10 +45,17 @@ Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206 BuildPreReq: OpenPKG, openpkg >= 20020206
PreReq: OpenPKG, openpkg >= 20020206 PreReq: OpenPKG, openpkg >= 20020206
%if "%{with_ex}" == "yes"
BuildPreReq: ex
%endif
AutoReq: no AutoReq: no
AutoReqProv: no AutoReqProv: no
%description %description
An abstract datatype of a data buffer
Options:
--define 'with_ex %{with_ex}'
%prep %prep
%setup -q %setup -q
@ -55,6 +65,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} \
%endif
--disable-shared --disable-shared
%{l_make} %{l_mflags -O} %{l_make} %{l_mflags -O}

Loading…
Cancel
Save