1 | %define name qhull |
---|
2 | %define version 2012.1 |
---|
3 | |
---|
4 | Summary: General dimension convex hull programs |
---|
5 | Name: %{name} |
---|
6 | Version: %{version} |
---|
7 | Release: 1%{?_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}-src.tgz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | |
---|
16 | %description |
---|
17 | Qhull is a general dimension convex hull program that reads a set |
---|
18 | of points from stdin, and outputs the smallest convex set that contains |
---|
19 | the points to stdout. It also generates Delaunay triangulations, Voronoi |
---|
20 | diagrams, furthest-site Voronoi diagrams, and halfspace intersections |
---|
21 | about a point. |
---|
22 | |
---|
23 | %package devel |
---|
24 | Summary: Development files for qhull |
---|
25 | Group: Development/Libraries |
---|
26 | Requires: %{name} = %{version}-%{release} |
---|
27 | |
---|
28 | %description devel |
---|
29 | Qhull is a general dimension convex hull program that reads a set |
---|
30 | of points from stdin, and outputs the smallest convex set that contains |
---|
31 | the points to stdout. It also generates Delaunay triangulations, Voronoi |
---|
32 | diagrams, furthest-site Voronoi diagrams, and halfspace intersections |
---|
33 | about a point. |
---|
34 | |
---|
35 | %prep |
---|
36 | %setup -q -n %{name}-%{version} |
---|
37 | |
---|
38 | sed -i "s|\$(DESTDIR)/bin|\$(DESTDIR)%{_bindir}|g" Makefile |
---|
39 | sed -i "s|\$(DESTDIR)/include|\$(DESTDIR)%{_includedir}|g" Makefile |
---|
40 | sed -i "s|\$(DESTDIR)/lib|\$(DESTDIR)%{_libdir}|g" Makefile |
---|
41 | sed -i "s|\$(DESTDIR)/share|\$(DESTDIR)%{_datadir}|g" Makefile |
---|
42 | |
---|
43 | %build |
---|
44 | make |
---|
45 | |
---|
46 | %install |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
49 | |
---|
50 | ## remove unuse files |
---|
51 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
52 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
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} |
---|
65 | %{_bindir}/* |
---|
66 | %{_libdir}/libqhull.so.* |
---|
67 | %{_libdir}/libqhull_p.so.* |
---|
68 | %{_mandir}/man1/* |
---|
69 | |
---|
70 | %files devel |
---|
71 | %defattr(-,root,root) |
---|
72 | %{_includedir}/libqhull |
---|
73 | %{_includedir}/libqhullcpp |
---|
74 | %{_libdir}/libqhull.so |
---|
75 | %{_libdir}/libqhull_p.so |
---|
76 | |
---|
77 | %changelog |
---|
78 | * Sun Jan 11 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2012.1-1 |
---|
79 | - update to 2012.1 |
---|
80 | |
---|
81 | * Sat Feb 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2003.1-2 |
---|
82 | - added Patch0 from upstream |
---|
83 | - added --disable-static to %%configure |
---|
84 | |
---|
85 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2003.1-1vl5 |
---|
86 | - applied new versioning policy |
---|
87 | - removed *.la |
---|
88 | |
---|
89 | *Thu Jan 03 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2003.1-0vl2 |
---|
90 | - rebuild on VineSeed |
---|
91 | |
---|
92 | *Thu Oct 6 2005 g-staff <g-staff@math.sci.hokudai.ac.jp> 2003.1-0vl1 |
---|
93 | - taken from FC |
---|
94 | - rebuild on Vine Linux 3.2 |
---|
95 | |
---|
96 | * Sun Aug 08 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.2 |
---|
97 | - Use default documentation installation scheme. |
---|
98 | |
---|
99 | * Fri Jul 16 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.1 |
---|
100 | - Initial Fedora RPM. |
---|