File coordgenlibs.spec of Package coordgenlibs

#
# spec file for package coordgenlibs
#
# Copyright (c) 2022 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 abiver 3
Name:           coordgenlibs
Version:        3.0.2
Release:        0
Summary:        2D coordinate generation for chemical compounds
License:        BSD-3-Clause
URL:            https://github.com/schrodinger/coordgenlibs
Source:         https://github.com/schrodinger/coordgenlibs/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  c++_compiler
BuildRequires:  cmake
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_test-devel
BuildRequires:  maeparser-devel

%description
Open Source release of Schrödinger's routines for the 2D coordinate representation of chemical compounds.

%package -n libcoordgen%{abiver}
Summary:        The coordgenlibs shared library

%description -n libcoordgen%{abiver}
This package provides the coordgenlibs shared library.

%package devel
Summary:        Development files for coordgen
Requires:       libcoordgen%{abiver} = %{version}
Requires:       maeparser-devel

%description devel
This package contains the development files of coordgenlibs.

%prep
%autosetup -p1

%build
%cmake
%cmake_build

%install
%cmake_install

%post -n libcoordgen%{abiver} -p /sbin/ldconfig
%postun -n libcoordgen%{abiver} -p /sbin/ldconfig

%check
%if %{defined sle_version} && 0%{?sle_version} < 150400
export LD_LIBRARY_PATH="$PWD/build"
%endif
%ctest

%files -n libcoordgen%{abiver}
%license LICENSE
%{_libdir}/libcoordgen.so.%{abiver}*

%files devel
%license LICENSE
%doc README.md
%{_includedir}/coordgen
%{_libdir}/cmake/coordgen-config-relwithdebinfo.cmake
%{_libdir}/cmake/coordgen-config.cmake
%{_libdir}/libcoordgen.so

%changelog
openSUSE Build Service is sponsored by