diff --git a/libccd.spec b/libccd.spec index d728e60542ebe4ff826aa4993deb6c1cb18e3de3..2b383db530f80d37caf8b7f9224c099c30495e8f 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