Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-ghostscript-921
dba-ghostscript-921.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-ghostscript-921.spec of Package dba-ghostscript-921
%define real_name ghostscript %define version 9.21 %define vers 921 %define prefix /DBA/%{real_name}/%{version} %define auto269 1 Name: dba-%{real_name}-%{vers} Summary: The Ghostscript interpreter for PostScript and PDF version 9.21 License: AGPL-3.0 Group: System/Libraries Url: http://www.ghostscript.com/ Version: %{version} Release: 1 Source0: ghostscript-%{version}.tar.gz Source1: ghostscript-rpmlintrc Patch11: ppc64le-support.patch Patch100: remove-zlib-h-dependency.patch Patch101: CVE-2017-5951.patch Patch102: CVE-2017-8291.patch BuildRoot: %{_tmppath}/%{real_name}-%{version}-build #!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 BuildRequires: cups-devel BuildRequires: automake autoconf libtool m4 patch %if %{auto269} BuildRequires: dba-m4-1417 dba-autoconf-269 %define autodir /DBA/autoconf/2.69 %endif BuildRequires: dbus-1-devel BuildRequires: freetype2-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: pkg-config BuildRequires: zlib-devel %if 0%{?suse_version} BuildRequires: libexpat-devel freetype2-devel BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-fonts %else BuildRequires: expat-devel freetype-devel BuildRequires: libX11-devel BuildRequires: xorg-x11-fonts-misc %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description Ghostscript is a package of software that provides: An interpreter for the PostScript language, with the ability to convert PostScript language files to many raster formats, view them on displays, and print them on printers that don't have PostScript language capability built in. An interpreter for Portable Document Format (PDF) files, with the same abilities. The ability to convert PostScript language files to PDF (with some limitations) and vice versa. A set of C procedures (the Ghostscript library) that implement the graphics and filtering (data compression / decompression / conversion) capabilities that appear as primitive operations in the PostScript language and in PDF. For information how to use Ghostscript see /usr/share/ghostscript/%{version}/doc/Use.htm %prep %setup -q -n %{real_name}-%{version} %patch11 -p1 -b .ppc64le-support.orig rm -rf freetype jpeg libpng tiff %patch101 -b .CVE-2017-5951.orig %patch102 -p1 -b .CVE-2017-8291.orig %build %if %{auto269} export PATH=%{autodir}/bin:$PATH %endif # Derive build timestamp from latest changelog entry export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s) # Set our preferred architecture-specific flags for the compiler and linker: export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" autoreconf -fi %define gs_font_path /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID:/usr/share/fonts/URW export SUSE_ASNEEDED=0 ./configure --prefix=%{prefix} \ --with-fontpath=%{gs_font_path} \ --with-libiconv=maybe \ --enable-freetype \ --with-jbig2dec \ --enable-openjpeg \ --enable-dynamic \ --with-ijs \ --enable-cups \ --with-drivers=ALL \ --with-x \ --disable-gtk \ --without-omni \ --without-ufst \ --without-luratech \ --without-libpaper %{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags} so # Configure and make libijs (that is not done regardless whether or not --with-ijs is used above): pushd ijs ./autogen.sh ./configure --prefix=%{prefix} \ --enable-shared \ --disable-static make popd %install # prevent rpath problem on suse export NO_BRP_CHECK_RPATH=true %{__mkdir_p} %{buildroot}%{prefix} %{__make} install DESTDIR=%{buildroot} %{__make} soinstall DESTDIR=%{buildroot} pushd ijs %{__make} install DESTDIR=%{buildroot} popd # rm %{buildroot}%{_bindir}/ijs_client_example # rm %{buildroot}%{_bindir}/ijs_server_example # rm %{buildroot}%{_libdir}/libijs.la # 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}%{prefix}/data/ghostscript/%{version}/doc %{__mkdir_p} $DOCDIR for D in LICENSE do test -e $DOCDIR/$( basename $D ) && exit 99 install -m 644 $D $DOCDIR done for F in devices/devs.mak devices/contrib.mak contrib/contrib.mak do test -r $F || exit 99 done # Do not pollute the build log file with zillions of meaningless messages: set +x cat /dev/null >catalog.devices for D in $( %{buildroot}%{prefix}/bin/gs -h | sed -n -e '/^Available devices:/,/^Search path:/p' | egrep -v '^Available devices:|^Search path:' ) do for F in devices/devs.mak devices/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 %files %defattr(-,root,root) %dir %{prefix} %{prefix}/* %changelog * Tue Apr 19 2016 Holger Manthey <holger.manthey@bertelsmann.de> - initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor