File coot.spec of Package coot
#
# spec file for package coot
#
# Copyright (c) 2009 Ansgar Esztermann
# 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/
#
Name: coot
License: GPL-3.0
Group: Productivity/Scientific/Chemistry
Summary: Crystallographic Object-Oriented Toolkit
Version: 1.0.05
Release: 0
URL: https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/
Source0: https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/source/releases/coot-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: blas-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glm-devel
BuildRequires: goocanvas2-devel
BuildRequires: gsl-devel
BuildRequires: gtk3-devel
BuildRequires: clipper-devel
BuildRequires: libboost_headers-devel
BuildRequires: libboost_python3-devel
BuildRequires: libmmdb-devel
BuildRequires: libccp4-devel
BuildRequires: ssm-devel
BuildRequires: python3-devel >= 3.7
BuildRequires: python3-gobject-devel
BuildRequires: swig
BuildRequires: curl-devel >= 7.9.7
%description
Coot is for macromolecular model building, model completion and
validation, particularly suitable for protein modelling using X-ray
data.
Coot displays maps and models and allows model manipulations such as
idealization, real space refinement, manual rotation/translation,
rigid-body fitting, ligand search, solvation, mutations, rotamers,
Ramachandran plots, skeletonization...
%package devel
Summary: Crystallographic Object-Oriented Toolkit
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
Coot is for macromolecular model building, model completion and
validation, particularly suitable for protein modelling using X-ray
data.
Coot displays maps and models and allows model manipulations such as
idealization, real space refinement, manual rotation/translation,
rigid-body fitting, ligand search, solvation, mutations, rotamers,
Ramachandran plots, skeletonization...
This package contains headers and libraries needed for development.
%package libs
Summary: Crystallographic Object-Oriented Toolkit
Group: Productivity/Scientific/Chemistry
Requires: %{name} = %{version}
%description libs
Coot is for macromolecular model building, model completion and
validation, particularly suitable for protein modelling using X-ray
data.
Coot displays maps and models and allows model manipulations such as
idealization, real space refinement, manual rotation/translation,
rigid-body fitting, ligand search, solvation, mutations, rotamers,
Ramachandran plots, skeletonization...
This package contains shared libraries.
%prep
%setup -q
%autopatch -p1
%build
sed -i -e 's/AM_SINGLE_FFTW2//' \
-e '/git/ d' -e '/revision_count/ d' configure.ac
autoreconf -fiv
%configure \
--disable-static \
--with-gtk3 \
--includedir=%{_includedir}/%{name} --libdir=%{_libdir}/%{name}
# Makefile is racy ...
for lib in utils mini-mol geometry lidia-core protein_db coot-utils analysis angles \
build ccp4mg-utils compat cootaneer cootilus db-main ideal ligand coords \
density-contour goograph high-res lbg pli skeleton ; do
%make_build -C ${lib}
done
%make_build -C src coot-bin
%make_build
%install
%make_install
rm %{buildroot}%{_libdir}/%{name}/*.la
rm %{buildroot}%{python3_sitearch}/*.la
%fdupes %{buildroot}/%{_datadir}
%files
%{_bindir}/coot
%{_bindir}/coot-available-comp-id
%{_bindir}/coot-bfactan
%{_bindir}/coot-identify-protein
%{_bindir}/coot-ligand-validation
%{_bindir}/coot-mini-rsr
%{_bindir}/coot-density-score-by-residue
%{_bindir}/dynarama
%{_bindir}/findligand
%{_bindir}/findwaters
%{_bindir}/lidia
%{_bindir}/mmrrcc
%{_libexecdir}/*-bin
%{_libexecdir}/coot-make-ligands-db
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/appdata/coot.appdata.xml
%{_datadir}/applications/coot.desktop
%{_datadir}/icons/hicolor/*/apps/coot.*
%{_datadir}/man/man1/*.1*
%{python3_sitearch}/_coot*.so*
%{python3_sitelib}/*
%files devel
%dir %{_includedir}/coot
%{_includedir}/coot/*
%{_libdir}/coot/*.so
%files libs
%dir %{_libdir}/coot
%{_libdir}/coot/*.so.*
%changelog