Update to new out-of-source build mechanism
This commit is contained in:
parent
f0d2b6e014
commit
29a64ecf38
@ -1,3 +1,7 @@
|
|||||||
|
# Force out of source build
|
||||||
|
%undefine __cmake_in_source_build
|
||||||
|
|
||||||
|
|
||||||
Name: adwaita-qt
|
Name: adwaita-qt
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
@ -44,23 +48,19 @@ Summary: Adwaita Qt common files
|
|||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p "%{_target_platform}-qt4"
|
%global _vpath_builddir %{_target_platform}-qt4
|
||||||
pushd "%{_target_platform}-qt4"
|
%cmake -DUSE_QT4=true
|
||||||
%{cmake} -DUSE_QT4=true ..
|
%cmake_build
|
||||||
popd
|
|
||||||
|
|
||||||
mkdir -p "%{_target_platform}-qt5"
|
|
||||||
pushd "%{_target_platform}-qt5"
|
|
||||||
%{cmake} ..
|
|
||||||
popd
|
|
||||||
|
|
||||||
make %{?_smp_mflags} -C "%{_target_platform}-qt4"
|
|
||||||
make %{?_smp_mflags} -C "%{_target_platform}-qt5"
|
|
||||||
|
|
||||||
|
%global _vpath_builddir %{_target_platform}-qt5
|
||||||
|
%cmake
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt4"
|
%global _vpath_builddir %{_target_platform}-qt4
|
||||||
make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt5"
|
%cmake_install
|
||||||
|
%global _vpath_builddir %{_target_platform}-qt5
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
|
||||||
%files -n adwaita-qt4
|
%files -n adwaita-qt4
|
||||||
|
Loading…
Reference in New Issue
Block a user