milkice / rpms / libccd

Forked from rpms/libccd 2 years ago
Clone
bb1b0cf
%undefine __cmake_in_source_build
ea4f60b
%ifarch %{valgrind_arches}
bdd26ad
%global with_valgrind 1
bdd26ad
%endif
45612b6
%global soversion 2
bdd26ad
a7a8e49
Name:           libccd
45612b6
Version:        2.1
ea4f60b
Release:        8%{?dist}
a7a8e49
Summary:        Library for collision detection between convex shapes
a7a8e49
a7a8e49
License:        BSD
a7a8e49
URL:            http://libccd.danfis.cz
45612b6
Source0:        https://github.com/danfis/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
45612b6
# This patch integrates additional programs that are present in
45612b6
# the testsuites folder into CMake, via CTest.
45612b6
# It also increments the version number to match the release.
45612b6
# Not yet submitted  upstream
45612b6
Patch0:         %{name}-2.1-ctest.patch
a7a8e49
# This patch changes the ccd.pc file to point to the correct include
a7a8e49
# directory.  Not yet submitted upstream
45612b6
Patch1:         %{name}-2.1-pkgconfig.patch
45612b6
# Convert check_regressions to python3
45612b6
# Not submitted upstream
45612b6
Patch2:         %{name}-2.1-py3.patch
a7a8e49
b4da74a
BuildRequires: make
82eba90
BuildRequires:  gcc-c++
a7a8e49
BuildRequires:  cmake
a7a8e49
# These are required for executing the test suite
45612b6
BuildRequires:  python3
bdd26ad
%if 0%{?with_valgrind}
a7a8e49
BuildRequires:  valgrind
bdd26ad
%endif
a7a8e49
a7a8e49
%description
a7a8e49
libccd implements variation on Gilbert-Johnson-Keerthi (GJK) algorithm + 
a7a8e49
Expand Polytope Algorithm (EPA). It also implements Minkowski Portal 
a7a8e49
Refinement (MPR, a.k.a. XenoCollide) algorithm as published in Game 
a7a8e49
Programming Gems 7.
a7a8e49
a7a8e49
a7a8e49
%package        devel
a7a8e49
Summary:        Development files for %{name}
a7a8e49
Requires:       %{name}%{?_isa} = %{version}-%{release}
a7a8e49
a7a8e49
%description    devel
a7a8e49
The %{name}-devel package contains libraries and header files for
a7a8e49
developing applications that use %{name}.
a7a8e49
a7a8e49
%prep
a7a8e49
%setup -q
431b6e1
%patch0 -p0 -b .ctest
45612b6
%patch1 -p0 -b .pkgconfig
45612b6
%patch2 -p0 -b .py3
a7a8e49
a7a8e49
%build
a7a8e49
%cmake \
a7a8e49
  -DBUILD_TESTS=ON \
bb1b0cf
  -DCMAKE_BUILD_TYPE=Release \
a7a8e49
  ..
