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

Loading…
Cancel
Save