Accepting request 115851 from home:jsmeix:branches:Printing

Added D-Bus requirement to get colord support in gstoraster (only in ghostscript but not in ghostscript-mini).

OBS-URL: https://build.opensuse.org/request/show/115851
OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=13
This commit is contained in:
Johannes Meixner 2012-04-27 12:58:11 +00:00 committed by Git OBS Bridge
parent 066b2609af
commit 5c674c36d8
4 changed files with 44 additions and 31 deletions

View File

@ -2,7 +2,8 @@
Tue Apr 24 14:30:45 CEST 2012 - jsmeix@suse.de
- Install documentation which is not installed by default
(LICENSE doc/AUTHORS doc/COPYING doc/GS9_Color_Management.pdf
(LICENSE doc/AUTHORS doc/COPYING doc/thirdparty.htm
doc/WhatIsGS.htm doc/GS9_Color_Management.pdf
doc/gs-vms.hlp doc/Ps2ps2.htm).
- Add a link from SUSE's usual documentation directory
(/usr/share/doc/packages/ghostscript/) to Ghostscript's

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ghostscript-mini
BuildRequires: freetype2-devel
BuildRequires: liblcms-devel
@ -113,28 +112,29 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -fi
# --docdir=%%{_defaultdocdir}/%%{name} does not work therefore it is not used.
# --disable-cups and --without-pdftoraster and --without-install-cups
# to have nothing related to CUPS in the minimal Ghostscript.
# to have nothing related to CUPS in the minimal Ghostscript.
# --disable-dbus to have nothing related to D-Bus in the minimal Ghostscript.
# --without-ijs to disable IJS printer driver support in the minimal Ghostscript.
# --with-drivers=FILES to have only the file format drivers
# but no printer drivers in the minimal Ghostscript.
# but no printer drivers in the minimal Ghostscript.
# --without-x to not use the X Window System.
# --without-omni to disable the outdated and unmaintained omni driver.
# --without-jasper and --enable-openjpeg because since Ghostscript 9.05 JasPer is deprecated
# and Ghostscript now ships modified OpenJPEG sources for JPEG2000 decoding
# (replacing JasPer - although JasPer is still included for this release).
# Performance, reliability and memory use whilst decoding JPX streams are all improved.
# and Ghostscript now ships modified OpenJPEG sources for JPEG2000 decoding
# (replacing JasPer - although JasPer is still included for this release).
# Performance, reliability and memory use whilst decoding JPX streams are all improved.
# --without-ufst and --without-luratech because those are relevant to commercial releases only
# which would require a commercial license.
# which would require a commercial license.
# --without-libpaper disables libpaper support because SUSE does not have libpaper.
%define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW
%if 0%{?suse_version} >= 1210
# --without-system-libtiff enforces not to use the systems libtiff because
# currently (dated Thu Mar 15 2012) using system libtiff fails
# in openSUSE:Factory and openSUSE:12.1 with
# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no
# configure: Could not find a copy of libtiff on your system.
# Disabling tiff output devices."
# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory
# currently (dated Thu Mar 15 2012) using system libtiff fails
# in openSUSE:Factory and openSUSE:12.1 with
# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no
# configure: Could not find a copy of libtiff on your system.
# Disabling tiff output devices."
# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory.
%define with_or_without_system_libtiff --without-system-libtiff
%else
%define with_or_without_system_libtiff --with-system-libtiff
@ -155,6 +155,7 @@ autoreconf -fi
--enable-openjpeg \
--enable-dynamic \
--disable-cups \
--disable-dbus \
--without-pdftoraster \
--without-install-cups \
--with-drivers=FILES \
@ -177,7 +178,7 @@ make soinstall DESTDIR=%{buildroot}
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc
for D in LICENSE doc/AUTHORS doc/COPYING doc/GS9_Color_Management.pdf doc/gs-vms.hlp doc/Ps2ps2.htm
for D in LICENSE doc/AUTHORS doc/COPYING doc/thirdparty.htm doc/WhatIsGS.htm doc/GS9_Color_Management.pdf doc/gs-vms.hlp doc/Ps2ps2.htm
do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR
done

View File

@ -1,8 +1,16 @@
-------------------------------------------------------------------
Fri Apr 27 10:40:53 CEST 2012 - jsmeix@suse.de
- BuildRequires dbus-1-devel for "configure --enable-dbus"
to have colord support in gstoraster (see the entry regarding
"color management daemon" in doc/History9.htm).
-------------------------------------------------------------------
Tue Apr 24 14:30:45 CEST 2012 - jsmeix@suse.de
- Install documentation which is not installed by default
(LICENSE doc/AUTHORS doc/COPYING doc/GS9_Color_Management.pdf
(LICENSE doc/AUTHORS doc/COPYING doc/thirdparty.htm
doc/WhatIsGS.htm doc/GS9_Color_Management.pdf
doc/gs-vms.hlp doc/Ps2ps2.htm).
- Add a link from SUSE's usual documentation directory
(/usr/share/doc/packages/ghostscript/) to Ghostscript's

View File

@ -15,9 +15,10 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ghostscript
BuildRequires: cups-devel
# dbus-1-devel is needed for "configure --enable-dbus" (see below):
BuildRequires: dbus-1-devel
BuildRequires: freetype2-devel
BuildRequires: libexpat-devel
BuildRequires: liblcms-devel
@ -227,29 +228,30 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -fi
# --docdir=%%{_defaultdocdir}/%%{name} does not work therefore it is not used.
# --enable-cups and --with-pdftoraster and --with-install-cups
# (--with-install-cups is new since version 9.04)
# to make and install cups/filter/gstoraster and cups/filter/gstopxl
# and related files (gstoraster.convs pxlcolor.ppd pxlmono.ppd).
# (--with-install-cups is new since version 9.04)
# to make and install cups/filter/gstoraster and cups/filter/gstopxl
# and related files (gstoraster.convs pxlcolor.ppd pxlmono.ppd).
# --enable-dbus to have colord support in gstoraster, see cups/colord.c (colord is accessed via D-Bus).
# --with-ijs to enable IJS printer driver support (in particular needed by HPIJS).
# --with-drivers=ALL to all file format drivers and all printer drivers.
# --with-x to use the X Window System.
# --without-omni to disable the outdated and unmaintained omni driver.
# --without-jasper and --enable-openjpeg because since Ghostscript 9.05 JasPer is deprecated
# and Ghostscript now ships modified OpenJPEG sources for JPEG2000 decoding
# (replacing JasPer - although JasPer is still included for this release).
# Performance, reliability and memory use whilst decoding JPX streams are all improved.
# and Ghostscript now ships modified OpenJPEG sources for JPEG2000 decoding
# (replacing JasPer - although JasPer is still included for this release).
# Performance, reliability and memory use whilst decoding JPX streams are all improved.
# --without-ufst and --without-luratech because those are relevant to commercial releases only
# which would require a commercial license.
# which would require a commercial license.
# --without-libpaper disables libpaper support because SUSE does not have libpaper.
%define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW
%if 0%{?suse_version} >= 1210
# --without-system-libtiff enforces not to use the systems libtiff because
# currently (dated Thu Mar 15 2012) using system libtiff fails
# in openSUSE:Factory and openSUSE:12.1 with
# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no
# configure: Could not find a copy of libtiff on your system.
# Disabling tiff output devices."
# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory
# currently (dated Thu Mar 15 2012) using system libtiff fails
# in openSUSE:Factory and openSUSE:12.1 with
# "checking for libtiff with pkg-config... checking for TIFFOpen in -ltiff... no
# configure: Could not find a copy of libtiff on your system.
# Disabling tiff output devices."
# regardless of "BuildRequires libtiff-devel" which works everywhere except openSUSE:Factory.
%define with_or_without_system_libtiff --without-system-libtiff
%else
%define with_or_without_system_libtiff --with-system-libtiff
@ -270,6 +272,7 @@ autoreconf -fi
--enable-openjpeg \
--enable-dynamic \
--enable-cups \
--enable-dbus \
--with-pdftoraster \
--with-install-cups \
--with-drivers=ALL \
@ -292,7 +295,7 @@ make soinstall DESTDIR=%{buildroot}
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc
for D in LICENSE doc/AUTHORS doc/COPYING doc/GS9_Color_Management.pdf doc/gs-vms.hlp doc/Ps2ps2.htm
for D in LICENSE doc/AUTHORS doc/COPYING doc/thirdparty.htm doc/WhatIsGS.htm doc/GS9_Color_Management.pdf doc/gs-vms.hlp doc/Ps2ps2.htm
do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR
done