- 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:
parent
bef1bfdd6b
commit
223c3f6105
@ -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
|
Sat Oct 11 20:03:42 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
28
gfan.spec
28
gfan.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gfan
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
%patch -P 1 -P 2 -P 3 -P 4 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi;
|
autoreconf -fi
|
||||||
%if 0%{?suse_version} <= 1110
|
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused -std=gnu++98"
|
||||||
# -Wno-unused-result is not a recognized option of gcc 4.3
|
%if 0%{?suse_version} > 1110
|
||||||
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused";
|
# -Wno-unused-result not known in old SUSE
|
||||||
%else
|
export CXXFLAGS="$CXXFLAGS -Wno-unused-result"
|
||||||
export CXXFLAGS="%optflags -Wno-sign-compare -Wno-reorder -Wno-unused -Wno-unused-result";
|
|
||||||
%endif
|
%endif
|
||||||
%configure --disable-static --enable-silent-rules
|
%configure --disable-static --enable-silent-rules
|
||||||
make %{?_smp_mflags};
|
make %{?_smp_mflags}
|
||||||
%if 0%{?with_pdf}
|
%if 0%{?with_pdf}
|
||||||
make -C doc %{?_smp_mflags};
|
make -C doc %{?_smp_mflags}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
b="%buildroot"
|
||||||
make install DESTDIR="$b";
|
make install DESTDIR="$b"
|
||||||
for i in $(./gfan _list | grep ^gfan_); do
|
for i in $(./gfan _list | grep ^gfan_); do
|
||||||
ln -s gfan "$b/%_bindir/$i";
|
ln -s gfan "$b/%_bindir/$i"
|
||||||
done;
|
done;
|
||||||
rm -f "$b/%_libdir"/*.la;
|
rm -fv "$b/%_libdir"/*.la
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user