[521] | 1 | %define name qhull |
---|
[11789] | 2 | %define version 2015.2 |
---|
[521] | 3 | |
---|
[11789] | 4 | # Upstream's versioning is bizarre |
---|
| 5 | %global tarvers 2015-src-7.2.0 |
---|
| 6 | |
---|
[521] | 7 | Summary: General dimension convex hull programs |
---|
[11789] | 8 | Name: %{name} |
---|
[521] | 9 | Version: %{version} |
---|
[11789] | 10 | Release: 1%{?_dist_release} |
---|
| 11 | License: Qhull |
---|
| 12 | Group: System Environment/Libraries |
---|
| 13 | |
---|
[521] | 14 | URL: http://www.qhull.org |
---|
[11789] | 15 | Source0: http://www.qhull.org/download/qhull-%{tarvers}.tgz |
---|
[521] | 16 | |
---|
[11789] | 17 | Patch1: 0001-Link-executables-against-shared-libs.patch |
---|
| 18 | Patch2: 0002-Install-docs-into-subdirs.patch |
---|
[521] | 19 | |
---|
[2724] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
[11789] | 22 | BuildRequires: cmake |
---|
| 23 | BuildRequires: chrpath |
---|
[10164] | 24 | |
---|
[11789] | 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
[10164] | 27 | |
---|
[11789] | 28 | |
---|
[521] | 29 | %description |
---|
| 30 | Qhull is a general dimension convex hull program that reads a set |
---|
| 31 | of points from stdin, and outputs the smallest convex set that contains |
---|
| 32 | the points to stdout. It also generates Delaunay triangulations, Voronoi |
---|
| 33 | diagrams, furthest-site Voronoi diagrams, and halfspace intersections |
---|
| 34 | about a point. |
---|
| 35 | |
---|
[11789] | 36 | %package -n libqhull |
---|
| 37 | Group: System Environment/Libraries |
---|
| 38 | Summary: -n libqhull |
---|
| 39 | |
---|
| 40 | %description -n libqhull |
---|
| 41 | %{summary} |
---|
| 42 | |
---|
| 43 | %package -n libqhull_r |
---|
| 44 | Group: System Environment/Libraries |
---|
| 45 | Summary: libqhull_r |
---|
| 46 | |
---|
| 47 | %description -n libqhull_r |
---|
| 48 | %{summary} |
---|
| 49 | |
---|
| 50 | %package -n libqhull_p |
---|
| 51 | Group: System Environment/Libraries |
---|
| 52 | Summary: libqhull_p |
---|
| 53 | |
---|
| 54 | %description -n libqhull_p |
---|
| 55 | %{summary} |
---|
| 56 | |
---|
[521] | 57 | %package devel |
---|
[2724] | 58 | Summary: Development files for qhull |
---|
[11789] | 59 | Group: Development/Libraries |
---|
| 60 | Requires: lib%{name} = %{version}-%{release} |
---|
| 61 | Requires: lib%{name}_r = %{version}-%{release} |
---|
| 62 | Requires: lib%{name}_p = %{version}-%{release} |
---|
[521] | 63 | |
---|
| 64 | %description devel |
---|
| 65 | Qhull is a general dimension convex hull program that reads a set |
---|
| 66 | of points from stdin, and outputs the smallest convex set that contains |
---|
| 67 | the points to stdout. It also generates Delaunay triangulations, Voronoi |
---|
| 68 | diagrams, furthest-site Voronoi diagrams, and halfspace intersections |
---|
| 69 | about a point. |
---|
| 70 | |
---|
[11789] | 71 | |
---|
[521] | 72 | %prep |
---|
[2724] | 73 | %setup -q -n %{name}-%{version} |
---|
[11789] | 74 | %patch1 -p1 |
---|
| 75 | %patch2 -p1 |
---|
[521] | 76 | |
---|
| 77 | %build |
---|
[11789] | 78 | cd build |
---|
| 79 | %cmake .. |
---|
| 80 | make VERBOSE=1 %{?_smp_mflags} |
---|
| 81 | cd .. |
---|
[521] | 82 | |
---|
| 83 | %install |
---|
[11789] | 84 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 85 | cd build |
---|
| 86 | %make_install |
---|
| 87 | cd .. |
---|
[521] | 88 | |
---|
[11789] | 89 | chrpath --delete ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.* |
---|
| 90 | |
---|
[521] | 91 | ## remove unuse files |
---|
[11789] | 92 | rm -rf ${RPM_BUILD_ROOT}%{_libdir}/*.a |
---|
[521] | 93 | |
---|
[11789] | 94 | ## rename doc folder |
---|
| 95 | mv ${RPM_BUILD_ROOT}%{_docdir}/%{name} \ |
---|
| 96 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version} |
---|
[521] | 97 | |
---|
| 98 | %clean |
---|
| 99 | rm -rf $RPM_BUILD_ROOT |
---|
| 100 | |
---|
[11789] | 101 | |
---|
[2724] | 102 | %post -p /sbin/ldconfig |
---|
| 103 | %postun -p /sbin/ldconfig |
---|
[521] | 104 | |
---|
[11789] | 105 | %post -n libqhull -p /sbin/ldconfig |
---|
| 106 | %postun -n libqhull -p /sbin/ldconfig |
---|
| 107 | |
---|
| 108 | %post -n libqhull_r -p /sbin/ldconfig |
---|
| 109 | %postun -n libqhull_r -p /sbin/ldconfig |
---|
| 110 | |
---|
| 111 | %post -n libqhull_p -p /sbin/ldconfig |
---|
| 112 | %postun -n libqhull_p -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | |
---|
[521] | 115 | %files |
---|
[2724] | 116 | %{_bindir}/* |
---|
[11789] | 117 | %{_docdir}/%{name}-%{version}/ |
---|
| 118 | %{_mandir}/man1/* |
---|
| 119 | |
---|
| 120 | %files -n libqhull |
---|
[2724] | 121 | %{_libdir}/libqhull.so.* |
---|
[11789] | 122 | |
---|
| 123 | %files -n libqhull_r |
---|
| 124 | %{_libdir}/libqhull_r.so.* |
---|
| 125 | |
---|
| 126 | %files -n libqhull_p |
---|
[9249] | 127 | %{_libdir}/libqhull_p.so.* |
---|
[521] | 128 | |
---|
| 129 | %files devel |
---|
| 130 | %defattr(-,root,root) |
---|
[11789] | 131 | %{_includedir}/libqhull* |
---|
[2724] | 132 | %{_libdir}/libqhull.so |
---|
[11789] | 133 | %{_libdir}/libqhull_r.so |
---|
[9249] | 134 | %{_libdir}/libqhull_p.so |
---|
[521] | 135 | |
---|
[11789] | 136 | |
---|
[521] | 137 | %changelog |
---|
[11789] | 138 | * Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> 2015.2-1 |
---|
| 139 | - update to 2015.2-7.2.0 |
---|
| 140 | - add patches from fedora package |
---|
| 141 | - split out libqhull, libqhull_p, libqhull_r packages |
---|
| 142 | - drop Provides: libqhull.so |
---|
| 143 | - drop Provides: libqhull_p.so |
---|
| 144 | |
---|
[10164] | 145 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 2012.1-2 |
---|
| 146 | - add Provides: libqhull.so |
---|
| 147 | - add Provides: libqhull_p.so |
---|
| 148 | |
---|
[9249] | 149 | * Sun Jan 11 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2012.1-1 |
---|
| 150 | - update to 2012.1 |
---|
| 151 | |
---|
[2724] | 152 | * Sat Feb 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2003.1-2 |
---|
| 153 | - added Patch0 from upstream |
---|
| 154 | - added --disable-static to %%configure |
---|
| 155 | |
---|
[521] | 156 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2003.1-1vl5 |
---|
| 157 | - applied new versioning policy |
---|
| 158 | - removed *.la |
---|
| 159 | |
---|
| 160 | *Thu Jan 03 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2003.1-0vl2 |
---|
| 161 | - rebuild on VineSeed |
---|
| 162 | |
---|
| 163 | *Thu Oct 6 2005 g-staff <g-staff@math.sci.hokudai.ac.jp> 2003.1-0vl1 |
---|
| 164 | - taken from FC |
---|
| 165 | - rebuild on Vine Linux 3.2 |
---|
| 166 | |
---|
| 167 | * Sun Aug 08 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.2 |
---|
| 168 | - Use default documentation installation scheme. |
---|
| 169 | |
---|
| 170 | * Fri Jul 16 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.1 |
---|
| 171 | - Initial Fedora RPM. |
---|