Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
8ade26b34e
commit
799ae01ed1
1 changed files with 5 additions and 11 deletions
16
utf8cpp.spec
16
utf8cpp.spec
|
|
@ -1,3 +1,4 @@
|
|||
%undefine __cmake_in_source_build
|
||||
# This package only contains header files.
|
||||
%global debug_package %{nil}
|
||||
|
||||
|
|
@ -48,21 +49,16 @@ This project currently only contains header files, which can be found in the
|
|||
%patch0 -p1 -b .gtest
|
||||
%patch1 -p1 -b .noarch
|
||||
#%%patch10 -p1
|
||||
mkdir build
|
||||
|
||||
%build
|
||||
pushd build
|
||||
%cmake3 \
|
||||
-DUTF8_TESTS=ON \
|
||||
-DUTF8_SAMPLES=ON \
|
||||
..
|
||||
%make_build
|
||||
popd
|
||||
%{nil}
|
||||
%cmake3_build
|
||||
|
||||
%install
|
||||
pushd build
|
||||
%make_install
|
||||
popd
|
||||
%cmake3_install
|
||||
pushd %{buildroot}%{_includedir}
|
||||
ln -s utf8cpp/utf8.h ./
|
||||
mkdir utf8
|
||||
|
|
@ -72,9 +68,7 @@ done
|
|||
popd
|
||||
|
||||
%check
|
||||
pushd build
|
||||
%make_build test
|
||||
popd
|
||||
%ctest
|
||||
|
||||
%files devel
|
||||
%doc README.md samples/docsample.cpp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue