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\