1 |
##### VERSION NUMBERS |
##### VERSION NUMBERS |
2 |
|
|
3 |
%define gsversion 9.00 |
%define gsversion 9.02 |
4 |
%define gsextraversion %{nil} |
%define gsextraversion %{nil} |
5 |
%define gsreleaseno 4 |
%define gsreleaseno 1 |
6 |
%define gsrelease %mkrel %gsreleaseno |
%define gsrelease %mkrel %gsreleaseno |
7 |
%define gssvnrevision -rev183 |
%define gssvnrevision -rev183 |
8 |
%define ijsver 0.35 |
%define ijsver 0.35 |
9 |
%define ijsreloffset 73 |
%define ijsreloffset 77 |
10 |
%define ijsrelno %(echo $((%{gsreleaseno} + %{ijsreloffset}))) |
%define ijsrelno %(echo $((%{gsreleaseno} + %{ijsreloffset}))) |
11 |
%define ijsrel %mkrel %ijsrelno |
%define ijsrel %mkrel %ijsrelno |
12 |
%define ijsmajor 1 |
%define ijsmajor 1 |
98 |
|
|
99 |
##### GHOSTSCRIPT SOURCES |
##### GHOSTSCRIPT SOURCES |
100 |
|
|
101 |
Source0: http://ghostscript.com/releases/ghostscript-%{gsversion}%{gsextraversion}.tar.xz |
Source0: http://downloads.ghostscript.com/public/ghostscript-%{gsversion}%{gsextraversion}.tar.bz2 |
102 |
Source2: ps2pdfpress.bz2 |
Source2: ps2pdfpress.bz2 |
103 |
Source3: http://www.linuxprinting.org/download/printing/sipixa6.upp.bz2 |
Source3: http://www.linuxprinting.org/download/printing/sipixa6.upp.bz2 |
104 |
|
|
105 |
##### GHOSTSCRIPT PATCHES |
##### GHOSTSCRIPT PATCHES |
106 |
Patch3: ghostscript-8.64-x11_shared.patch |
Patch3: ghostscript-8.64-x11_shared.patch |
|
Patch4: ghostscript-linkage.patch |
|
107 |
|
|
108 |
# Fedora patches |
# Fedora patches |
109 |
Patch102: ghostscript-scripts.patch |
Patch102: ghostscript-scripts.patch |
110 |
Patch105: ghostscript-runlibfileifexists.patch |
Patch105: ghostscript-runlibfileifexists.patch |
|
Patch106: ghostscript-system-jasper.patch |
|
111 |
Patch107: ghostscript-pksmraw.patch |
Patch107: ghostscript-pksmraw.patch |
112 |
|
|
113 |
##### LIBIJS PATCHES |
##### LIBIJS PATCHES |
309 |
# rm -rf zlib <- don't work for unknown reasons |
# rm -rf zlib <- don't work for unknown reasons |
310 |
|
|
311 |
%patch3 -p0 -b .shared |
%patch3 -p0 -b .shared |
|
%patch4 -p0 -b .linkage |
|
312 |
|
|
313 |
# Fedora patches |
# Fedora patches |
314 |
# Fix some shell scripts |
# Fix some shell scripts |
316 |
|
|
317 |
# Define .runlibfileifexists. |
# Define .runlibfileifexists. |
318 |
%patch105 -p1 |
%patch105 -p1 |
|
%patch106 -p0 -b .system-jasper |
|
319 |
|
|
320 |
# Fix pksmraw output (RH bug #308211). Still needed in 8.63. |
# Fix pksmraw output (RH bug #308211). Still needed in 8.63. |
321 |
%patch107 -p1 -b .pksmraw |
%patch107 -p1 -b .pksmraw |
369 |
# Rebuild broken build infrastructure |
# Rebuild broken build infrastructure |
370 |
# Needed by patch4. |
# Needed by patch4. |
371 |
./autogen.sh |
./autogen.sh |
372 |
%configure2_5x --enable-shared |
%configure2_5x \ |
373 |
|
%ifarch %{ix86} |
374 |
|
--disable-sse2 \ |
375 |
|
%endif |
376 |
|
--enable-shared |
377 |
%make |
%make |
378 |
cd .. |
cd .. |
379 |
|
|
387 |
%if !%{bootstrap} |
%if !%{bootstrap} |
388 |
--enable-fontconfig \ |
--enable-fontconfig \ |
389 |
%endif |
%endif |
390 |
|
%ifarch %{ix86} |
391 |
|
--disable-sse2 \ |
392 |
|
%endif |
393 |
--with-drivers=ALL,opvp \ |
--with-drivers=ALL,opvp \ |
394 |
--with-fontpath="/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/type1:/usr/share/ghostscript/fonts:/usr/share/ghostscript/%{gsversion}/Resource:/usr/share/ghostscript/Resource:/usr/share/ghostscript/CIDFont:/usr/share/fonts/ttf:/usr/share/fonts/type1:/usr/share/fonts/default/Type1" \ |
--with-fontpath="/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/type1:/usr/share/ghostscript/fonts:/usr/share/ghostscript/%{gsversion}/Resource:/usr/share/ghostscript/Resource:/usr/share/ghostscript/CIDFont:/usr/share/fonts/ttf:/usr/share/fonts/type1:/usr/share/fonts/default/Type1" \ |
395 |
--with-ijs \ |
--with-ijs \ |
590 |
# cups-internal RIP |
# cups-internal RIP |
591 |
%attr(0755,root,root) %{_prefix}/lib*/cups/filter/* |
%attr(0755,root,root) %{_prefix}/lib*/cups/filter/* |
592 |
%{_datadir}/cups/model/* |
%{_datadir}/cups/model/* |
593 |
%config(noreplace) %{_sysconfdir}/cups/pstoraster.convs |
%config(noreplace) %{_sysconfdir}/cups/gstoraster.convs |
|
%config(noreplace) %{_sysconfdir}/cups/pdftoraster.convs |
|
594 |
%endif |
%endif |
595 |
|
|
596 |
%files doc |
%files doc |