Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent 8cc90001be
commit 508f3d67c9
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

@ -1,3 +1,5 @@
%undefine __cmake_in_source_build
Name: quazip Name: quazip
Version: 0.7.6 Version: 0.7.6
Release: 7%{?dist} Release: 7%{?dist}
@ -63,19 +65,13 @@ for developing applications that use %{name}.
%autosetup -p1 %autosetup -p1
%build %build
mkdir build-qt4 %global _vpath_builddir build-qt4
pushd build-qt4 %cmake -DBUILD_WITH_QT4:BOOL=ON
%cmake .. -DBUILD_WITH_QT4:BOOL=ON %cmake_build
%make_build
popd
mkdir build-qt5
pushd build-qt5
%cmake .. -DBUILD_WITH_QT4:BOOL=OFF
%make_build %global _vpath_builddir build-qt5
popd %cmake -DBUILD_WITH_QT4:BOOL=OFF
%cmake_build
doxygen Doxyfile doxygen Doxyfile
for file in doc/html/*; do for file in doc/html/*; do
@ -83,8 +79,10 @@ for file in doc/html/*; do
done done
%install %install
make install/fast DESTDIR=%{buildroot} -C build-qt5 %global _vpath_builddir build-qt4
make install/fast DESTDIR=%{buildroot} -C build-qt4 %cmake_install
%global _vpath_builddir build-qt5
%cmake_install
%ldconfig_scriptlets %ldconfig_scriptlets

Loading…
Cancel
Save