From 3659951c1ee60260f049378a541ce4d0664bd728 Mon Sep 17 00:00:00 2001 From: Michael van Elst Date: Tue, 6 May 2003 14:23:49 +0000 Subject: [PATCH] upgrade pnet 0.5.4 -> 0.5.6, make threading optional to avoid conflicts with pth --- pnet/pnet.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pnet/pnet.spec b/pnet/pnet.spec index 7b91b2acc4..df5d549c1d 100644 --- a/pnet/pnet.spec +++ b/pnet/pnet.spec @@ -32,8 +32,11 @@ Packager: The OpenPKG Project Distribution: OpenPKG [EVAL] Group: Language License: GPL -Version: 0.5.4 -Release: 20030330 +Version: 0.5.6 +Release: 20030506 + +# package options +%option with_threads no # list of sources Source0: http://www.southern-storm.com.au/download/pnet-%{version}.tar.gz @@ -45,6 +48,9 @@ BuildPreReq: OpenPKG, openpkg >= 20030103, gcc, make, flex, bison, treecc PreReq: OpenPKG, openpkg >= 20030103 AutoReq: no AutoReqProv: no +%if "%{with_threads}" == "yes" +Conflicts: pth::with_pthread = yes +%endif %description The goal of this project is to build a suite of free software @@ -66,6 +72,11 @@ AutoReqProv: no LDFLAGS="%{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \ +%if "%{with_threads}" == "yes" + --enable-threads=posix \ +%else + --disable-threads \ +%endif --disable-shared %{l_make} %{l_mflags -O}