Minor spec fixes
- Adjustments to build on EPEL 8 with RHEL 8.4+ - Minor cleanup of Source0 and use newer autosetup macro
This commit is contained in:
parent
0cc35d3bf0
commit
6e70885b85
17
kokkos.spec
17
kokkos.spec
@ -1,3 +1,6 @@
|
|||||||
|
# Needed for EPEL8
|
||||||
|
%undefine __cmake_in_source_build
|
||||||
|
|
||||||
Name: kokkos
|
Name: kokkos
|
||||||
Version: 3.4.00
|
Version: 3.4.00
|
||||||
%global sover 3.4
|
%global sover 3.4
|
||||||
@ -8,10 +11,10 @@ ExcludeArch: i686 armv7hl
|
|||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/kokkos/kokkos
|
URL: https://github.com/kokkos/kokkos
|
||||||
Source0: https://github.com/kokkos/kokkos/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: cmake3 >= 3.0
|
BuildRequires: cmake >= 3.16
|
||||||
BuildRequires: hwloc-devel
|
BuildRequires: hwloc-devel
|
||||||
|
|
||||||
%global kokkos_desc \
|
%global kokkos_desc \
|
||||||
@ -35,10 +38,10 @@ Requires: hwloc-devel
|
|||||||
This package contains the development files of %{name}.
|
This package contains the development files of %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{cmake3} \
|
%cmake \
|
||||||
-DKokkos_ENABLE_TESTS=On \
|
-DKokkos_ENABLE_TESTS=On \
|
||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
-DKokkos_ARCH_POWER8=ON \
|
-DKokkos_ARCH_POWER8=ON \
|
||||||
@ -50,17 +53,17 @@ This package contains the development files of %{name}.
|
|||||||
-DKokkos_ENABLE_SERIAL=ON \
|
-DKokkos_ENABLE_SERIAL=ON \
|
||||||
-DKokkos_ENABLE_HWLOC=ON \
|
-DKokkos_ENABLE_HWLOC=ON \
|
||||||
%{nil}
|
%{nil}
|
||||||
%cmake3_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake3_install
|
%cmake_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# https://github.com/kokkos/kokkos/issues/2959 - unstable test
|
# https://github.com/kokkos/kokkos/issues/2959 - unstable test
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
%global testargs --exclude-regex KokkosCore_UnitTest_StackTraceTest
|
%global testargs --exclude-regex KokkosCore_UnitTest_StackTraceTest
|
||||||
%endif
|
%endif
|
||||||
%ctest3 %{?testargs}
|
%ctest %{?testargs}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Loading…
Reference in New Issue
Block a user