Accepting request 110738 from home:jsmeix:branches:Printing
Cleaned up BuildRequires. Added ghostscript-mini.spec with minimal BuildRequires. OBS-URL: https://build.opensuse.org/request/show/110738 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=7
This commit is contained in:
parent
a1b0006c5f
commit
71c6102332
13
ghostscript-mini.changes
Normal file
13
ghostscript-mini.changes
Normal file
@ -0,0 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 23 11:32:28 CET 2012 - jsmeix@suse.de
|
||||
|
||||
- Cleaned up BuildRequires.
|
||||
- Explicitly specify configure --with-* versus --without-*
|
||||
in ghostscript.spec versus ghostscript-mini.spec
|
||||
to make the differences clear.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 20 16:07:56 CET 2012 - jsmeix@suse.de
|
||||
|
||||
- Initial ghostscript-mini package.
|
||||
|
251
ghostscript-mini.spec
Normal file
251
ghostscript-mini.spec
Normal file
@ -0,0 +1,251 @@
|
||||
#
|
||||
# spec file for package ghostscript-mini
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: ghostscript-mini
|
||||
BuildRequires: freetype2-devel
|
||||
BuildRequires: liblcms-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: zlib-devel
|
||||
AutoReqProv: on
|
||||
Summary: Minimal Ghostscript for minimal build requirements
|
||||
Group: System/Libraries
|
||||
License: GPL-3.0
|
||||
Url: http://www.ghostscript.com/
|
||||
Version: 9.05
|
||||
Release: 1
|
||||
# Source0...Source9 is for sources from upstream:
|
||||
# URL for Source0: http://downloads.ghostscript.com/public/ghostscript-9.05.tar.gz
|
||||
# URL for MD5 checksums: http://downloads.ghostscript.com/public/MD5SUMS
|
||||
# MD5 checksum for Source0: f7c6f0431ca8d44ee132a55d583212c1
|
||||
Source0: ghostscript-%{version}.tar.gz
|
||||
# Patch0...Patch9 is for patches from upstream:
|
||||
#
|
||||
# Source10...Source99 is for sources from SUSE which are intended for upstream:
|
||||
#
|
||||
# Patch10...Patch99 is for patches from SUSE which are intended for upstream:
|
||||
#
|
||||
# Source100...Source999 is for sources from SUSE which are not intended for upstream:
|
||||
#
|
||||
# Patch100...Patch999 is for patches from SUSE which are not intended for upstream:
|
||||
#
|
||||
Conflicts: ghostscript
|
||||
Conflicts: ghostscript-x11
|
||||
Conflicts: ghostscript-devel
|
||||
# Prerequire /sbin/ldconfig which is used in the traditional bash scriptlets for post/postun:
|
||||
PreReq: /sbin/ldconfig
|
||||
# Install into this non-root directory (required when norootforbuild is used):
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Crippled Minimal Ghostscript which is not meant
|
||||
to be used by end-users.
|
||||
|
||||
Minimal Ghostscript provides only the file format drivers
|
||||
in particular to output JPEG PNG PostScript and PDF files
|
||||
but no printer drivers (in particular neither 'cups'
|
||||
nor 'ijs') and no X11 drivers.
|
||||
|
||||
The ghostscript-mini package is only meant to be used
|
||||
by the openSUSE build service to avoid possible loops
|
||||
in the build dependencies because ghostscript-mini
|
||||
has minimal build dependencies (in particular
|
||||
neither CUPS nor X11 build dependencies).
|
||||
|
||||
%package devel
|
||||
License: GPL-3.0
|
||||
Summary: Development files for Minimal Ghostscript
|
||||
Requires: ghostscript-mini = %{version}
|
||||
Conflicts: ghostscript
|
||||
Conflicts: ghostscript-x11
|
||||
Conflicts: ghostscript-devel
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description devel
|
||||
This package contains the development files for Minimal Ghostscript.
|
||||
|
||||
%prep
|
||||
# Be quiet when unpacking using a directory name matching Source0:
|
||||
%setup -q -n ghostscript-%{version}
|
||||
|
||||
%build
|
||||
# Set our preferred architecture-specific flags for the compiler and linker:
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
autoreconf -fi
|
||||
# --disable-cups and --without-pdftoraster and --without-install-cups
|
||||
# to have nothing related to CUPS 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.
|
||||
# --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.
|
||||
# --without-ufst and --without-luratech because those are relevant to commercial releases only
|
||||
# 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
|
||||
./configure --prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--mandir=%{_mandir} \
|
||||
--datadir=%{_datadir} \
|
||||
--infodir=%{_infodir} \
|
||||
--libdir=%{_libdir} \
|
||||
--with-fontpath=%{gs_font_path} \
|
||||
--with-libiconv=maybe \
|
||||
%{with_or_without_system_libtiff} \
|
||||
--enable-freetype \
|
||||
--without-ijs \
|
||||
--with-jbig2dec \
|
||||
--without-jasper \
|
||||
--enable-openjpeg \
|
||||
--enable-dynamic \
|
||||
--disable-cups \
|
||||
--without-pdftoraster \
|
||||
--without-install-cups \
|
||||
--with-drivers=FILES \
|
||||
--without-x \
|
||||
--disable-gtk \
|
||||
--disable-compile-inits \
|
||||
--without-omni \
|
||||
--without-ufst \
|
||||
--without-luratech \
|
||||
--without-libpaper
|
||||
make
|
||||
# make libgs.so and two programs which use it, gsx and gsc:
|
||||
make so
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
# install libgs.so gsx gsc and some header files:
|
||||
make soinstall DESTDIR=%{buildroot}
|
||||
|
||||
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe
|
||||
# see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
exit 0
|
||||
|
||||
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe
|
||||
# see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%{_bindir}/dumphint
|
||||
%{_bindir}/dvipdf
|
||||
%{_bindir}/eps2eps
|
||||
%{_bindir}/font2c
|
||||
%{_bindir}/gs
|
||||
%{_bindir}/gsx
|
||||
%{_bindir}/gsc
|
||||
%{_bindir}/gsbj
|
||||
%{_bindir}/gsdj
|
||||
%{_bindir}/gsdj500
|
||||
%{_bindir}/gslj
|
||||
%{_bindir}/gslp
|
||||
%{_bindir}/gsnd
|
||||
%{_bindir}/lprsetup.sh
|
||||
%{_bindir}/pdf2dsc
|
||||
%{_bindir}/pdf2ps
|
||||
%{_bindir}/pdfopt
|
||||
%{_bindir}/pf2afm
|
||||
%{_bindir}/pfbtopfa
|
||||
%{_bindir}/pphs
|
||||
%{_bindir}/printafm
|
||||
%{_bindir}/ps2ascii
|
||||
%{_bindir}/ps2epsi
|
||||
%{_bindir}/ps2pdf
|
||||
%{_bindir}/ps2pdf12
|
||||
%{_bindir}/ps2pdf13
|
||||
%{_bindir}/ps2pdf14
|
||||
%{_bindir}/ps2pdfwr
|
||||
%{_bindir}/ps2ps
|
||||
%{_bindir}/ps2ps2
|
||||
%{_bindir}/unix-lpr.sh
|
||||
%{_bindir}/wftopfa
|
||||
%doc %{_mandir}/man1/dvipdf.1.gz
|
||||
%doc %{_mandir}/man1/eps2eps.1.gz
|
||||
%doc %{_mandir}/man1/font2c.1.gz
|
||||
%doc %{_mandir}/man1/gs.1.gz
|
||||
%doc %{_mandir}/man1/gsbj.1.gz
|
||||
%doc %{_mandir}/man1/gsdj.1.gz
|
||||
%doc %{_mandir}/man1/gsdj500.1.gz
|
||||
%doc %{_mandir}/man1/gslj.1.gz
|
||||
%doc %{_mandir}/man1/gslp.1.gz
|
||||
%doc %{_mandir}/man1/gsnd.1.gz
|
||||
%doc %{_mandir}/man1/pdf2dsc.1.gz
|
||||
%doc %{_mandir}/man1/pdf2ps.1.gz
|
||||
%doc %{_mandir}/man1/pdfopt.1.gz
|
||||
%doc %{_mandir}/man1/pf2afm.1.gz
|
||||
%doc %{_mandir}/man1/pfbtopfa.1.gz
|
||||
%doc %{_mandir}/man1/printafm.1.gz
|
||||
%doc %{_mandir}/man1/ps2ascii.1.gz
|
||||
%doc %{_mandir}/man1/ps2epsi.1.gz
|
||||
%doc %{_mandir}/man1/ps2pdf.1.gz
|
||||
%doc %{_mandir}/man1/ps2pdf12.1.gz
|
||||
%doc %{_mandir}/man1/ps2pdf13.1.gz
|
||||
%doc %{_mandir}/man1/ps2pdf14.1.gz
|
||||
%doc %{_mandir}/man1/ps2pdfwr.1.gz
|
||||
%doc %{_mandir}/man1/ps2ps.1.gz
|
||||
%doc %{_mandir}/man1/wftopfa.1.gz
|
||||
%doc %{_mandir}/de/man1/dvipdf.1.gz
|
||||
%doc %{_mandir}/de/man1/eps2eps.1.gz
|
||||
%doc %{_mandir}/de/man1/font2c.1.gz
|
||||
%doc %{_mandir}/de/man1/gsnd.1.gz
|
||||
%doc %{_mandir}/de/man1/pdf2dsc.1.gz
|
||||
%doc %{_mandir}/de/man1/pdf2ps.1.gz
|
||||
%doc %{_mandir}/de/man1/pdfopt.1.gz
|
||||
%doc %{_mandir}/de/man1/printafm.1.gz
|
||||
%doc %{_mandir}/de/man1/ps2ascii.1.gz
|
||||
%doc %{_mandir}/de/man1/ps2pdf.1.gz
|
||||
%doc %{_mandir}/de/man1/ps2pdf12.1.gz
|
||||
%doc %{_mandir}/de/man1/ps2pdf13.1.gz
|
||||
%doc %{_mandir}/de/man1/ps2pdf14.1.gz
|
||||
%doc %{_mandir}/de/man1/ps2ps.1.gz
|
||||
%doc %{_mandir}/de/man1/wftopfa.1.gz
|
||||
%{_datadir}/ghostscript/
|
||||
%{_libdir}/libgs.so.*
|
||||
%{_libdir}/ghostscript/
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/ghostscript/
|
||||
%{_libdir}/libgs.so
|
||||
|
||||
%changelog
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 23 11:32:28 CET 2012 - jsmeix@suse.de
|
||||
|
||||
- Cleaned up BuildRequires.
|
||||
- Added ghostscript-mini.spec with minimal BuildRequires.
|
||||
- Explicitly specify configure --with-* versus --without-*
|
||||
in ghostscript.spec versus ghostscript-mini.spec
|
||||
to make the differences clear.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 16 10:27:01 CET 2012 - jsmeix@suse.de
|
||||
|
||||
@ -17,15 +26,6 @@ Thu Mar 15 16:43:26 CET 2012 - jsmeix@suse.de
|
||||
|
||||
- Configure --without-libpaper disables libpaper support
|
||||
because SUSE does not have libpaper.
|
||||
- Configure --without-system-libtiff enforces not to use
|
||||
the systems libtiff because currently (dated Thu Mar 15 2012)
|
||||
using system libtiff fails in openSUSE:Factory 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 15 12:28:36 CET 2012 - jsmeix@suse.de
|
||||
@ -101,5 +101,5 @@ Tue Dec 13 15:18:06 UTC 2011 - jw@suse.com
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 15 16:06:40 CET 2011 - jsmeix@suse.de
|
||||
|
||||
- Initial package.
|
||||
- Initial ghostscript package.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghostscript
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -20,22 +20,14 @@
|
||||
Name: ghostscript
|
||||
BuildRequires: cups-devel
|
||||
BuildRequires: docbook-toys
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: ed
|
||||
BuildRequires: flex
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: freetype2-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libexpat-devel
|
||||
%if 0%{?suse_version:%{suse_version}} > 1130
|
||||
BuildRequires: liblcms-devel
|
||||
%endif
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: t1utils
|
||||
BuildRequires: xorg-x11-devel
|
||||
BuildRequires: xorg-x11-fonts
|
||||
BuildRequires: zlib-devel
|
||||
@ -142,8 +134,6 @@ Recommends: ghostscript-x11 = %{version}-%{release}
|
||||
PreReq: /sbin/ldconfig
|
||||
# Install into this non-root directory (required when norootforbuild is used):
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# Used in "configure --with-fontpath=...":
|
||||
%define gsfontpath /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW
|
||||
|
||||
%description
|
||||
Ghostscript is a package of software that provides:
|
||||
@ -221,6 +211,7 @@ Requires: ghostscript = %{version}
|
||||
Conflicts: ghostscript-library < %{version}
|
||||
Conflicts: ghostscript-library > %{version}
|
||||
Conflicts: ghostscript-mini
|
||||
Conflicts: ghostscript-mini-devel
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description devel
|
||||
@ -235,9 +226,14 @@ This package contains the development files for Ghostscript.
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
autoreconf -fi
|
||||
# --enable-cups and --with-install-cups (the latter is new since version 9.04)
|
||||
# make and install cups/filter/gstoraster and cups/filter/gstopxl
|
||||
# --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-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).
|
||||
@ -245,21 +241,28 @@ autoreconf -fi
|
||||
# --without-ufst and --without-luratech because those are relevant to commercial releases only
|
||||
# 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 with
|
||||
# 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.
|
||||
# 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
|
||||
./configure --prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--mandir=%{_mandir} \
|
||||
--datadir=%{_datadir} \
|
||||
--infodir=%{_infodir} \
|
||||
--libdir=%{_libdir} \
|
||||
--with-fontpath=%{gsfontpath} \
|
||||
--with-fontpath=%{gs_font_path} \
|
||||
--with-libiconv=maybe \
|
||||
--without-system-libtiff \
|
||||
%{with_or_without_system_libtiff} \
|
||||
--enable-freetype \
|
||||
--with-ijs \
|
||||
--with-jbig2dec \
|
||||
@ -270,6 +273,7 @@ autoreconf -fi
|
||||
--with-pdftoraster \
|
||||
--with-install-cups \
|
||||
--with-drivers=ALL \
|
||||
--with-x \
|
||||
--disable-gtk \
|
||||
--disable-compile-inits \
|
||||
--without-omni \
|
||||
@ -277,7 +281,7 @@ autoreconf -fi
|
||||
--without-luratech \
|
||||
--without-libpaper
|
||||
make
|
||||
# make libgs.so and two programs which use it, gsx which uses Gtk+ and gsc which does not:
|
||||
# make libgs.so and two programs which use it, gsx and gsc:
|
||||
make so
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user