Workaround for race contions during building

This commit is contained in:
Dmitrij S. Kryzhevich 2014-02-07 09:28:53 +07:00
parent bded599e74
commit bfd58002f8
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Name: mathgl
Version: 2.2.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Cross-platform library for making high-quality scientific graphics
Summary(de): Plattformübergreifende Bibliothek für hochwertige wissenschaftliche Graphiken
Summary(ru): Библиотека для осуществления высококачественной визуализации данных
@ -32,8 +32,6 @@ Patch5: mathgl-2.2.1-no_qt4_qt5.patch
# Fix bug with CalcXYZ() function and others. Upstream.
Patch50: mathgl-2.2.1-segfaults.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %{name}-common = %{version}-%{release}
# mandatory packages
@ -199,6 +197,9 @@ sed -i s,/usr/local/share/mathgl/fonts/,%{_datadir}/%{name}/fonts/, udav/prop_dl
%build
OMP_NUM_THREADS=1
export OMP_NUM_THREADS
%define building() \
BUILD_MPI="-Denable-mpi=on -Denable-all-docs=off" %buildcommon
@ -240,7 +241,6 @@ MPI_COMPILER_NAME=mpich %building
%{_mpich_unload}
%install
rm -rf %{buildroot}
# MPI install libs only
%define installing() \
@ -357,6 +357,9 @@ fi
%{_includedir}/mpich-%{_arch}/mgl2/
%changelog
* Fri Feb 7 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.2.1-2
- Workaround for race condition during package building.
* Tue Feb 4 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.2.1-1
- Update for new 2.2.1.