Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
50051cd883
commit
fc5353f756
@ -726,13 +726,12 @@ python2 ./setup.py build --quiet --gtk-version=%{?gtk3:3}%{?!gtk3:2} --rpm-versi
|
|||||||
|
|
||||||
%if (%{use_dnf} && (0%{?fedora} >= 29 || 0%{?rhel} >= 8))
|
%if (%{use_dnf} && (0%{?fedora} >= 29 || 0%{?rhel} >= 8))
|
||||||
pushd src/dnf-plugins/product-id
|
pushd src/dnf-plugins/product-id
|
||||||
%cmake -DCMAKE_BUILD_TYPE="Release" .
|
%cmake -DCMAKE_BUILD_TYPE="Release"
|
||||||
%make_build
|
%cmake_build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make -f Makefile install VERSION=%{version}-%{release} \
|
make -f Makefile install VERSION=%{version}-%{release} \
|
||||||
PYTHON=%{__python} PREFIX=%{_prefix} \
|
PYTHON=%{__python} PREFIX=%{_prefix} \
|
||||||
DESTDIR=%{buildroot} PYTHON_SITELIB=%{python_sitearch} \
|
DESTDIR=%{buildroot} PYTHON_SITELIB=%{python_sitearch} \
|
||||||
@ -752,7 +751,7 @@ make -f Makefile install VERSION=%{version}-%{release} \
|
|||||||
%if (%{use_dnf} && (0%{?fedora} >= 29 || 0%{?rhel} >= 8))
|
%if (%{use_dnf} && (0%{?fedora} >= 29 || 0%{?rhel} >= 8))
|
||||||
pushd src/dnf-plugins/product-id
|
pushd src/dnf-plugins/product-id
|
||||||
mkdir -p %{buildroot}%{_libdir}/libdnf/plugins
|
mkdir -p %{buildroot}%{_libdir}/libdnf/plugins
|
||||||
%make_install
|
%cmake_install
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user