Browse Source

switch to %option(s)

Ralf S. Engelschall 23 years ago
parent
commit
0956e7d9b0
1 changed files with 5 additions and 8 deletions
  1. 5 8
      ghostscript/ghostscript.spec

+ 5 - 8
ghostscript/ghostscript.spec

@@ -32,9 +32,7 @@
 %define       V_zlib       1.1.4
 
 #   package options
-%ifndef       with_x11
-%define       with_x11     %{l_test -p x11}
-%endif
+%option       with_x11     %{l_test -p x11}
 
 #   package information
 Name:         ghostscript
@@ -46,7 +44,7 @@ Distribution: OpenPKG [BASE]
 Group:        Graphics
 License:      Aladdin
 Version:      %{V_real}
-Release:      20021122
+Release:      20021230
 
 #   list of sources
 Source0:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_mini}/ghostscript-%{V_real}.tar.bz2
@@ -59,8 +57,8 @@ Source5:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/ghostscript-
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20021002, gcc
-PreReq:       OpenPKG, openpkg >= 20021002
+BuildPreReq:  OpenPKG, openpkg >= 20021230, gcc
+PreReq:       OpenPKG, openpkg >= 20021230
 %if "%{with_x11}" == "yes"
 BuildPreReq:  X11
 PreReq:       X11
@@ -75,8 +73,7 @@ AutoReqProv:  no
     language capability built in. It also works with Portable Document Format
     files (PDF), providing the same set of functionality as with PostScript.
 
-    Options: 
-    --define 'with_x11 %{with_x11}'
+    %options
 
 %prep
     %setup0 -q -c