/[packages]/cauldron/ghostscript/current/SPECS/ghostscript.spec
ViewVC logotype

Diff of /cauldron/ghostscript/current/SPECS/ghostscript.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 473745 by blino, Mon Jun 17 17:01:20 2013 UTC revision 473746 by joequant, Sat Aug 31 16:28:20 2013 UTC
# Line 1  Line 1 
1  %define _disable_ld_no_undefined 1  %define _disable_ld_no_undefined 1
2  %define rel     1  %define rel     1
3    
4  %define gsver 9.07  %define gsver 9.09
5  %define ijsver 0.35  %define ijsver 0.35
6  %define ijsreloffset 97  %define ijsreloffset 98
7  %define ijsrelno %(echo $((%{rel} + %{ijsreloffset})))  %define ijsrelno %(echo $((%{rel} + %{ijsreloffset})))
8  %define ijsrel %mkrel %{ijsrelno}  %define ijsrel %mkrel %{ijsrelno}
9    
# Line 18  Line 18 
18  %define bootstrap 0  %define bootstrap 0
19    
20  %define GSx11SVGAmodule 1  %define GSx11SVGAmodule 1
21  %define withcupsfilters 1  %define withcupsfilters 0
22  %define debug 0  %define debug 0
23  %if %{bootstrap}  %if %{bootstrap}
24  %global withcupsfilters 0  %global withcupsfilters 0
# Line 45  Patch3: ghostscript-noopt.patch Line 45  Patch3: ghostscript-noopt.patch
45  # Define .runlibfileifexists.  # Define .runlibfileifexists.
46  Patch4: ghostscript-runlibfileifexists.patch  Patch4: ghostscript-runlibfileifexists.patch
47  # Fixed missing error check when setting ICC profile.  # Fixed missing error check when setting ICC profile.
48  Patch5: ghostscript-icc-missing-check.patch  #Patch5: ghostscript-icc-missing-check.patch
49  # Install CUPS filter convs files in the correct place.  # Install CUPS filter convs files in the correct place.
50  Patch6: ghostscript-cups-filters.patch  #Patch6: ghostscript-cups-filters.patch
51  # Restored Fontmap.local patch, incorrectly dropped after  # Restored Fontmap.local patch, incorrectly dropped after
52  # ghostscript-8.15.4-3 (bug #610301).  # ghostscript-8.15.4-3 (bug #610301).
53  # Note: don't use -b here to avoid the backup file ending up in the  # Note: don't use -b here to avoid the backup file ending up in the
# Line 57  Patch7: ghostscript-Fontmap.local.patch Line 57  Patch7: ghostscript-Fontmap.local.patch
57  Patch8: ghostscript-iccprofiles-initdir.patch  Patch8: ghostscript-iccprofiles-initdir.patch
58  # gdevcups: don't use uninitialized variables in debugging output.  # gdevcups: don't use uninitialized variables in debugging output.
59  Patch9: ghostscript-gdevcups-debug-uninit.patch  Patch9: ghostscript-gdevcups-debug-uninit.patch
 # Back-ported locale fix (bug #961149).  
 Patch10: ghostscript-gs_sprintf.patch  
 # Upstream patch to fix pdfwrite segfault (bug #962120).  
 Patch11: ghostscript-pdfwrite-segfault.patch  
60    
61  Patch100: 0001-Fix-hang-in-gstoraster-if-gs-fails-bug-693336.patch  #Patch100: 0001-Fix-hang-in-gstoraster-if-gs-fails-bug-693336.patch
62    
63  Patch300: ghostscript-9.05-x11_shared.diff  #Patch300: ghostscript-9.05-x11_shared.diff
64  Patch301: ghostscript-9.06-automake-1.13.patch  #Patch301: ghostscript-9.06-automake-1.13.patch
65    
66  %if !%{bootstrap}  %if !%{bootstrap}
67  BuildRequires: gtk+3-devel  BuildRequires: gtk+3-devel
# Line 310  popd Line 306  popd
306      --with-x \      --with-x \
307      --disable-compile-inits \      --disable-compile-inits \
308      --with-system-libtiff \      --with-system-libtiff \
309    %if %{withcupsfilters}
310      --with-install-cups      --with-install-cups
311    %endif
312    
313  # Drivers which do not compile:  # Drivers which do not compile:
314  # Needs newsiop/lbp.h: nwp533  # Needs newsiop/lbp.h: nwp533
# Line 341  make obj/X11.so Line 339  make obj/X11.so
339  %endif  %endif
340  make so  make so
341  #make pcl3opts  #make pcl3opts
342    %if %{withcupsfilters}
343  make cups  make cups
344    %endif
345    
346  %install  %install
 rm -rf %{buildroot}  
   
347  # Change compiler flags for debugging when in debug mode  # Change compiler flags for debugging when in debug mode
348  %if %debug  %if %debug
349  export DONT_STRIP=1  export DONT_STRIP=1
# Line 392  make \ Line 390  make \
390          docdir=%{_docdir}/ghostscript-doc-%{gsver} \          docdir=%{_docdir}/ghostscript-doc-%{gsver} \
391          bindir=%{_bindir} \          bindir=%{_bindir} \
392          mandir=%{_mandir} \          mandir=%{_mandir} \
393    %if %{withcupsfilters}
394          install-cups          install-cups
395  %endif  %endif
396    %endif
397    
398  make \  make \
399          prefix=%{_prefix} \          prefix=%{_prefix} \
# Line 427  install -m 755 ps2pdfpress %{buildroot}% Line 427  install -m 755 ps2pdfpress %{buildroot}%
427  install -m 644 sipixa6.upp %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/  install -m 644 sipixa6.upp %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/
428    
429  # why?  # why?
430    %if %{withcupsfilters}
431  mv %{buildroot}%{_datadir}/cups/mime/gstoraster.convs %{buildroot}%{_sysconfdir}/cups/gstoraster.convs  mv %{buildroot}%{_datadir}/cups/mime/gstoraster.convs %{buildroot}%{_sysconfdir}/cups/gstoraster.convs
432    %endif
433    
434  # Correct permissions for all documentation files  # Correct permissions for all documentation files
435  chmod -R a+rX %{buildroot}%{_docdir}  chmod -R a+rX %{buildroot}%{_docdir}

Legend:
Removed from v.473745  
changed lines
  Added in v.473746

  ViewVC Help
Powered by ViewVC 1.1.28