Selaa lähdekoodia

upgrade pnet 0.5.4 -> 0.5.6, make threading optional to avoid conflicts with pth

Michael van Elst 22 vuotta sitten
vanhempi
commit
3659951c1e
1 muutettua tiedostoa jossa 13 lisäystä ja 2 poistoa
  1. 13 2
      pnet/pnet.spec

+ 13 - 2
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}