Accepting request 202684 from home:jsmeix:branches:Printing

Ghostscript version upgrade to 9.10. Only for Printing and openSUSE:Factory. Not for openSUSE:13.1 because Ghostscript 9.10 is incompatible with the current printing system in openSUSE because the CUPS filters gstoraster and gstopxl have been removed from Ghostscript. Those filters are now provided by cups-filters which is not provided in the printing system in openSUSE because cups-filters still has issues, see bnc#735404 for details.

OBS-URL: https://build.opensuse.org/request/show/202684
OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=32
This commit is contained in:
Johannes Meixner 2013-10-09 10:15:22 +00:00 committed by Git OBS Bridge
parent b8590836c3
commit c76c978626
6 changed files with 137 additions and 74 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44800d004c53f13192d1b5db413119198ddfc8a11c4d2a030aac2f2fda822ebf
size 31911560

3
ghostscript-9.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:913fc974433238ffd4e0549ce11ba2a3360d1d159cf5c3b988d72a77acb74d04
size 35282727

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10. Primarily a maintenance release.
Highlights in this release include:
* LittleCMS2 and libpng have both been updated to the
latest versions.
* The URW Postscript font set has been updated to the
latest version, fixing many compatibility problems
with the Adobe fonts.
* The CUPS filters gstoraster and gstopxl have been
removed from Ghostscript. Those filters are now provided by
cups-filters (a free software package hosted by OpenPrinting)
that contains all CUPS filters needed by CUPS under Linux
(see also the openSUSE issue bnc#735404 comment#44 at
https://bugzilla.novell.com/show_bug.cgi?id=735404#c44).
For details see the News.htm and History9.htm files.
- fix-undefined-operation.patch is no longer needed because
it is fixed in the upstream sources.
-------------------------------------------------------------------
Thu Aug 29 15:06:13 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10rc1 (release candidate for the 9.10 version).
For details see the News.htm and History9.htm files.
- Prepare spec files to build both releases and release candidates
easily in the future by using special different version strings.
- fix-undefined-operation.patch fixes
http://bugs.ghostscript.com/show_bug.cgi?id=694546
- Removed BuildRequires for liblcms-devel because it is not needed
when we build Ghostscript that works in compliance with upstream
(see https://bugzilla.novell.com/show_bug.cgi?id=828751#c5).
-------------------------------------------------------------------
Wed Mar 27 07:58:08 UTC 2013 - mmeister@suse.com

View File

@ -17,7 +17,6 @@
Name: ghostscript-mini
BuildRequires: freetype2-devel
BuildRequires: liblcms-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
@ -27,12 +26,33 @@ Summary: Minimal Ghostscript for minimal build requirements
License: AGPL-3.0
Group: System/Libraries
Url: http://www.ghostscript.com/
Version: 9.07
# Special version needed for Ghostscript release candidates e.g. "Version: 9.pre10rc1":
# Version 9.10rc1 would be newer than 9.10 (run "zypper vcmp 9.10rc1 9.10") because the rpmvercmp algorithm
# would treat 9.10rc1 as 9.10.rc.1 (alphabetic and numeric sections get separated into different elements)
# and 9.10.rc.1 is newer than 9.10 (it has one more element in the list while previous elements are equal)
# so that we use an alphabetic prefix to make it older than 9.10 (numbers are considered newer than letters):
#Version: 9.pre10rc1
# Normal version for Ghostscript releases is the upstream version:
Version: 9.10
Release: 0
# tarball_version is used below to specify the directory via "setup -n":
# Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.10rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version}
# built_version is used below in the install and files sections:
# Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.10".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version}
# Source0...Source9 is for sources from upstream:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz
# Special URLs for Ghostscript release candidates:
# URL for Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS
# MD5 checksum for Source0: 0cdf23c5dff76040983bca74675f88be
#Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# Normal URLs for Ghostscript releases:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
# MD5 checksum for Source0: 57ebf17c5abcf0fc95a386bfff08c1a4
# MD5 checksum for Source0: 5f0c0a2670b08466a4050ddbd1f3de63
Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream:
#
@ -110,7 +130,7 @@ This package contains the development files for Minimal Ghostscript.
%prep
# Be quiet when unpacking and
# use a directory name matching Source0 to make it work also for ghostscript-mini:
%setup -q -n ghostscript-%{version}
%setup -q -n ghostscript-%{tarball_version}
%build
# Set our preferred architecture-specific flags for the compiler and linker:
@ -134,18 +154,6 @@ autoreconf -fi
# 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.
%define with_or_without_system_libtiff --without-system-libtiff
%else
%define with_or_without_system_libtiff --with-system-libtiff
%endif
# See http://bugs.ghostscript.com/show_bug.cgi?id=693100
export SUSE_ASNEEDED=0
./configure --prefix=%{_prefix} \
@ -156,7 +164,6 @@ export SUSE_ASNEEDED=0
--infodir=%{_infodir} \
--with-fontpath=%{gs_font_path} \
--with-libiconv=maybe \
%{with_or_without_system_libtiff} \
--enable-freetype \
--with-jbig2dec \
--without-jasper \
@ -204,14 +211,10 @@ popd
rm %{buildroot}%{_bindir}/ijs_client_example
rm %{buildroot}%{_bindir}/ijs_server_example
rm %{buildroot}%{_libdir}/libijs.la
# Remove installed but obsolete pdfopt man pages because pdfopt is removed since version 9.07
# and fail intentionally as notification when this is fixed upstream:
rm %{buildroot}%{_mandir}/man1/pdfopt.1 || exit 99
rm %{buildroot}%{_mandir}/de/man1/pdfopt.1 || exit 99
# Install documentation which is not installed by default
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc
for D in LICENSE
do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR
@ -220,7 +223,7 @@ done
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
install -d -m 755 %{buildroot}%{_defaultdocdir}
pushd %{buildroot}%{_defaultdocdir}
ln -s ../../ghostscript/%{version}/doc ghostscript
ln -s ../../ghostscript/%{built_version}/doc ghostscript
popd
# Extract the catalog of devices which are actually built-in in exactly this Ghostscript:
# Do not pollute the build log file with zillions of meaningless messages:
@ -320,12 +323,12 @@ exit 0
%doc %{_mandir}/de/man1/wftopfa.1.gz
%doc %{_defaultdocdir}/ghostscript
%dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{version}
%doc %{_datadir}/ghostscript/%{version}/doc/
%{_datadir}/ghostscript/%{version}/examples/
%{_datadir}/ghostscript/%{version}/iccprofiles/
%{_datadir}/ghostscript/%{version}/lib/
%{_datadir}/ghostscript/%{version}/Resource/
%dir %{_datadir}/ghostscript/%{built_version}
%doc %{_datadir}/ghostscript/%{built_version}/doc/
%{_datadir}/ghostscript/%{built_version}/examples/
%{_datadir}/ghostscript/%{built_version}/iccprofiles/
%{_datadir}/ghostscript/%{built_version}/lib/
%{_datadir}/ghostscript/%{built_version}/Resource/
%{_libdir}/libgs.so.*
%{_libdir}/ghostscript/
%{_libdir}/libijs-0.35.so

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Tue Sep 3 16:26:46 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10. Primarily a maintenance release.
Highlights in this release include:
* LittleCMS2 and libpng have both been updated to the
latest versions.
* The URW Postscript font set has been updated to the
latest version, fixing many compatibility problems
with the Adobe fonts.
* The CUPS filters gstoraster and gstopxl have been
removed from Ghostscript. Those filters are now provided by
cups-filters (a free software package hosted by OpenPrinting)
that contains all CUPS filters needed by CUPS under Linux
(see also the openSUSE issue bnc#735404 comment#44 at
https://bugzilla.novell.com/show_bug.cgi?id=735404#c44).
For details see the News.htm and History9.htm files.
- fix-undefined-operation.patch is no longer needed because
it is fixed in the upstream sources.
-------------------------------------------------------------------
Thu Aug 29 15:06:13 CEST 2013 - jsmeix@suse.de
- Version upgrade to 9.10rc1 (release candidate for the 9.10 version).
For details see the News.htm and History9.htm files.
- Prepare spec files to build both releases and release candidates
easily in the future by using special different version strings.
- fix-undefined-operation.patch fixes
http://bugs.ghostscript.com/show_bug.cgi?id=694546
- Removed BuildRequires for liblcms-devel because it is not needed
when we build Ghostscript that works in compliance with upstream
(see https://bugzilla.novell.com/show_bug.cgi?id=828751#c5).
-------------------------------------------------------------------
Wed Mar 27 07:58:08 UTC 2013 - mmeister@suse.com

View File

@ -21,7 +21,6 @@ BuildRequires: cups-devel
BuildRequires: dbus-1-devel
BuildRequires: freetype2-devel
BuildRequires: libexpat-devel
BuildRequires: liblcms-devel
BuildRequires: libopenssl-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
@ -34,12 +33,33 @@ Summary: The Ghostscript interpreter for PostScript and PDF
License: AGPL-3.0
Group: System/Libraries
Url: http://www.ghostscript.com/
Version: 9.07
# Special version needed for Ghostscript release candidates e.g. "Version: 9.pre10rc1":
# Version 9.10rc1 would be newer than 9.10 (run "zypper vcmp 9.10rc1 9.10") because the rpmvercmp algorithm
# would treat 9.10rc1 as 9.10.rc.1 (alphabetic and numeric sections get separated into different elements)
# and 9.10.rc.1 is newer than 9.10 (it has one more element in the list while previous elements are equal)
# so that we use an alphabetic prefix to make it older than 9.10 (numbers are considered newer than letters):
#Version: 9.pre10rc1
# Normal version for Ghostscript releases is the upstream version:
Version: 9.10
Release: 0
# tarball_version is used below to specify the directory via "setup -n":
# Special tarball_version needed for Ghostscript release candidates e.g. "define tarball_version 9.10rc1".
# For Ghostscript releases tarball_version and version are the same (i.e. the upstream version):
%define tarball_version %{version}
# built_version is used below in the install and files sections:
# Separated built_version needed in case of Ghostscript release candidates e.g. "define built_version 9.10".
# For Ghostscript releases built_version and version are the same (i.e. the upstream version):
%define built_version %{version}
# Source0...Source9 is for sources from upstream:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz
# Special URLs for Ghostscript release candidates:
# URL for Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# URL for MD5 checksums: http://www.ghostscript.com/~chrisl/MD5SUMS
# MD5 checksum for Source0: 0cdf23c5dff76040983bca74675f88be
#Source0: http://www.ghostscript.com/~chrisl/ghostscript-9.10rc1.tar.gz
# Normal URLs for Ghostscript releases:
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
# MD5 checksum for Source0: 57ebf17c5abcf0fc95a386bfff08c1a4
# MD5 checksum for Source0: 5f0c0a2670b08466a4050ddbd1f3de63
Source0: http://downloads.ghostscript.com/public/ghostscript-%{version}.tar.gz
# Patch0...Patch9 is for patches from upstream:
#
@ -224,7 +244,7 @@ This package contains the development files for Ghostscript.
%prep
# Be quiet when unpacking and
# use a directory name matching Source0 to make it work also for ghostscript-mini:
%setup -q -n ghostscript-%{version}
%setup -q -n ghostscript-%{tarball_version}
%build
# Set our preferred architecture-specific flags for the compiler and linker:
@ -249,18 +269,6 @@ autoreconf -fi
# 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.
%define with_or_without_system_libtiff --without-system-libtiff
%else
%define with_or_without_system_libtiff --with-system-libtiff
%endif
# See http://bugs.ghostscript.com/show_bug.cgi?id=693100
export SUSE_ASNEEDED=0
./configure --prefix=%{_prefix} \
@ -271,7 +279,6 @@ export SUSE_ASNEEDED=0
--infodir=%{_infodir} \
--with-fontpath=%{gs_font_path} \
--with-libiconv=maybe \
%{with_or_without_system_libtiff} \
--enable-freetype \
--with-jbig2dec \
--without-jasper \
@ -319,14 +326,10 @@ popd
rm %{buildroot}%{_bindir}/ijs_client_example
rm %{buildroot}%{_bindir}/ijs_server_example
rm %{buildroot}%{_libdir}/libijs.la
# Remove installed but obsolete pdfopt man pages because pdfopt is removed since version 9.07
# and fail intentionally as notification when this is fixed upstream:
rm %{buildroot}%{_mandir}/man1/pdfopt.1 || exit 99
rm %{buildroot}%{_mandir}/de/man1/pdfopt.1 || exit 99
# Install documentation which is not installed by default
# see http://bugs.ghostscript.com/show_bug.cgi?id=693002
# and fail intentionally as notification if something changed:
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{version}/doc
DOCDIR=%{buildroot}%{_datadir}/ghostscript/%{built_version}/doc
for D in LICENSE
do test -e $DOCDIR/$( basename $D ) && exit 99
install -m 644 $D $DOCDIR
@ -335,7 +338,7 @@ done
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
install -d -m 755 %{buildroot}%{_defaultdocdir}
pushd %{buildroot}%{_defaultdocdir}
ln -s ../../ghostscript/%{version}/doc ghostscript
ln -s ../../ghostscript/%{built_version}/doc ghostscript
popd
# Extract the catalog of devices which are actually built-in in exactly this Ghostscript:
# Do not pollute the build log file with zillions of meaningless messages:
@ -364,7 +367,6 @@ exit 0
%files
%defattr(-, root, root)
%config %{_sysconfdir}/cups/gstoraster.convs
%{_bindir}/dvipdf
%{_bindir}/eps2eps
%{_bindir}/font2c
@ -395,14 +397,6 @@ exit 0
%{_bindir}/ps2ps2
%{_bindir}/unix-lpr.sh
%{_bindir}/wftopfa
%dir /usr/lib/cups
%dir /usr/lib/cups/filter
/usr/lib/cups/filter/gstopxl
/usr/lib/cups/filter/gstoraster
%dir %{_datadir}/cups
%dir %{_datadir}/cups/model
%{_datadir}/cups/model/pxlcolor.ppd
%{_datadir}/cups/model/pxlmono.ppd
%doc %{_mandir}/man1/dvipdf.1.gz
%doc %{_mandir}/man1/eps2eps.1.gz
%doc %{_mandir}/man1/font2c.1.gz
@ -444,20 +438,20 @@ exit 0
%doc %{_mandir}/de/man1/wftopfa.1.gz
%doc %{_defaultdocdir}/ghostscript
%dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{version}
%doc %{_datadir}/ghostscript/%{version}/doc/
%{_datadir}/ghostscript/%{version}/examples/
%{_datadir}/ghostscript/%{version}/iccprofiles/
%{_datadir}/ghostscript/%{version}/lib/
%{_datadir}/ghostscript/%{version}/Resource/
%dir %{_datadir}/ghostscript/%{built_version}
%doc %{_datadir}/ghostscript/%{built_version}/doc/
%{_datadir}/ghostscript/%{built_version}/examples/
%{_datadir}/ghostscript/%{built_version}/iccprofiles/
%{_datadir}/ghostscript/%{built_version}/lib/
%{_datadir}/ghostscript/%{built_version}/Resource/
%{_libdir}/libgs.so.*
%{_libdir}/ghostscript/
%{_libdir}/libijs-0.35.so
%exclude %{_libdir}/ghostscript/%{version}/X11.so
%exclude %{_libdir}/ghostscript/%{built_version}/X11.so
%files x11
%defattr(-,root,root)
%{_libdir}/ghostscript/%{version}/X11.so
%{_libdir}/ghostscript/%{built_version}/X11.so
%files devel
%defattr(-,root,root)