libqhull/libqhull.spec

119 lines
3.6 KiB
RPMSpec

%define pkgver %(echo %version| cut -d. -f1)
Name: libqhull
Version: 2019.1
Release: 1mamba
Summary: General dimension convex hull programs
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.qhull.org/
Source: http://www.qhull.org/download/qhull-%{pkgver}-src-7.3.2.tgz
License: Distributable
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Qhull is a general dimension convex hull program that reads a set of points from stdin, and outputs the smallest convex set that contains the points to stdout. It also generates Delaunay triangulations, Voronoi diagrams, furthest-site Voronoi diagrams, and halfspace intersections about a point.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Qhull is a general dimension convex hull program that reads a set of points from stdin, and outputs the smallest convex set that contains the points to stdout. It also generates Delaunay triangulations, Voronoi diagrams, furthest-site Voronoi diagrams, and halfspace intersections about a point.
This package contains static libraries and header files need for development.
%package tools
Group: Applications/Development
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%prep
%setup -q -n qhull-%{version}
#sed -i -e "s,\"../html/,\"html/,g" src/*.htm
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build \
docdir=%{_docdir}/qhull-%{version}
ln -s libqhull %{buildroot}%{_includedir}/qhull
ln -s libqhull.h %{buildroot}%{_includedir}/libqhull/qhull.h
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libqhull.so.*
%{_libdir}/libqhull_p.so.*
%{_libdir}/libqhull_r.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/qhull
%dir %{_includedir}/libqhull
%{_includedir}/libqhull/*
%dir %{_includedir}/libqhull_r
%{_includedir}/libqhull_r/*
%dir %{_includedir}/libqhullcpp
%{_includedir}/libqhullcpp/*.h
%{_libdir}/libqhull.so
%{_libdir}/libqhull_p.so
%{_libdir}/libqhull_r.so
%{_libdir}/libqhullcpp.a
%{_libdir}/libqhullstatic.a
%{_libdir}/libqhullstatic_r.a
#%{_libdir}/libqhullstatic_p.a
%dir %{_prefix}/lib/cmake/Qhull
%{_prefix}/lib/cmake/Qhull/Qhull*.cmake
%dir %{_docdir}/qhull
%doc %{_docdir}/qhull/*
%files tools
%defattr(-,root,root)
%{_bindir}/qconvex
%{_bindir}/qdelaunay
%{_bindir}/qhalf
%{_bindir}/qhull
%{_bindir}/qvoronoi
%{_bindir}/rbox
%{_mandir}/man1/qhull.1.gz
%{_mandir}/man1/rbox.1.gz
%changelog
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2019.1-1mamba
- update to 2019.1
* Fri May 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2015-1mamba
- update to 2015
* Fri Jul 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2012.1-2mamba
- provide compatibility symlinks to resolve qhull/qhull.h into libqhull/libqhull.h
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 2012.1-1mamba
- update to 2012.1
* Mon Mar 18 2013 Automatic Build System <autodist@mambasoft.it> 2009.1.3-1mamba
- automatic version update by autodist
* Mon Oct 13 2008 gil <puntogil@libero.it> 2003.1-1mamba
- package created by autospec