Changeset 1258 for spec/trunk/SPECS/ghostscript.spec
- Timestamp:
- Nov 17, 2017, 6:32:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/ghostscript.spec
r735 r1258 1 #define svn_url e:/trees/ghostscript/trunk2 %define svn_url http://svn.netlabs.org/repos/ports/ghostscript/trunk3 %define svn_rev 15324 1 5 2 %define _with_freetype 1 … … 7 4 %define gs_dot_ver 9.18 8 5 %define gs_major 9 9 %{expand: %%define build_with_freetype %{?_with_freetype:1}%{!?_with_freetype:0}}10 6 11 7 Summary: A PostScript interpreter and renderer … … 13 9 Version: %{gs_ver} 14 10 15 Release: 5%{?dist}11 Release: 6%{?dist} 16 12 17 13 # Included CMap data is Redistributable, no modification permitted, … … 21 17 Group: Applications/Publishing 22 18 Vendor: bww bitwise works GmbH 23 24 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 19 %scm_source svn http://svn.netlabs.org/repos/ports/ghostscript/trunk 2251 25 20 26 21 Requires: urw-fonts >= 1.1, ghostscript-fonts … … 43 38 BuildRoot: %{_tmppath}/%{name}-%{gs_ver}-root 44 39 40 # as we also deliver a gnu version for license concerns, we have to add 41 # this obsolete, as only this version will get regular updates 42 Obsoletes: gnu-ghostscript < %{gs_ver} 43 Provides: gnu-ghostscript = %{gs_ver} 44 45 45 # See bug #83516. 46 46 Conflicts: ttfonts-ja < 1.2-23 … … 84 84 85 85 %prep 86 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 87 %setup -q 88 %else 89 %setup -n "%{name}-%{version}" -Tc 90 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 91 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 92 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 93 %endif 86 %scm_setup 94 87 95 88 #rm -rf expat freetype icclib jasper jpeg lcms2 libpng openjpeg zlib cups/libs … … 143 136 autoconf --force 144 137 export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 138 export LIBS="-lcx" 145 139 # --enable-dynamic 146 140 %configure --with-fontpath="$FONTPATH" \ … … 159 153 # the original 2nd make and 2nd install is commented out for now 160 154 161 %if %{ build_with_freetype}155 %if %{_with_freetype} 162 156 FT_CFLAGS=$(pkg-config --cflags freetype2) 163 157 make so RPM_OPT_FLAGS="$RPM_OPT_FLAGS $EXTRACFLAGS" prefix=%{_prefix} \ … … 199 193 200 194 # add symlink for scripts 201 ln -s %{_bindir}/gsos2.exe %{buildroot}%{_bindir}/gs .exe195 ln -s %{_bindir}/gsos2.exe %{buildroot}%{_bindir}/gs 202 196 rm -f $RPM_BUILD_ROOT%{_libdir}/gsdll2.%{gs_dot_ver}.dll 203 197 rm -f $RPM_BUILD_ROOT%{_libdir}/gsdll2.%{gs_major}.dll … … 210 204 211 205 echo ".so man1/gs.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript.1 212 ln -sf gs$RPM_BUILD_ROOT%{_bindir}/ghostscript206 ln -sf %{_bindir}/gsos2.exe $RPM_BUILD_ROOT%{_bindir}/ghostscript 213 207 214 208 # Rename an original cidfmap to cidfmap.GS … … 306 300 307 301 %changelog 302 * Fri Nov 17 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 9.18-6 303 - add a obsoletes for the gnu-ghostscript 304 - fix softlink 305 - use scm_ macros 306 - enhance logging and add GS_DEBUG env to write a logfile 307 - fix some possible memory leaks 308 - fix compile warnings 309 - fix a crash with -dUseCIEColor and -dFastWebView switches (borrowed from upstream) 310 308 311 * Fri Apr 8 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 9.18-5 309 312 - add GS_FONTPATH by default
Note:
See TracChangeset
for help on using the changeset viewer.