File ssm.spec of Package ssm

#
# spec file for package ssm
#
# 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 sover 2

Name:           ssm
Version:        1.4.0
Release:        0
Summary:        Secondary Structure Matching
License:        GPL-3.0-or-later
Group:          Productivity/Scientific/Chemistry
URL:            https://www.ccp4.ac.uk
Source0:        https://ftp.ccp4.ac.uk/opensource/ssm-%{version}.tar.gz
Patch2:         2-ssm-math.patch
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(mmdb2)
BuildRequires:  libccp4-devel

%description
Secondary Structure Matching

%package devel
Group:          Development/Libraries/C and C++
Summary:        Secondary Structure Matching
Requires:       %{name} = %{version}
Requires:       lib%{name}%{sover} = %{version}

%description devel
This package contains headers for development.

%package -n lib%{name}%{sover}
Summary:        Secondary Structure Matching
Group:          System/Libraries

%description -n lib%{name}%{sover}
This package contains the shared ssm library.

%prep
%setup -q
%autopatch -p1

%build
%configure --enable-ccp4 --enable-shared --disable-static
%make_build

%install
%make_install
rm %{buildroot}%{_libdir}/libssm.la

%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig

%files
%{_bindir}/superpose

%files -n lib%{name}%{sover}
%{_libdir}/libssm*.so.*

%files devel
%{_includedir}/%{name}
%{_libdir}/libssm*.so
%{_libdir}/pkgconfig/ssm.pc


%changelog
openSUSE Build Service is sponsored by