Dominique Leuenberger 2019-07-29 15:24:34 +00:00 committed by Git OBS Bridge
commit b33f175394
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 16 07:52:48 UTC 2019 - Martin Liška <mliska@suse.cz>
- Disable -Werror=return-type for now.
- Use %make_build for parallel build.
-------------------------------------------------------------------
Fri Apr 12 16:33:57 UTC 2019 - Johannes Weberhofer <jweberhofer@weberhofer.at>

View File

@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -429,8 +429,8 @@ sed -i -e 's|/usr/share/icons/Humanity/devices/48/printer.svg|printer|' hp-uisca
# in each directory where a Makefile.am exists:
AUTOMAKE='automake --foreign' autoreconf -fvi
# Set our preferred architecture-specific flags for the compiler and linker:
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="%{optflags} -Wno-error=return-type"
export CXXFLAGS="%{optflags} -fno-strict-aliasing -Wno-error=return-type"
# --disable-pp-build disables parallel port build because parallel port support is deprecated by upstream HPLIP
# and by upstream in general cf. "Parallel port printers" at https://en.opensuse.org/SDB:Installing_a_Printer
# Since version 3.9.6 the default printer driver install changed from hpijs to hpcups.
@ -486,9 +486,9 @@ export CXXFLAGS="%{optflags} -fno-strict-aliasing"
--with-mimedir=%{_sysconfdir}/cups \
--with-docdir=%{_defaultdocdir}/%{name} \
--with-htmldir==%{_defaultdocdir}/%{name} \
CFLAGS='%{optflags}' \
CFLAGS='%{optflags} -Wno-error=return-type' \
PYTHON=%{pyexe}
make
%make_build
sed -i 's|ppd/hpcups/\*.ppd.gz ||g' Makefile
%install