⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gs.rps

📁 GhostScript的源代码
💻 RPS
字号:
#
# $Id: gs.rps $
# Spec file for Aladdin Ghostscript 5.50
#
# Based on RPM Spec file by RedHat for GNU Ghostscript 3.33
#
# For each new version of Ghostscript, you will need to change 
#   Version:
#   Source[0-3]:
#   Patch:
#   Patch1:
#   directory renaming of 3rd party libraries in %prep
#   update the patch files.
#
#
Summary: PostScript interpreter and renderer
Name: ghostscript
Version: 5.50
Release: 1
Copyright: Aladdin Free Public License, Aladdin Enterprises
Group: Applications/Graphics
Source0: ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ghostscript-5.50.tar.gz
Source1: ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ghostscript-5.50jpeg.tar.gz
Source2: ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ghostscript-5.50libpng.tar.gz
Source3: ftp://ftp.cs.wisc.edu/ghost/aladdin/gs550/ghostscript-5.50zlib.tar.gz
Patch: ghostscript-5.50-config.patch
# comment out the following line if no post release patches are available.
#Patch1: ghostscript-5.50-post.patch
URL: http://www.cs.wisc.edu/~ghost/
#Icon: ghost.gif
#Distribution: Unknown
Vendor: Aladdin Enterprises
Packager: Russell Lang   http://www.cs.wisc.edu/~ghost/rjl.html
Requires: ghostscript-fonts
BuildRoot: /var/tmp/ghostscript-root

%description
Ghostscript is a PostScript interpreter. It can render both PostScript
and PDF compliant files to devices which include an X window, many printer
formats (including support for colour printers), and popular graphics
file formats.

%prep
# remove old directory
rm -rf $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}
mkdir $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}
#
# unpack main sources
%setup -n gs%{PACKAGE_VERSION}
#
# unpack jpeg
%setup -T -D -a 1 -n gs%{PACKAGE_VERSION}
# For gs 5.50, rename jpeg subdirectory
mv $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/jpeg-6b  $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/jpeg
#
# unpack libpng
%setup -T -D -a 2 -n gs%{PACKAGE_VERSION}
# For gs 5.50, rename libpng subdirectory
mv $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/libpng-1.0.2  $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/libpng
#
# unpack zlib
%setup -T -D -a 3 -n gs%{PACKAGE_VERSION}
# For gs 5.50, rename zlib subdirectory
mv $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/zlib-1.1.3  $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/zlib
#
# copy the makefile, then patch the new copy
cp $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/unix-gcc.mak $RPM_BUILD_DIR/gs%{PACKAGE_VERSION}/Makefile
%patch  -p1 -b .config
# apply the post release patches (comment out following line if none)
#%patch1  -p1 -b .post


%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" prefix=/usr

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{bin,man,doc}
make install prefix=$RPM_BUILD_ROOT/usr
ln -sf gs.1 $RPM_BUILD_ROOT/usr/man/man1/ghostscript.1
ln -sf gs $RPM_BUILD_ROOT/usr/bin/ghostscript
strip $RPM_BULD_ROOT /usr/bin/gs


%files
/usr/doc/ghostscript-%{PACKAGE_VERSION}
/usr/bin/*
%dir /usr/share/ghostscript
%dir /usr/share/ghostscript/%{PACKAGE_VERSION}
/usr/share/ghostscript/%{PACKAGE_VERSION}/*ps
/usr/share/ghostscript/%{PACKAGE_VERSION}/*.upp
/usr/share/ghostscript/%{PACKAGE_VERSION}/*.ppd
%config /usr/share/ghostscript/%{PACKAGE_VERSION}/Fontmap
/usr/share/ghostscript/%{PACKAGE_VERSION}/examples
/usr/man/*/*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -