|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|