Fix cmake build

epel10
Sérgio M. Basto 4 years ago
parent 86eb8763ae
commit 7b0566bc34

@ -1,3 +1,4 @@
%undefine __cmake_in_source_build
# https://github.com/georgmartius/vid.stab/commit/aeabc8daa7904f9edf7441a11f293965a5ef53b8 # https://github.com/georgmartius/vid.stab/commit/aeabc8daa7904f9edf7441a11f293965a5ef53b8
%global commit aeabc8daa7904f9edf7441a11f293965a5ef53b8 %global commit aeabc8daa7904f9edf7441a11f293965a5ef53b8
%global shortcommit %(c=%{commit}; echo ${c:0:7}) %global shortcommit %(c=%{commit}; echo ${c:0:7})
@ -41,17 +42,17 @@ sed -i 's|-Wall -O0|-Wall -O|' tests/CMakeLists.txt
sed -i 's|return units_failed==0;|return units_failed>0;|' tests/testframework.c sed -i 's|return units_failed==0;|return units_failed>0;|' tests/testframework.c
%build %build
%cmake . %cmake
%make_build %cmake_build
# build the tests program # build the tests program
pushd tests pushd tests
%cmake . %cmake
%make_build %cmake_build
popd popd
%install %install
%make_install %cmake_install
%check %check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} tests/tests || : LD_LIBRARY_PATH=%{buildroot}%{_libdir} tests/tests || :
@ -72,6 +73,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} tests/tests || :
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15.20190213gitaeabc8d * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15.20190213gitaeabc8d
- Second attempt - Rebuilt for - Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
- Fix cmake build
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-14.20190213gitaeabc8d * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-14.20190213gitaeabc8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

Loading…
Cancel
Save