1 | %define name qhull |
---|
2 | %define version 2003.1 |
---|
3 | |
---|
4 | Summary: General dimension convex hull programs |
---|
5 | Name: %{name} |
---|
6 | Version: %{version} |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | License: Distributable |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://www.qhull.org |
---|
11 | |
---|
12 | Source0: http://www.qhull.org/download/qhull-%{version}.tar.gz |
---|
13 | |
---|
14 | Patch0: poly.c-qh_gethash.patch |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | |
---|
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 |
---|
26 | Summary: Development files for qhull |
---|
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 |
---|
38 | %setup -q -n %{name}-%{version} |
---|
39 | %patch0 -p2 |
---|
40 | |
---|
41 | |
---|
42 | %build |
---|
43 | %configure --disable-static |
---|
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 | |
---|
58 | %post -p /sbin/ldconfig |
---|
59 | |
---|
60 | %postun -p /sbin/ldconfig |
---|
61 | |
---|
62 | %files |
---|
63 | %defattr(-,root,root) |
---|
64 | %doc %{_docdir}/%{name}-%{version} |
---|
65 | %{_bindir}/* |
---|
66 | %{_libdir}/libqhull.so.* |
---|
67 | %{_mandir}/man1/* |
---|
68 | |
---|
69 | %files devel |
---|
70 | %defattr(-,root,root) |
---|
71 | %{_includedir}/qhull |
---|
72 | #{_libdir}/*.*a |
---|
73 | %{_libdir}/libqhull.so |
---|
74 | |
---|
75 | %changelog |
---|
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 | |
---|
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. |
---|