Michael van Elst пре 22 година
родитељ
комит
fc3fea4235
1 измењених фајлова са 8 додато и 6 уклоњено
  1. 8 6
      cdk/cdk.spec

+ 8 - 6
cdk/cdk.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
 Group:        Terminal
 License:      BSD
 Version:      %{V_maj}.%{V_min}
-Release:      20030419
+Release:      20030707
 
 #   list of sources
 Source0:      ftp://invisible-island.net/cdk/cdk-%{V_maj}-%{V_min}.tgz
@@ -45,8 +45,10 @@ Source0:      ftp://invisible-island.net/cdk/cdk-%{V_maj}-%{V_min}.tgz
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, ncurses
-PreReq:       OpenPKG, openpkg >= 20020206, ncurses
+BuildPreReq:  OpenPKG, openpkg >= 20020206
+PreReq:       OpenPKG, openpkg >= 20020206
+BuildPreReq:  ncurses
+PreReq:       ncurses
 AutoReq:      no
 AutoReqProv:  no
 
@@ -60,11 +62,11 @@ AutoReqProv:  no
 %build
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
-    CPPFLAGS="-I%{l_prefix}/include -I%{l_prefix}/include/ncurses" \
-    LDFLAGS="-L%{l_prefix}/lib" \
+    CPPFLAGS="%{l_cppflags ncurses}"
+    LDFLAGS="%{l_ldflags}" \
     ./configure \
         --prefix=%{l_prefix} \
-        --with-ncurses \
+        --with-ncurses=%{l_prefix} \
         --without-x
     %{l_make} %{l_mflags -O}