bb1b0cf
%cmake_build
a7a8e49
a7a8e49
%install
bb1b0cf
%cmake_install
45612b6
find %{buildroot} -name '*.la' -exec rm -f {} ';'
45612b6
rm -f %{buildroot}%{_libdir}/*.a
45612b6
rm -rf %{buildroot}%{_docdir}/ccd
45612b6
a7a8e49
a7a8e49
%check
bdd26ad
%if 0%{?with_valgrind}
431b6e1
make -C build test ||exit 0
bdd26ad
%endif
a7a8e49
a7a8e49
a7a8e49
%files
45612b6
%doc BSD-LICENSE README.md
45612b6
%{_libdir}/*.so.%{version}
45612b6
%{_libdir}/*.so.%{soversion}
a7a8e49
a7a8e49
%files devel
a7a8e49
%{_includedir}/*
a7a8e49
%{_libdir}/*.so
a7a8e49
%{_libdir}/pkgconfig/*.pc
45612b6
%{_libdir}/ccd
a7a8e49
a7a8e49
%changelog
ea4f60b
* San Jul 31 2022 Milkice Qiu <milkice@milkice.me> - 2.1-8 
ea4f60b
- Switch to %{valgrind_arches}
ea4f60b
- Patch from David Abdurachmanov <david.abdurachmanov@sifive.com>
ea4f60b
6906eee
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-7
6906eee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6906eee
4c0e0e1
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-6
4c0e0e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4c0e0e1
ba99f88
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-5
ba99f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ba99f88
b0ecf60
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-4
b0ecf60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b0ecf60
e1ae936
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-3
e1ae936
- Second attempt - Rebuilt for
e1ae936
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e1ae936
d8fc976
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
d8fc976
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d8fc976
45612b6
* Sat Apr 18 2020 Rich Mattes <richmattes@gmail.com> - 2.1-1
45612b6
- Update to release 2.1
45612b6
- Update test suite to use python 3 (rhbz#1807509)
45612b6
05f03d6
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-16
05f03d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
05f03d6
385df05
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-15
385df05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
385df05
33fc83d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-14
33fc83d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
33fc83d
873c38d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-13
873c38d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
873c38d
32995cd
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0-12
32995cd
- Update Python 2 dependency declarations to new packaging standards
32995cd
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
32995cd
4c28400
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-11
4c28400
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4c28400
c809f1d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-10
c809f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c809f1d
b3747fc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-9
b3747fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b3747fc
776a4cc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-8
776a4cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
776a4cc
e07b80e
* Fri Aug 12 2016 Michal Toman <mtoman@fedoraproject.org> - 2.0-7
e07b80e
- No valgrind on MIPS
e07b80e
fdf9037
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-6
fdf9037
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fdf9037
cc8e36b
* Thu Aug 27 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2.0-5
cc8e36b
- Valgrind is not available only on s/390 (rhbz#1257526)
cc8e36b
7ad15b7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
7ad15b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7ad15b7
a97163e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
a97163e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a97163e
ae158df
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
ae158df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ae158df
431b6e1
* Sun Jun 01 2014 Rich Mattes <rmattes@fedoraproject.org> - 2.0-1
431b6e1
- Update to release 2.0
431b6e1
128c7a0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
128c7a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
128c7a0
fd7368c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
fd7368c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fd7368c
bdd26ad
* Wed Jan 09 2013 Dan HorĂ¡k <dan[at]danny.cz> - 1.4-2
bdd26ad
- build on platforms without valgrind
bdd26ad
a7a8e49
* Mon Oct 22 2012 Rich Mattes <richmattes@gmail.com> - 1.4-1
a7a8e49
- Update to release 1.4
a7a8e49
a7a8e49
* Tue May 29 2012 Rich Mattes <richmattes@gmail.com> - 1.3-3
a7a8e49
- Fixed pkgconfig file to point to correct include dir
a7a8e49
a7a8e49
* Sat May 26 2012 Rich Mattes <richmattes@gmail.com> - 1.3-2
a7a8e49
- Convert test suite to CTest
a7a8e49
a7a8e49
* Fri May 25 2012 Rich Mattes <richmattes@gmail.com> - 1.3-1
a7a8e49
- Update to release 1.3
a7a8e49
- Remove upstreamed soname patch
a7a8e49
a7a8e49
* Sun May 06 2012 Rich Mattes <richmattes@gmail.com> - 1.2-3
a7a8e49
- Removed -static subpackage.
a7a8e49
a7a8e49
* Mon Apr 30 2012 Rich Mattes <richmattes@gmail.com> - 1.2-2
a7a8e49
- Update soname patch to match upstream implementation 
a7a8e49
a7a8e49
* Fri Apr 27 2012 Rich Mattes <richmattes@gmail.com> - 1.2-1
a7a8e49
- Initial package