- Add missing post and postun sections for ldconfig

- Build with std=gnu++98 because the code has not been written
  with C++11's std::rank in mind.

OBS-URL: https://build.opensuse.org/package/show/science/gfan?expand=0&rev=15
This commit is contained in:
Jan Engelhardt 2016-06-16 21:49:35 +00:00 committed by Git OBS Bridge
parent bef1bfdd6b
commit 223c3f6105
2 changed files with 22 additions and 13 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 16 21:38:19 UTC 2016 - jengelh@inai.de
- Add missing post and postun sections for ldconfig
- Build with std=gnu++98 because the code has not been written
with C++11's std::rank in mind.
-------------------------------------------------------------------
Sat Oct 11 20:03:42 UTC 2014 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package gfan
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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
@ -77,26 +77,28 @@ varieties. These are polyhedral fans associated to polynomial ideals.
%patch -P 1 -P 2 -P 3 -P 4 -p1
%build
autoreconf -fi;
%if 0%{?suse_version} <= 1110
# -Wno-unused-result is not a recognized option of gcc 4.3
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused";
%else
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused -Wno-unused-result";
autoreconf -fi
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused -std=gnu++98"
%if 0%{?suse_version} > 1110
# -Wno-unused-result not known in old SUSE
export CXXFLAGS="$CXXFLAGS -Wno-unused-result"
%endif
%configure --disable-static --enable-silent-rules
make %{?_smp_mflags};
make %{?_smp_mflags}
%if 0%{?with_pdf}
make -C doc %{?_smp_mflags};
make -C doc %{?_smp_mflags}
%endif
%install
b="%buildroot";
make install DESTDIR="$b";
b="%buildroot"
make install DESTDIR="$b"
for i in $(./gfan _list | grep ^gfan_); do
ln -s gfan "$b/%_bindir/$i";
ln -s gfan "$b/%_bindir/$i"
done;
rm -f "$b/%_libdir"/*.la;
rm -fv "$b/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)