1 Summary: Qhull - convex hulls, triangulations and related computations
2 Summary(pl.UTF-8): Qhull - obliczanie powłok wypukłych, triangulacji i powiązanych rzeczy
6 License: distributable (see COPYING.txt)
8 Source0: http://www.qhull.org/download/%{name}-2019-src-7.3.2.tgz
9 # Source0-md5: 53c04f9c89b491b17b10c7ea1eaa4cc8
10 Patch0: %{name}-cmake.patch
11 URL: http://www.qhull.org/
12 BuildRequires: cmake >= 2.6
13 BuildRequires: libstdc++-devel
14 BuildRequires: rpmbuild(macros) >= 1.603
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Qhull computes convex hulls, Delaunay triangulations, Voronoi
19 diagrams, furthest-site Voronoi diagrams, and halfspace intersections
20 about a point. It runs in 2-d, 3-d, 4-d, or higher. It implements the
21 Quickhull algorithm for computing convex hulls. Qhull handles
22 round-off errors from floating point arithmetic. It can approximate a
25 %description -l pl.UTF-8
26 Qhull oblicza powłoki wypukłe, triangulacje Delaunaya, diagramy
27 Voronoi, diagramy Voronoi większych rzędów oraz przecięcia
28 półprzestrzeni. Działa w przestrzeniach dwu, trzy, cztero i więcej
29 wymiarowych. Ma zaimplementowany algorytm Quickhull do obliczania
30 powłok wypukłych. Obsługuje błędy zaokrągleń wynikłe z arytmetyki
31 zmiennoprzecinkowej. Może aproksymować powłoki wypukłe.
34 Summary: Header files for Qhull library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Qhull
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for Qhull library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki Qhull.
46 Summary: Static Qhull library
47 Summary(pl.UTF-8): Statyczna biblioteka Qhull
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
54 %description static -l pl.UTF-8
55 Statyczna biblioteka Qhull.
58 Summary: QhullCPP library
59 Summary(pl.UTF-8): Biblioteka QhullCPP
61 Requires: %{name} = %{version}-%{release}
66 %description c++ -l pl.UTF-8
70 Summary: Header files for QhullCPP library
71 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki QhullCPP
72 Group: Development/Libraries
73 Requires: %{name}-c++ = %{version}-%{release}
74 Requires: %{name}-devel = %{version}-%{release}
75 Requires: libstdc++-devel
77 %description c++-devel
78 Header files for QhullCPP library.
80 %description c++-devel -l pl.UTF-8
81 Pliki nagłówkowe biblioteki QhullCPP.
84 Summary: Static QhullCPP library
85 Summary(pl.UTF-8): Statyczna biblioteka QhullCPP
86 Group: Development/Libraries
87 Requires: %{name}-c++-devel = %{version}-%{release}
89 %description c++-static
90 Static QhullCPP library.
92 %description c++-static -l pl.UTF-8
93 Statyczna biblioteka QhullCPP.
100 install -d build-cmake
103 -DLIB_INSTALL_DIR=%{_libdir} \
104 -DMAN_INSTALL_DIR=%{_mandir}/man1
108 rm -rf $RPM_BUILD_ROOT
110 %{__make} -C build-cmake install \
111 DESTDIR=$RPM_BUILD_ROOT
113 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/qhull
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
121 %post c++ -p /sbin/ldconfig
122 %postun c++ -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc Announce.txt COPYING.txt README.txt REGISTER.txt index.htm
127 %attr(755,root,root) %{_bindir}/qconvex
128 %attr(755,root,root) %{_bindir}/qdelaunay
129 %attr(755,root,root) %{_bindir}/qhalf
130 %attr(755,root,root) %{_bindir}/qhull
131 %attr(755,root,root) %{_bindir}/qvoronoi
132 %attr(755,root,root) %{_bindir}/rbox
133 %attr(755,root,root) %{_libdir}/libqhull.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libqhull.so.7
135 %attr(755,root,root) %{_libdir}/libqhull_p.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libqhull_p.so.7
137 %attr(755,root,root) %{_libdir}/libqhull_r.so.*.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libqhull_r.so.7
139 %{_mandir}/man1/qhull.1*
140 %{_mandir}/man1/rbox.1*
143 %defattr(644,root,root,755)
144 %doc html/*.{htm,gif,jpg}
145 %attr(755,root,root) %{_libdir}/libqhull.so
146 %attr(755,root,root) %{_libdir}/libqhull_p.so
147 %attr(755,root,root) %{_libdir}/libqhull_r.so
148 %{_includedir}/libqhull
149 %{_includedir}/libqhull_r
150 %{_libdir}/cmake/Qhull
153 %defattr(644,root,root,755)
154 %{_libdir}/libqhullstatic.a
155 %{_libdir}/libqhullstatic_r.a
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_libdir}/libqhullcpp.so.*.*.*
160 %attr(755,root,root) %ghost %{_libdir}/libqhullcpp.so.7
163 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_libdir}/libqhullcpp.so
165 %{_includedir}/libqhullcpp
168 %defattr(644,root,root,755)
169 %{_libdir}/libqhullcppstatic.a