Fix out-of-source build on F33 (bug #1863317)

This commit is contained in:
Christoph Junghans 2020-08-03 10:01:49 -06:00
parent 7da6317b0a
commit 453d5e6986

View File

@ -6,7 +6,7 @@
Name: cereal
Version: 1.3.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A header-only C++11 serialization library
License: BSD
Url: http://uscilab.github.io/cereal/
@ -14,7 +14,7 @@ Source0: https://github.com/USCiLab/cereal/archive/v%{version}.tar.gz#/%{
BuildRequires: gcc-c++
BuildRequires: boost-devel
BuildRequires: cmake3 >= 3.0
BuildRequires: cmake >= 3.0
%description
cereal is a header-only C++11 serialization library. cereal takes arbitrary
@ -40,16 +40,14 @@ This package contains development headers and libraries for the cereal library
%setup -q
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake3} .. -DSKIP_PORTABILITY_TEST=ON -DWITH_WERROR=OFF
%make_build
%{cmake} .. -DSKIP_PORTABILITY_TEST=ON -DWITH_WERROR=OFF
%cmake_build
%install
%make_install -C %{_target_platform}
%cmake_install
%check
make -C %{_target_platform} test
%ctest
%files devel
%doc README.md
@ -59,6 +57,9 @@ make -C %{_target_platform} test
%{_datadir}/cmake/%{name}
%changelog
* Mon Aug 03 2020 Christoph Junghans <junghans@votca.org> - 1.3.0-5
- Fix out-of-source build on F33 (bug #1863317)
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild