Build EPEL9 package

Fix cmake build
epel9
Martin Gansser 3 years ago
parent 16d4b4c591
commit 3b2e01b6e7

@ -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 || :
@ -71,6 +72,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} tests/tests || :
%changelog %changelog
* Tue Dec 14 2021 Martin Gansser <martinkg@fedoraproject.org> - 1.1.0-13.20190213gitaeabc8d * Tue Dec 14 2021 Martin Gansser <martinkg@fedoraproject.org> - 1.1.0-13.20190213gitaeabc8d
- Build EPEL9 package - Build EPEL9 package
- Fix cmake build
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12.20190213gitaeabc8d * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12.20190213gitaeabc8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save