From 2aeea274fbec618d826825ddde95433436ade39a4c3f3a1aade26d554c699e01 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Tue, 7 Oct 2014 14:35:11 +0000 Subject: [PATCH] Accepting request 254371 from home:elvigia:branches:Publishing - Restrict xorg library requires to the mininum needed. - BUild C++ bits with -fvisibility-inlines-hidden. OBS-URL: https://build.opensuse.org/request/show/254371 OBS-URL: https://build.opensuse.org/package/show/Publishing/plotutils?expand=0&rev=19 --- plotutils.changes | 6 ++++++ plotutils.spec | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/plotutils.changes b/plotutils.changes index c5a8e91..30478b4 100644 --- a/plotutils.changes +++ b/plotutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 6 17:39:33 UTC 2014 - crrodriguez@opensuse.org + +- Restrict xorg library requires to the mininum needed. +- BUild C++ bits with -fvisibility-inlines-hidden. + ------------------------------------------------------------------- Mon Jul 15 12:24:40 UTC 2013 - werner@suse.de diff --git a/plotutils.spec b/plotutils.spec index 9d68bd3..e0eabbe 100644 --- a/plotutils.spec +++ b/plotutils.spec @@ -1,7 +1,7 @@ # # spec file for package plotutils # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 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 @@ -44,8 +44,15 @@ BuildRequires: fontpackages-devel BuildRequires: gcc-c++ BuildRequires: libpng-devel BuildRequires: libtool +BuildRequires: pkgconfig +%if %suse_version < 1220 BuildRequires: xorg-x11-devel -BuildRequires: zlib-devel +%else +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xaw7) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xt) +%endif %if %suse_version >= 1230 BuildRequires: gpg-offline %endif @@ -136,6 +143,7 @@ graphics animations under the X Window System. grep -rslE '(made by GNU Bison|A Bison parser, made from|"lex.yy.c")' . | xargs -r touch %build +export CXXFLAGS="%optflags -fvisibility-inlines-hidden" autoreconf -f -i %configure --with-pic\ --disable-static\