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

Loading…
Cancel
Save