[521] | 1 | %define name qhull |
---|
| 2 | %define version 2003.1 |
---|
| 3 | |
---|
| 4 | Summary: General dimension convex hull programs |
---|
| 5 | Name: %{name} |
---|
| 6 | Version: %{version} |
---|
[2724] | 7 | Release: 2%{?_dist_release} |
---|
| 8 | License: Distributable |
---|
[521] | 9 | Group: System Environment/Libraries |
---|
| 10 | URL: http://www.qhull.org |
---|
| 11 | |
---|
[2724] | 12 | Source0: http://www.qhull.org/download/qhull-%{version}.tar.gz |
---|
[521] | 13 | |
---|
[2724] | 14 | Patch0: poly.c-qh_gethash.patch |
---|
| 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
[521] | 18 | %description |
---|
| 19 | Qhull is a general dimension convex hull program that reads a set |
---|
| 20 | of points from stdin, and outputs the smallest convex set that contains |
---|
| 21 | the points to stdout. It also generates Delaunay triangulations, Voronoi |
---|
| 22 | diagrams, furthest-site Voronoi diagrams, and halfspace intersections |
---|
| 23 | about a point. |
---|
| 24 | |
---|
| 25 | %package devel |
---|
[2724] | 26 | Summary: Development files for qhull |
---|
[521] | 27 | Group: Development/Libraries |
---|
| 28 | Requires: %{name} = %{version}-%{release} |
---|
| 29 | |
---|
| 30 | %description devel |
---|
| 31 | Qhull is a general dimension convex hull program that reads a set |
---|
| 32 | of points from stdin, and outputs the smallest convex set that contains |
---|
| 33 | the points to stdout. It also generates Delaunay triangulations, Voronoi |
---|
| 34 | diagrams, furthest-site Voronoi diagrams, and halfspace intersections |
---|
| 35 | about a point. |
---|
| 36 | |
---|
| 37 | %prep |
---|
[2724] | 38 | %setup -q -n %{name}-%{version} |
---|
| 39 | %patch0 -p2 |
---|
[521] | 40 | |
---|
| 41 | |
---|
| 42 | %build |
---|
[2724] | 43 | %configure --disable-static |
---|
[521] | 44 | make |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | make DESTDIR=$RPM_BUILD_ROOT \ |
---|
| 49 | docdir=%{_docdir}/%{name}-%{version} install |
---|
| 50 | |
---|
| 51 | ## remove unuse files |
---|
| 52 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %clean |
---|
| 56 | rm -rf $RPM_BUILD_ROOT |
---|
| 57 | |
---|
[2724] | 58 | %post -p /sbin/ldconfig |
---|
[521] | 59 | |
---|
[2724] | 60 | %postun -p /sbin/ldconfig |
---|
[521] | 61 | |
---|
| 62 | %files |
---|
| 63 | %defattr(-,root,root) |
---|
| 64 | %doc %{_docdir}/%{name}-%{version} |
---|
[2724] | 65 | %{_bindir}/* |
---|
| 66 | %{_libdir}/libqhull.so.* |
---|
| 67 | %{_mandir}/man1/* |
---|
[521] | 68 | |
---|
| 69 | %files devel |
---|
| 70 | %defattr(-,root,root) |
---|
[2724] | 71 | %{_includedir}/qhull |
---|
| 72 | #{_libdir}/*.*a |
---|
| 73 | %{_libdir}/libqhull.so |
---|
[521] | 74 | |
---|
| 75 | %changelog |
---|
[2724] | 76 | * Sat Feb 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2003.1-2 |
---|
| 77 | - added Patch0 from upstream |
---|
| 78 | - added --disable-static to %%configure |
---|
| 79 | |
---|
[521] | 80 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2003.1-1vl5 |
---|
| 81 | - applied new versioning policy |
---|
| 82 | - removed *.la |
---|
| 83 | |
---|
| 84 | *Thu Jan 03 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2003.1-0vl2 |
---|
| 85 | - rebuild on VineSeed |
---|
| 86 | |
---|
| 87 | *Thu Oct 6 2005 g-staff <g-staff@math.sci.hokudai.ac.jp> 2003.1-0vl1 |
---|
| 88 | - taken from FC |
---|
| 89 | - rebuild on Vine Linux 3.2 |
---|
| 90 | |
---|
| 91 | * Sun Aug 08 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.2 |
---|
| 92 | - Use default documentation installation scheme. |
---|
| 93 | |
---|
| 94 | * Fri Jul 16 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.1 |
---|
| 95 | - Initial Fedora RPM. |
---|