From 612665980d1ee6f828da3bc3ecd50d6d78b98390 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 19 Nov 2024 15:27:31 +0800 Subject: [PATCH] adopt to new cmake macro --- libccd.spec | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/libccd.spec b/libccd.spec index d728e60..2b383db 100644 --- a/libccd.spec +++ b/libccd.spec @@ -5,10 +5,10 @@ Name: libccd Version: 2.1 -Release: 1 +Release: 2 Summary: Library for collision detection between convex shapes -License: BSD +License: BSD-3-Clause URL: http://libccd.danfis.cz Source0: https://github.com/danfis/%{name}/archive/refs/tags/v%{version}.tar.gz # This patch integrates additional programs that are present in @@ -48,34 +48,27 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%setup -q -%patch0 -p0 -b .ctest -%patch1 -p0 -b .pkgconfig -%patch2 -p0 -b .py3 +%autosetup -p0 %build -mkdir build && cd build %cmake \ -DBUILD_TESTS=ON \ - -DCMAKE_BUILD_TYPE=Release \ - .. -%make_build + -DCMAKE_BUILD_TYPE=Release +%cmake_build %install -%make_install -C build -find %{buildroot} -name '*.la' -exec rm -f {} ';' -rm -f %{buildroot}%{_libdir}/*.a +%cmake_install rm -rf %{buildroot}%{_docdir}/ccd %check %if 0%{?with_valgrind} -make -C build test ||exit 0 +%ctest || true %endif - %files -%doc BSD-LICENSE README.md +%license BSD-LICENSE +%doc README.md %{_libdir}/*.so.%{version} %{_libdir}/*.so.%{soversion} @@ -86,6 +79,9 @@ make -C build test ||exit 0 %{_libdir}/ccd %changelog +* Tue Nov 19 2024 Funda Wang - 2.1-2 +- adopt to new cmake macro + * Sun May 7 2023 will_niutao - 2.1-1 - Init for openEuler -- Gitee