[packages/poly2tri] - initial

arekm arekm at pld-linux.org
Fri May 15 11:22:44 CEST 2015


commit 18c63d37e6fa53a433a45e971290572d13f8708c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri May 15 11:22:30 2015 +0200

    - initial

 poly2tri-build.patch | 13 ++++++++++
 poly2tri.spec        | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)
---
diff --git a/poly2tri.spec b/poly2tri.spec
new file mode 100644
index 0000000..8206c5d
--- /dev/null
+++ b/poly2tri.spec
@@ -0,0 +1,69 @@
+Name:		poly2tri
+Version:	0.0
+%global         date 20150515
+%global         snapshot %{date}hg%{rev}
+Summary:	A 2D constrained Delaunay triangulation library
+Release:	0.%{date}.1
+License:	BSD
+Group:		Development/Libraries
+URL:		https://code.google.com/p/poly2tri
+Source0:	https://poly2tri-c.googlecode.com/archive/5ac75d6f09e4de35ef33289c69bc1d46c2a04970.tar.gz
+# Source0-md5:	844558199746106bd76043b716c10c85
+Patch0:		%{name}-build.patch
+BuildRequires:	Mesa-libGL-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libtool
+
+%description
+Library based on the paper "Sweep-line algorithm for constrained
+Delaunay triangulation" by V. Domiter and and B. Zalik.
+
+%package devel
+Summary:	Development files for %{name}
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Development files for %{name}.
+
+%prep
+%setup -q -n %{name}-c-5ac75d6f09e4
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+
+%configure \
+	--disable-silent-rules
+%{__make} -j1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm $RPM_BUILD_ROOT%{_libdir}/lib%{name}-c-*.{a,la}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/p2tc
+%attr(755,root,root) %ghost %{_libdir}/lib%{name}-c-*.so.0
+%attr(755,root,root) %{_libdir}/lib%{name}-c-*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib%{name}-c-*.so
+%{_includedir}/%{name}-c-*
+%{_pkgconfigdir}/poly2tri-c.pc
diff --git a/poly2tri-build.patch b/poly2tri-build.patch
new file mode 100644
index 0000000..ea4e7bf
--- /dev/null
+++ b/poly2tri-build.patch
@@ -0,0 +1,13 @@
+diff --git a/poly2tri-c/refine/Makefile.am b/poly2tri-c/refine/Makefile.am
+index 8701b0d..85cba9f 100644
+--- a/poly2tri-c/refine/Makefile.am
++++ b/poly2tri-c/refine/Makefile.am
+@@ -1,6 +1,6 @@
+ noinst_LTLIBRARIES = libp2tc-refine.la
+ 
+-libp2tc_refine_la_SOURCES = bounded-line.c bounded-line.h cdt.c cdt.h cdt-flipfix.c cdt-flipfix.h circle.c circle.h cluster.c cluster.h delaunay-terminator.c delaunay-terminator.h edge.c edge.h line.c line.h rmath.c rmath.h mesh.c mesh.h mesh-action.c mesh-action.h point.c point.h pslg.c pslg.h refine.h refiner.c refiner.h triangle.c triangle.h triangulation.h utils.c utils.h vector2.c vector2.h vedge.c vedge.h vtriangle.c vtriangle.h visibility.c visibility.h
++libp2tc_refine_la_SOURCES = bounded-line.c bounded-line.h rcdt.c rcdt.h cdt-flipfix.c cdt-flipfix.h circle.c circle.h cluster.c cluster.h delaunay-terminator.c delaunay-terminator.h edge.c edge.h line.c line.h rmath.c rmath.h mesh.c mesh.h mesh-action.c mesh-action.h point.c point.h pslg.c pslg.h refine.h refiner.c refiner.h triangle.c triangle.h triangulation.h rutils.c rutils.h vector2.c vector2.h vedge.c vedge.h vtriangle.c vtriangle.h visibility.c visibility.h
+ 
+ P2TC_REFINE_publicdir = $(P2TC_publicdir)/refine
+-P2TC_REFINE_public_HEADERS = bounded-line.h cdt.h circle.h cluster.h edge.h line.h mesh.h mesh-action.h point.h pslg.h refine.h refiner.h rmath.h triangle.h triangulation.h utils.h vector2.h vedge.h vtriangle.h visibility.h
++P2TC_REFINE_public_HEADERS = bounded-line.h rcdt.h circle.h cluster.h edge.h line.h mesh.h mesh-action.h point.h pslg.h refine.h refiner.h rmath.h triangle.h triangulation.h rutils.h vector2.h vedge.h vtriangle.h visibility.h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poly2tri.git/commitdiff/18c63d37e6fa53a433a45e971290572d13f8708c



More information about the pld-cvs-commit mailing list