Ignore:
Timestamp:
Nov 17, 2017, 6:32:38 PM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: ghostscript: Release version 9.18-6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/ghostscript.spec

    r735 r1258  
    1 #define svn_url     e:/trees/ghostscript/trunk
    2 %define svn_url     http://svn.netlabs.org/repos/ports/ghostscript/trunk
    3 %define svn_rev     1532
    41
    52%define _with_freetype 1
     
    74%define gs_dot_ver 9.18
    85%define gs_major 9
    9 %{expand: %%define build_with_freetype %{?_with_freetype:1}%{!?_with_freetype:0}}
    106
    117Summary: A PostScript interpreter and renderer
     
    139Version: %{gs_ver}
    1410
    15 Release: 5%{?dist}
     11Release: 6%{?dist}
    1612
    1713# Included CMap data is Redistributable, no modification permitted,
     
    2117Group: Applications/Publishing
    2218Vendor: 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
    2520
    2621Requires: urw-fonts >= 1.1, ghostscript-fonts
     
    4338BuildRoot: %{_tmppath}/%{name}-%{gs_ver}-root
    4439
     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
     42Obsoletes: gnu-ghostscript < %{gs_ver}
     43Provides:  gnu-ghostscript = %{gs_ver}
     44
    4545# See bug #83516.
    4646Conflicts: ttfonts-ja < 1.2-23
     
    8484
    8585%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
    9487
    9588#rm -rf expat freetype icclib jasper jpeg lcms2 libpng openjpeg zlib cups/libs
     
    143136autoconf --force
    144137export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     138export LIBS="-lcx"
    145139# --enable-dynamic
    146140%configure --with-fontpath="$FONTPATH" \
     
    159153# the original 2nd make and 2nd install is commented out for now
    160154 
    161 %if %{build_with_freetype}
     155%if %{_with_freetype}
    162156FT_CFLAGS=$(pkg-config --cflags freetype2)
    163157make so RPM_OPT_FLAGS="$RPM_OPT_FLAGS $EXTRACFLAGS" prefix=%{_prefix} \
     
    199193
    200194# add symlink for scripts
    201 ln -s %{_bindir}/gsos2.exe %{buildroot}%{_bindir}/gs.exe
     195ln -s %{_bindir}/gsos2.exe %{buildroot}%{_bindir}/gs
    202196rm -f $RPM_BUILD_ROOT%{_libdir}/gsdll2.%{gs_dot_ver}.dll
    203197rm -f $RPM_BUILD_ROOT%{_libdir}/gsdll2.%{gs_major}.dll
     
    210204
    211205echo ".so man1/gs.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript.1
    212 ln -sf gs $RPM_BUILD_ROOT%{_bindir}/ghostscript
     206ln -sf %{_bindir}/gsos2.exe $RPM_BUILD_ROOT%{_bindir}/ghostscript
    213207
    214208# Rename an original cidfmap to cidfmap.GS
     
    306300
    307301%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
    308311* Fri Apr 8 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 9.18-5
    309312- add GS_FONTPATH by default
Note: See TracChangeset for help on using the changeset viewer.