Accepting request 121594 from Printing
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/121594 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript?expand=0&rev=3
This commit is contained in:
commit
7f03799df1
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 10 15:49:33 CEST 2012 - jsmeix@suse.de
|
||||||
|
|
||||||
|
- Require Ghostscript's font packages because the
|
||||||
|
Ghostscript package provides the "Fontmap" file
|
||||||
|
/usr/share/ghostscript/<version>/Resource/Init/Fontmap.GS
|
||||||
|
which lists Ghostscript's fonts but the fonts itself
|
||||||
|
are provided in the separated packages ghostscript-fonts-std
|
||||||
|
and ghostscript-fonts-other so that a RPM requirement
|
||||||
|
is needed to make sure that Ghostscript has its fonts.
|
||||||
|
- Extract the catalog of devices which are actually built-in
|
||||||
|
in exactly this Ghostscript and provide it as catalog.devices
|
||||||
|
in the Ghostscript package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 24 14:30:45 CEST 2012 - jsmeix@suse.de
|
Tue Apr 24 14:30:45 CEST 2012 - jsmeix@suse.de
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: ghostscript-mini
|
Name: ghostscript-mini
|
||||||
BuildRequires: freetype2-devel
|
BuildRequires: freetype2-devel
|
||||||
BuildRequires: liblcms-devel
|
BuildRequires: liblcms-devel
|
||||||
@ -48,8 +49,14 @@ Conflicts: ghostscript
|
|||||||
Conflicts: ghostscript-x11
|
Conflicts: ghostscript-x11
|
||||||
Conflicts: ghostscript-devel
|
Conflicts: ghostscript-devel
|
||||||
Conflicts: ghostscript-library
|
Conflicts: ghostscript-library
|
||||||
# Require only the basic fonts for Ghostscript (but do not recommend ghostscript-fonts-other):
|
# Require Ghostscript's fonts because the Ghostscript package provides the
|
||||||
|
# "Fontmap" file /usr/share/ghostscript/<version>/Resource/Init/Fontmap.GS
|
||||||
|
# which lists Ghostscript's fonts but the fonts itself are provided in the
|
||||||
|
# separated packages ghostscript-fonts-std and ghostscript-fonts-other
|
||||||
|
# (regarding separated packages see /usr/share/ghostscript/<version>/doc/Fonts.htm)
|
||||||
|
# so that a RPM requirement is needed to make sure that Ghostscript has its fonts:
|
||||||
Requires: ghostscript-fonts-std
|
Requires: ghostscript-fonts-std
|
||||||
|
Requires: ghostscript-fonts-other
|
||||||
# Prerequire /sbin/ldconfig which is used in the traditional bash scriptlets for post/postun:
|
# Prerequire /sbin/ldconfig which is used in the traditional bash scriptlets for post/postun:
|
||||||
PreReq: /sbin/ldconfig
|
PreReq: /sbin/ldconfig
|
||||||
# Install into this non-root directory (required when norootforbuild is used):
|
# Install into this non-root directory (required when norootforbuild is used):
|
||||||
@ -184,10 +191,22 @@ do test -e $DOCDIR/$( basename $D ) && exit 99
|
|||||||
done
|
done
|
||||||
# Add a link from SUSE's usual documentation directory to Ghostscript's documentation directory
|
# Add a link from SUSE's usual documentation directory to Ghostscript's documentation directory
|
||||||
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
|
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
|
||||||
install -d -m755 %{buildroot}%{_defaultdocdir}
|
install -d -m 755 %{buildroot}%{_defaultdocdir}
|
||||||
pushd %{buildroot}%{_defaultdocdir}
|
pushd %{buildroot}%{_defaultdocdir}
|
||||||
ln -s ../../ghostscript/%{version}/doc ghostscript
|
ln -s ../../ghostscript/%{version}/doc ghostscript
|
||||||
popd
|
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:
|
||||||
|
set +x
|
||||||
|
cat /dev/null >catalog.devices
|
||||||
|
for D in $( %{buildroot}/usr/bin/gs -h | sed -n -e '/^Available devices:/,/^Search path:/p' | egrep -v '^Available devices:|^Search path:' )
|
||||||
|
do for F in base/devs.mak base/contrib.mak contrib/contrib.mak
|
||||||
|
do sed -n -e '/ Catalog /,/ End of catalog /p' $F | grep "[[:space:]]$D[[:space:]]" | grep -o '[[:alnum:]].*' | tr -s '[:blank:]' ' ' | sed -e 's/ /\t/' | expand -t16 >>catalog.devices
|
||||||
|
done
|
||||||
|
done
|
||||||
|
# Switch back to the usual build log messages:
|
||||||
|
set -x
|
||||||
|
install -m 644 catalog.devices $DOCDIR
|
||||||
|
|
||||||
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe
|
# 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
|
# see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 10 15:49:33 CEST 2012 - jsmeix@suse.de
|
||||||
|
|
||||||
|
- Require Ghostscript's font packages because the
|
||||||
|
Ghostscript package provides the "Fontmap" file
|
||||||
|
/usr/share/ghostscript/<version>/Resource/Init/Fontmap.GS
|
||||||
|
which lists Ghostscript's fonts but the fonts itself
|
||||||
|
are provided in the separated packages ghostscript-fonts-std
|
||||||
|
and ghostscript-fonts-other so that a RPM requirement
|
||||||
|
is needed to make sure that Ghostscript has its fonts.
|
||||||
|
- Extract the catalog of devices which are actually built-in
|
||||||
|
in exactly this Ghostscript and provide it as catalog.devices
|
||||||
|
in the Ghostscript package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 27 10:40:53 CEST 2012 - jsmeix@suse.de
|
Fri Apr 27 10:40:53 CEST 2012 - jsmeix@suse.de
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: ghostscript
|
Name: ghostscript
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
# dbus-1-devel is needed for "configure --enable-dbus" (see below):
|
# dbus-1-devel is needed for "configure --enable-dbus" (see below):
|
||||||
@ -128,10 +129,14 @@ Conflicts: ghostscript-x11 > %{version}-%{release}
|
|||||||
# When the ghostscript main-package is installed, usually the exact matching
|
# When the ghostscript main-package is installed, usually the exact matching
|
||||||
# version-release of the ghostscript-x11 sub-package should be also installed:
|
# version-release of the ghostscript-x11 sub-package should be also installed:
|
||||||
Recommends: ghostscript-x11 = %{version}-%{release}
|
Recommends: ghostscript-x11 = %{version}-%{release}
|
||||||
# Require the basic fonts for Ghostscript:
|
# Require Ghostscript's fonts because the Ghostscript package provides the
|
||||||
|
# "Fontmap" file /usr/share/ghostscript/<version>/Resource/Init/Fontmap.GS
|
||||||
|
# which lists Ghostscript's fonts but the fonts itself are provided in the
|
||||||
|
# separated packages ghostscript-fonts-std and ghostscript-fonts-other
|
||||||
|
# (regarding separated packages see /usr/share/ghostscript/<version>/doc/Fonts.htm)
|
||||||
|
# so that a RPM requirement is needed to make sure that Ghostscript has its fonts:
|
||||||
Requires: ghostscript-fonts-std
|
Requires: ghostscript-fonts-std
|
||||||
# Usually the optional fonts for Ghostscript should be also installed:
|
Requires: ghostscript-fonts-other
|
||||||
Recommends: ghostscript-fonts-other
|
|
||||||
# Prerequire /sbin/ldconfig which is used in the traditional bash scriptlets for post/postun:
|
# Prerequire /sbin/ldconfig which is used in the traditional bash scriptlets for post/postun:
|
||||||
PreReq: /sbin/ldconfig
|
PreReq: /sbin/ldconfig
|
||||||
# Install into this non-root directory (required when norootforbuild is used):
|
# Install into this non-root directory (required when norootforbuild is used):
|
||||||
@ -301,10 +306,22 @@ do test -e $DOCDIR/$( basename $D ) && exit 99
|
|||||||
done
|
done
|
||||||
# Add a link from SUSE's usual documentation directory to Ghostscript's documentation directory
|
# Add a link from SUSE's usual documentation directory to Ghostscript's documentation directory
|
||||||
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
|
# because "configure --docdir=%%{_defaultdocdir}/%%{name}" does not work (see above):
|
||||||
install -d -m755 %{buildroot}%{_defaultdocdir}
|
install -d -m 755 %{buildroot}%{_defaultdocdir}
|
||||||
pushd %{buildroot}%{_defaultdocdir}
|
pushd %{buildroot}%{_defaultdocdir}
|
||||||
ln -s ../../ghostscript/%{version}/doc ghostscript
|
ln -s ../../ghostscript/%{version}/doc ghostscript
|
||||||
popd
|
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:
|
||||||
|
set +x
|
||||||
|
cat /dev/null >catalog.devices
|
||||||
|
for D in $( %{buildroot}/usr/bin/gs -h | sed -n -e '/^Available devices:/,/^Search path:/p' | egrep -v '^Available devices:|^Search path:' )
|
||||||
|
do for F in base/devs.mak base/contrib.mak contrib/contrib.mak
|
||||||
|
do sed -n -e '/ Catalog /,/ End of catalog /p' $F | grep "[[:space:]]$D[[:space:]]" | grep -o '[[:alnum:]].*' | tr -s '[:blank:]' ' ' | sed -e 's/ /\t/' | expand -t16 >>catalog.devices
|
||||||
|
done
|
||||||
|
done
|
||||||
|
# Switch back to the usual build log messages:
|
||||||
|
set -x
|
||||||
|
install -m 644 catalog.devices $DOCDIR
|
||||||
|
|
||||||
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe
|
# 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
|
# see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
|
||||||
|
Loading…
Reference in New Issue
Block a user