File delaunay-triangulation.spec of Package delaunay-triangulation
#
# spec file for package delaunay-triangulation
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 2
Name: delaunay-triangulation
Version: 2.1
Release: 0
Summary: Implements the Bowyer–Watson algorithm
License: MIT
URL: https://github.com/bl4ckb0ne/delaunay-triangulation
Source0: https://github.com/bl4ckb0ne/delaunay-triangulation/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: meson
%description
This library implements the Bowyer–Watson algorithm.
%package -n lib%{name}%{sover}
Summary: Implements the Bowyer-Watson algorithm
%description -n lib%{name}%{sover}
This library implements the Bowyer-Watson algorithm.
%package devel
Summary: Header files for %{name}
Requires: lib%{name}%{sover} = %{version}
%description devel
Contains development files for %{name}.
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files -n lib%{name}%{sover}
%license LICENSE
%{_libdir}/lib%{name}.so.%{sover}*
%files devel
%doc README.md
%{_includedir}/dt
%{_libdir}/lib%{name}.so
%changelog