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