|
@@ -46,7 +46,7 @@ Release: 20031011
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
%option with_x11 yes
|
|
%option with_x11 yes
|
|
|
-%option with_def_a4 no
|
|
|
|
|
|
|
+%option with_a4 yes
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
Source0: ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_comp}/ghostscript-%{V_real}.tar.bz2
|
|
Source0: ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs%{V_comp}/ghostscript-%{V_real}.tar.bz2
|
|
@@ -102,6 +102,9 @@ AutoReqProv: no
|
|
|
%else
|
|
%else
|
|
|
x11_inc=""
|
|
x11_inc=""
|
|
|
x11_lib=""
|
|
x11_lib=""
|
|
|
|
|
+%endif
|
|
|
|
|
+%if "%{with_a4}" == "yes"
|
|
|
|
|
+ mtcflags="$mtcflags -DA4"
|
|
|
%endif
|
|
%endif
|
|
|
%{l_shtool} subst \
|
|
%{l_shtool} subst \
|
|
|
-e "s;^STDLIBS=-lpthread -lm;STDLIBS=$mtldflags -lm;" \
|
|
-e "s;^STDLIBS=-lpthread -lm;STDLIBS=$mtldflags -lm;" \
|
|
@@ -117,11 +120,7 @@ AutoReqProv: no
|
|
|
-e 's;DEVICE_DEVS=.*$;DEVICE_DEVS=;' \
|
|
-e 's;DEVICE_DEVS=.*$;DEVICE_DEVS=;' \
|
|
|
src/unix-gcc.mak
|
|
src/unix-gcc.mak
|
|
|
%endif
|
|
%endif
|
|
|
-%if "%{with_def_a4}" == "yes"
|
|
|
|
|
- %{l_make} %{l_mflags} -f src/unix-gcc.mak XCFLAGS="-DA4"
|
|
|
|
|
-%else
|
|
|
|
|
%{l_make} %{l_mflags} -f src/unix-gcc.mak
|
|
%{l_make} %{l_mflags} -f src/unix-gcc.mak
|
|
|
-%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|