[packages/libccd] - new

qboosh qboosh at pld-linux.org
Sun Nov 10 13:56:52 CET 2013


commit 038ab4985a0c9e87139e7b39543d92a607f6add1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 10 13:57:09 2013 +0100

    - new

 libccd-pc.patch | 11 ++++++++
 libccd.spec     | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 99 insertions(+)
---
diff --git a/libccd.spec b/libccd.spec
new file mode 100644
index 0000000..93677cc
--- /dev/null
+++ b/libccd.spec
@@ -0,0 +1,88 @@
+Summary:	Library for a collision detection between two convex shapes
+Summary(pl.UTF-8):	Biblioteka do wykrywania kolizji między dwoma bryłami wypukłymi
+Name:		libccd
+Version:	1.4
+Release:	0.1
+License:	BSD
+Group:		Libraries
+Source0:	http://libccd.danfis.cz/files/%{name}-%{version}.tar.gz
+# Source0-md5:	684a9f2f44567a12a30af383de992a89
+Patch0:		%{name}-pc.patch
+URL:		http://libccd.danfis.cz/
+BuildRequires:	cmake >= 2.8
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libccd is library for a collision detection between two convex shapes.
+libccd implements variation on Gilbert-Johnson-Keerthi algorithm plus
+Expand Polytope Algorithm (EPA) and also implements algorithm
+Minkowski Portal Refinement (MPR, a.k.a. XenoCollide) as described in
+Game Programming Gems 7.
+
+%description -l pl.UTF-8
+libccd to biblioteka do wykrywania kolizji między dwiema bryłami
+wypukłymi. Implementuje połączenie algorytmu
+Gilberta-Johnsona-Keerthiego z algorytmem Expand Polytope Algorithm
+(EPA), a także algorytm Minkowski Portal Refinement (MPR, XenoCollide)
+zgodnie z opisem w Game Programming Gems 7.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package static
+Summary:	Static %{name} library
+Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+# autotools build system doesn't install .pc file, use cmake instead
+%cmake .
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc BSD-LICENSE README doc/jgt98convex.pdf
+%attr(755,root,root) %{_libdir}/libccd.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libccd.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libccd.so
+%{_includedir}/ccd
+%{_pkgconfigdir}/ccd.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libccd.a
diff --git a/libccd-pc.patch b/libccd-pc.patch
new file mode 100644
index 0000000..de361de
--- /dev/null
+++ b/libccd-pc.patch
@@ -0,0 +1,11 @@
+--- libccd-1.4/ccd.pc.in.orig	2012-07-07 15:06:55.000000000 +0200
++++ libccd-1.4/ccd.pc.in	2013-11-10 13:14:40.897204637 +0100
+@@ -1,7 +1,7 @@
+ # This file was generated by CMake for @PROJECT_NAME@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}
+-libdir=${prefix}/lib
++libdir=${prefix}/lib at LIB_SUFFIX@
+ includedir=${prefix}/include
+ 
+ Name: @PROJECT_NAME@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libccd.git/commitdiff/038ab4985a0c9e87139e7b39543d92a607f6add1



More information about the pld-cvs-commit mailing list