Adapt cmake to work with out of tree builds (and other minor cleanups)

epel9
José Matos 4 years ago
parent b9eca5ea19
commit 6d1d21050e

@ -78,12 +78,14 @@ done
%else %else
%{cmake} %{cmake}
%endif %endif
%{__make} VERBOSE=1 %{?_smp_mflags} %cmake_build
%install %install
%if %{old_epel} == 1
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT %endif
%cmake_build
rm -f examples/Makefile.cmake rm -f examples/Makefile.cmake
rm -f examples/example1_win64.sln rm -f examples/example1_win64.sln
rm -f examples/example1_win64.vcxproj rm -f examples/example1_win64.vcxproj
@ -91,7 +93,7 @@ rm -f examples/example1_win64.README.txt
rm -rf examples/lib_win64 rm -rf examples/lib_win64
%if ((0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} < 28)) %if ((0%{?rhel} && 0%{?rhel} <= 7)
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -118,6 +120,7 @@ rm -rf examples/lib_win64
%changelog %changelog
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.900.2-2 * Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.900.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
- Adapt cmake to work with out of tree builds (and other minor cleanups)
* Fri Jul 17 2020 José Matos <jamatos@fedoraproject.org> - 9.900.2-1 * Fri Jul 17 2020 José Matos <jamatos@fedoraproject.org> - 9.900.2-1
- update to 9.900.2 - update to 9.900.2

Loading…
Cancel
Save