소스 검색

Removed hardcoded version numbers, and added a meaningful description.

Michael Schloh von Bennewitz 24 년 전
부모
커밋
9ea8eea90e
1개의 변경된 파일18개의 추가작업 그리고 10개의 파일을 삭제
  1. 18 10
      ghostscript/ghostscript.spec

+ 18 - 10
ghostscript/ghostscript.spec

@@ -23,6 +23,11 @@
 ##  SUCH DAMAGE.
 ##
 
+#   package versions
+%define       V_real 7.04
+%define       V_mini 704
+%define       V_font 6.0
+
 #   package information
 Name:         ghostscript
 Summary:      Ghostscript, Postscript and PDF Rendering Engine
@@ -32,16 +37,16 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [BASE]
 Group:        Graphics
 License:      Aladdin
-Version:      7.04
-Release:      20020405
+Version:      %{V_real}
+Release:      20020926
 
 #   list of sources
-Source0:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/ghostscript-%{version}.tar.bz2
-Source1:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/jpegsrc.v6b.tar.gz
-Source2:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/libpng-1.2.1.tar.gz
-Source3:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/zlib-1.1.4.tar.gz
-Source4:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/ghostscript-fonts-std-6.0.tar.gz
-Source5:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/ghostscript-fonts-other-6.0.tar.gz
+Source0:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_mini}/ghostscript-%{V_real}.tar.bz2
+Source1:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_mini}/jpegsrc.v6b.tar.gz
+Source2:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_mini}/libpng-1.2.1.tar.gz
+Source3:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_mini}/zlib-1.1.4.tar.gz
+Source4:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/ghostscript-fonts-std-%{V_font}.tar.gz
+Source5:      ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/ghostscript-fonts-other-%{V_font}.tar.gz
 
 #   build information
 Prefix:       %{l_prefix}
@@ -52,8 +57,11 @@ AutoReq:      no
 AutoReqProv:  no
 
 %description
-    Ghostscript is an interpreter for the PostScript language and for
-    PDF.
+    Ghostscript is an interpreter for the PostScript language, with the ability to
+    convert PostScript language files to many raster formats, view them on
+    displays, and print them on printers that don't have PostScript
+    language capability built in. It also works with Portable Document Format
+    files (PDF), providing the same set of functionality as with PostScript.
 
 %prep
     %setup0 -q -c