Move libqhull6_p to individual package

Fix library major version
This commit is contained in:
Andrey Bondrov 2016-06-15 19:50:18 +10:00
parent 4c4d24dda7
commit 445c3f7a82

View file

@ -1,15 +1,16 @@
%define major 6
%define major 6.3.0.1483
%define libname %mklibname %{name} %{major}
%define libname6p %mklibname %{name}6_p %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s
Summary: Compute convex hulls
Name: qhull
Version: 2012.1
Release: 5
Release: 6
License: GPLv2+
Group: System/Libraries
URL: http://www.qhull.org/
Url: http://www.qhull.org/
Source0: http://www.qhull.org/files/%{name}-%{version}-src.tgz
BuildRequires: cmake
Patch0: qhull-2012.1-format.patch
@ -39,25 +40,29 @@ point arithmetic. It can approximate a convex hull.
#----------------------------------------------------------------------------
%package -n %{libname}
Summary: Shared libraries for %{name}
Summary: Shared library for %{name}
Group: System/Libraries
Conflicts: %{_lib}qhull6 < 2012.1-6
Obsoletes: %{_lib}qhull6 < 2012.1-6
%description -n %{libname}
Qhull computes convex hulls, Delaunay triangulations, Voronoi diagrams,
furthest-site Voronoi diagrams, and halfspace intersections about a point.
It runs in 2-d, 3-d, 4-d, or higher. It implements the Quickhull algorithm
for computing convex hulls. Qhull handles round-off errors from floating
point arithmetic. It can approximate a convex hull.
The program includes options for hull volume, facet area, partial hulls,
input transformations, randomization, tracing, multiple output formats, and
execution statistics.
This package provide shared libraries for %{name}.
Shared library for %{name}.
%files -n %{libname}
%{_libdir}/libqhull.so.%{major}*
%{_libdir}/libqhull6_p.so.%{major}*
%{_libdir}/libqhull.so.%{major}
#----------------------------------------------------------------------------
%package -n %{libname6p}
Summary: Shared library for %{name}
Group: System/Libraries
Conflicts: %{_lib}qhull6 < 2012.1-6
%description -n %{libname6p}
Shared library for %{name}.
%files -n %{libname6p}
%{_libdir}/libqhull6_p.so.%{major}
#----------------------------------------------------------------------------
@ -65,6 +70,7 @@ This package provide shared libraries for %{name}.
Summary: Header files and libraries for development with %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
Requires: %{libname6p} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
%description -n %{devname}