| |
@@ -19,14 +19,13 @@
|
| |
|
| |
%bcond_without tests
|
| |
|
| |
- %global commit fb5d4ea736282dce14c3284bc5db748b082db957
|
| |
- %global checkoutdate 20200225
|
| |
- %global shortcommit %(c=%{commit}; echo ${c:0:7})
|
| |
+ #%%global commit fb5d4ea736282dce14c3284bc5db748b082db957
|
| |
+ #%%global checkoutdate 20200225
|
| |
+ #%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
| |
|
| |
Name: arbor
|
| |
- Version: 0.2.2
|
| |
-
|
| |
- Release: 8.%{checkoutdate}git%{commit}%{?dist}
|
| |
+ Version: 0.3
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Multi-compartment neural network simulation library
|
| |
|
| |
License: BSD
|
| |
@@ -38,10 +37,10 @@
|
| |
%endif
|
| |
# Use the system copy of pybind11
|
| |
# https://github.com/arbor-sim/arbor/issues/915
|
| |
- Patch0: 0001-Use-system-pybind11.patch
|
| |
- # Include missing header
|
| |
- # https://github.com/arbor-sim/arbor/pull/963
|
| |
- Patch1: 0001-Include-required-header.patch
|
| |
+ Patch0: %{name}-0001-Use-system-pybind11.patch
|
| |
+
|
| |
+ # This patch changes ext/CMakeLists.txt for automatically using tinyopt libraries by cmake command.
|
| |
+ Patch1: %{name}-tinyopt_cmake.patch
|
| |
|
| |
# Random123 does not support these
|
| |
ExcludeArch: mips64r2 mips32r2 s390 s390x
|
| |
@@ -56,6 +55,8 @@
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: Random123-devel
|
| |
BuildRequires: tclap-devel
|
| |
+ Provides: python3-%{name} = %{version}-%{release}
|
| |
+ %{?python_provide:%python_provide python3-%{name}}
|
| |
# For validation, but we don't have these BRs
|
| |
# BuildRequires: julia julia-sundials julia-unitful julia-JSON
|
| |
|
| |
@@ -87,6 +88,8 @@
|
| |
Requires: mpich
|
| |
Requires: python3-mpich
|
| |
Requires: python3-mpi4py-mpich
|
| |
+ Provides: python3-%{name}-mpich = %{version}-%{release}
|
| |
+ %{?python_provide:%python_provide python3-%{name}-mpich}
|
| |
|
| |
%description mpich %{_description}
|
| |
|
| |
@@ -108,6 +111,8 @@
|
| |
Requires: openmpi
|
| |
Requires: python3-openmpi
|
| |
Requires: python3-mpi4py-openmpi
|
| |
+ Provides: python3-%{name}-openmpi = %{version}-%{release}
|
| |
+ %{?python_provide:%python_provide python3-%{name}-openmpi}
|
| |
|
| |
%description openmpi %{_description}
|
| |
|
| |
@@ -123,14 +128,15 @@
|
| |
%if 0%{?commit:1}
|
| |
%autosetup -n %{name}-%{commit} -S git
|
| |
%else
|
| |
- %autosetup -S git
|
| |
+ %autosetup -p1
|
| |
%endif
|
| |
|
| |
# Do not build external libraries
|
| |
# tclap and json and random123
|
| |
- sed -i -e '/add_subdirectory(ext)/ d' -e 's/ ext-random123//' CMakeLists.txt
|
| |
- # Remove ext folder
|
| |
- rm -vrf ext
|
| |
+ sed -i -e 's/ ext-random123//' CMakeLists.txt
|
| |
+ # Remove ext folders, unbundle libraries
|
| |
+ rm -vrf ext/google-benchmark ext/json ext/random123 ext/sphinx_rtd_theme
|
| |
+ mv ext/tinyopt/LICENSE ext/tinyopt/LICENSE-tinyopt
|
| |
# Disable doc build: we built it ourselves
|
| |
sed -i '/add_subdirectory(doc)/ d' CMakeLists.txt
|
| |
# tclap and json are both header only
|
| |
@@ -159,7 +165,6 @@
|
| |
echo
|
| |
echo "*** BUILDING %{name}-%{version}$MPI_COMPILE_TYPE ***"
|
| |
echo
|
| |
- %set_build_flags
|
| |
pushd build$MPI_COMPILE_TYPE &&
|
| |
cmake \\\
|
| |
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
| |
@@ -178,6 +183,9 @@
|
| |
%else
|
| |
-DARB_VECTORIZE:BOOL=OFF \\\
|
| |
%endif
|
| |
+ %ifarch %{power64}
|
| |
+ -DARB_ARCH=power8 \\\
|
| |
+ %endif
|
| |
-DARB_WITH_MPI:BOOL=$MPI_YES \\\
|
| |
-DARB_WITH_GPU:BOOL=OFF \\\
|
| |
-DARB_ARCH:STRING="native" \\\
|
| |
@@ -211,6 +219,10 @@
|
| |
export MPI_LIB=%{_libdir}
|
| |
export MPI_YES=OFF
|
| |
export MPI_COMPILE_TYPE="-serial"
|
| |
+ export CFLAGS="%{build_cflags}"
|
| |
+ export CXXFLAGS="%{build_cxxflags}"
|
| |
+ export FFLAGS="%{build_fflags}"
|
| |
+ export LDFLAGS="%{build_ldflags}"
|
| |
export MPI_PYTHON3_SITEARCH=%{python3_sitearch}
|
| |
%{do_cmake_config}
|
| |
%{do_make_build}
|
| |
@@ -229,6 +241,10 @@
|
| |
export FC=mpif90
|
| |
export F77=mpif77
|
| |
export MPI_YES=ON
|
| |
+ export CFLAGS="%{build_cflags}"
|
| |
+ export CXXFLAGS="%{build_cxxflags}"
|
| |
+ export FFLAGS="%{build_fflags}"
|
| |
+ export LDFLAGS="%{build_ldflags}"
|
| |
export MPI_COMPILE_TYPE="-mpich"
|
| |
%{do_cmake_config}
|
| |
%{do_make_build}
|
| |
@@ -244,6 +260,10 @@
|
| |
export FC=mpif90
|
| |
export F77=mpif77
|
| |
export MPI_YES=ON
|
| |
+ export CFLAGS="%{build_cflags}"
|
| |
+ export CXXFLAGS="%{build_cxxflags}"
|
| |
+ export FFLAGS="%{build_fflags}"
|
| |
+ export LDFLAGS="%{build_ldflags}"
|
| |
# Python 3
|
| |
export MPI_COMPILE_TYPE="-openmpi"
|
| |
%{do_cmake_config}
|
| |
@@ -316,7 +336,7 @@
|
| |
|
| |
|
| |
%files
|
| |
- %license LICENSE
|
| |
+ %license LICENSE ext/tinyopt/LICENSE-tinyopt
|
| |
%doc README.md
|
| |
%{_bindir}/modcc
|
| |
%{python3_sitearch}/%{name}
|
| |
@@ -337,7 +357,7 @@
|
| |
%if %{with mpich}
|
| |
%files mpich
|
| |
%doc README.md
|
| |
- %license LICENSE
|
| |
+ %license LICENSE ext/tinyopt/LICENSE-tinyopt
|
| |
%{_libdir}/mpich/bin/modcc_mpich
|
| |
%{python3_sitearch}/mpich/%{name}
|
| |
|
| |
@@ -352,7 +372,7 @@
|
| |
%if %{with openmpi}
|
| |
%files openmpi
|
| |
%doc README.md
|
| |
- %license LICENSE
|
| |
+ %license LICENSE ext/tinyopt/LICENSE-tinyopt
|
| |
%{_libdir}/openmpi/bin/modcc_openmpi
|
| |
%{python3_sitearch}/openmpi/%{name}
|
| |
|
| |
@@ -365,6 +385,13 @@
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Mon Jun 08 2020 Antonio Trande <sagitter@fedoraproject.org> - 0.3-2
|
| |
+ - Move Provides lines to runtime packages
|
| |
+ - Add patch for using tinyopt libraries
|
| |
+
|
| |
+ * Sat Jun 06 2020 Antonio Trande <sagitter@fedoraproject.org> - 0.3-1
|
| |
+ - Release 0.3
|
| |
+
|
| |
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.2.2-8.20200225gitfb5d4ea736282dce14c3284bc5db748b082db957
|
| |
- Rebuilt for Python 3.9
|
| |
|
| |
tinyopt
header only libraries