Accepting request 709398 from home:kstreitova:branches:Base:System
- add gzip-1.10-ibm_dfltcc_support.patch [jsc#SLE-5818] * it adds support for DFLTCC (hardware-accelerated deflation) for s390x arch * enable it via "--enable-dfltcc" option OBS-URL: https://build.opensuse.org/request/show/709398 OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=68
This commit is contained in:
18
gzip.spec
18
gzip.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gzip
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -34,6 +34,9 @@ Patch6: zdiff.diff
|
||||
# PATCH FIX OPENSUSE BNC#799561 - zgrep silently fails on LZMA compressed files
|
||||
Patch7: xz_lzma.patch
|
||||
Patch8: manpage-no-date.patch
|
||||
Patch9: gzip-1.10-ibm_dfltcc_support.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: makeinfo
|
||||
BuildRequires: xz
|
||||
Requires(post): %{install_info_prereq}
|
||||
@@ -53,14 +56,25 @@ times.
|
||||
%patch6
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%ifarch s390x
|
||||
%patch9 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fomit-frame-pointer \
|
||||
-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith -fPIE"
|
||||
export LDFLAGS="-pie"
|
||||
# added because of gzip-1.10-ibm_dfltcc_support.patch [jsc#SLE-5818]
|
||||
%ifarch s390x
|
||||
autoreconf -f -i
|
||||
%endif
|
||||
%configure --disable-silent-rules \
|
||||
gl_cv_func_printf_directive_n=yes \
|
||||
gl_cv_func_printf_infinite_long_double=yes
|
||||
gl_cv_func_printf_infinite_long_double=yes \
|
||||
%ifarch s390x
|
||||
--enable-dfltcc \
|
||||
%endif
|
||||
|
||||
profile_gzip()
|
||||
{
|
||||
tmpfile=$(mktemp)
|
||||
|
Reference in New Issue
Block a user