diff --git a/README.md b/README.md index d46ca10..28f4524 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libqhull +Qhull is a general dimension convex hull program that reads a set of points from stdin, and outputs the smallest convex set that contains the points to stdout. It also generates Delaunay triangulations, Voronoi diagrams, furthest-site Voronoi diagrams, and halfspace intersections about a point. + diff --git a/libqhull.spec b/libqhull.spec new file mode 100644 index 0000000..a264f59 --- /dev/null +++ b/libqhull.spec @@ -0,0 +1,94 @@ +Name: libqhull +Version: 2009.1.3 +Release: 1mamba +Summary: General dimension convex hull programs +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.qhull.org/ +Source: http://www.qhull.org/download/qhull-%{version}.tar.gz +License: Distributable +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Qhull is a general dimension convex hull program that reads a set of points from stdin, and outputs the smallest convex set that contains the points to stdout. It also generates Delaunay triangulations, Voronoi diagrams, furthest-site Voronoi diagrams, and halfspace intersections about a point. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Qhull is a general dimension convex hull program that reads a set of points from stdin, and outputs the smallest convex set that contains the points to stdout. It also generates Delaunay triangulations, Voronoi diagrams, furthest-site Voronoi diagrams, and halfspace intersections about a point. + +This package contains static libraries and header files need for development. + +%prep + +%setup -q -n qhull-%{version} +sed -i -e "s,\"../html/,\"html/,g" src/*.htm + +%build +dos2unix * config/* +dos2unix -f configure +libtoolize +%configure + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall\ + docdir=%{_docdir}/qhull-%{version} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/qconvex +%{_bindir}/qdelaunay +%{_bindir}/qhalf +%{_bindir}/qhull +%{_bindir}/qvoronoi +%{_bindir}/rbox +%{_libdir}/libqhull.so.* +%{_mandir}/man1/qhull.1.gz +%{_mandir}/man1/rbox.1.gz + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/qhull +%{_includedir}/qhull/*.h +%{_libdir}/libqhull.a +%{_libdir}/libqhull.la +%{_libdir}/libqhull.so +%dir %{_docdir}/qhull-%{version} +%doc %{_docdir}/qhull-%{version}/*.txt +%doc %{_docdir}/qhull-%{version}/*.htm +%dir %{_docdir}/qhull-%{version}/examples +%doc %{_docdir}/qhull-%{version}/examples/Makefile.txt +%doc %{_docdir}/qhull-%{version}/examples/Mborland +%doc %{_docdir}/qhull-%{version}/examples/q_eg +%doc %{_docdir}/qhull-%{version}/examples/q_egtest +%doc %{_docdir}/qhull-%{version}/examples/q_test +%doc %{_docdir}/qhull-%{version}/examples/*.bat +%doc %{_docdir}/qhull-%{version}/examples/*.cpp +%doc %{_docdir}/qhull-%{version}/examples/*.c +%dir %{_docdir}/qhull-%{version}/html +%doc %{_docdir}/qhull-%{version}/html/*.htm +%doc %{_docdir}/qhull-%{version}/html/qh--*.gif + +%changelog +* Mon Mar 18 2013 Automatic Build System 2009.1.3-1mamba +- automatic version update by autodist + +* Mon Oct 13 2008 gil 2003.1-1mamba +- package created by autospec