[521] | 1 | %define name qhull |
---|
[9249] | 2 | %define version 2012.1 |
---|
[521] | 3 | |
---|
| 4 | Summary: General dimension convex hull programs |
---|
| 5 | Name: %{name} |
---|
| 6 | Version: %{version} |
---|
[9249] | 7 | Release: 1%{?_dist_release} |
---|
[2724] | 8 | License: Distributable |
---|
[521] | 9 | Group: System Environment/Libraries |
---|
| 10 | URL: http://www.qhull.org |
---|
| 11 | |
---|
[9249] | 12 | Source0: http://www.qhull.org/download/qhull-%{version}-src.tgz |
---|
[521] | 13 | |
---|
[2724] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | |
---|
[521] | 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 |
---|
[2724] | 24 | Summary: Development files for qhull |
---|
[521] | 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 |
---|
[2724] | 36 | %setup -q -n %{name}-%{version} |
---|
[521] | 37 | |
---|
[9249] | 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 |
---|
[521] | 42 | |
---|
| 43 | %build |
---|
| 44 | make |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
[9249] | 48 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
[521] | 49 | |
---|
| 50 | ## remove unuse files |
---|
| 51 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
[9249] | 52 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
[521] | 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) |
---|
[9249] | 64 | %doc %{_docdir}/%{name} |
---|
[2724] | 65 | %{_bindir}/* |
---|
| 66 | %{_libdir}/libqhull.so.* |
---|
[9249] | 67 | %{_libdir}/libqhull_p.so.* |
---|
[2724] | 68 | %{_mandir}/man1/* |
---|
[521] | 69 | |
---|
| 70 | %files devel |
---|
| 71 | %defattr(-,root,root) |
---|
[9249] | 72 | %{_includedir}/libqhull |
---|
| 73 | %{_includedir}/libqhullcpp |
---|
[2724] | 74 | %{_libdir}/libqhull.so |
---|
[9249] | 75 | %{_libdir}/libqhull_p.so |
---|
[521] | 76 | |
---|
| 77 | %changelog |
---|
[9249] | 78 | * Sun Jan 11 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2012.1-1 |
---|
| 79 | - update to 2012.1 |
---|
| 80 | |
---|
[2724] | 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 | |
---|
[521] | 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. |
---|