Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
c96b0b99c3
commit
3d32f58e81
13
yajl.spec
13
yajl.spec
@ -1,3 +1,6 @@
|
|||||||
|
%undefine __cmake_in_source_build
|
||||||
|
%global _vpath_builddir build
|
||||||
|
|
||||||
Name: yajl
|
Name: yajl
|
||||||
Version: 2.1.0
|
Version: 2.1.0
|
||||||
Release: 14%{?dist}
|
Release: 14%{?dist}
|
||||||
@ -52,16 +55,12 @@ necessary for developing against the YAJL library
|
|||||||
# NB, we are not using upstream's 'configure'/'make'
|
# NB, we are not using upstream's 'configure'/'make'
|
||||||
# wrapper, instead we use cmake directly to better
|
# wrapper, instead we use cmake directly to better
|
||||||
# align with Fedora standards
|
# align with Fedora standards
|
||||||
mkdir build
|
%cmake
|
||||||
cd build
|
%cmake_build
|
||||||
%cmake ..
|
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%cmake_install
|
||||||
cd build
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
# No static libraries
|
# No static libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user