Dependency for current ccp4 OBS-URL: https://build.opensuse.org/request/show/1003665 OBS-URL: https://build.opensuse.org/package/show/science/mmdb2?expand=0&rev=1
76 lines
1.9 KiB
RPMSpec
76 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package mmdb2
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
%global sover 0
|
|
|
|
Name: mmdb2
|
|
Version: 2.0.22
|
|
Release: 0
|
|
Summary: Macromolecular coordinate library
|
|
License: LGPL-2.1-or-later
|
|
URL: https://www.ccp4.ac.uk/
|
|
Source: https://ftp.ccp4.ac.uk/opensource/mmdb2-%{version}.tar.gz
|
|
BuildRequires: gcc-c++
|
|
|
|
%description
|
|
Mmdb2 Macromolecular coordinate library.
|
|
|
|
%package -n libmmdb2-%{sover}
|
|
Summary: Macromolecular coordinate library
|
|
Group: System/Libraries
|
|
|
|
%description -n libmmdb2-%{sover}
|
|
Mmdb2 Macromolecular coordinate library.
|
|
|
|
%package devel
|
|
Summary: Development files for mmdb2
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libmmdb2-%{sover} = %{version}
|
|
|
|
%description devel
|
|
Header files and other development files for mmdb2.
|
|
|
|
%prep
|
|
%setup -q
|
|
chmod -x README COPYING*
|
|
|
|
%build
|
|
%configure --enable-shared --disable-static
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
rm %{buildroot}%{_libdir}/lib*.la
|
|
|
|
%check
|
|
%make_build check
|
|
|
|
%post -n libmmdb2-%{sover} -p /sbin/ldconfig
|
|
%postun -n libmmdb2-%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libmmdb2-%{sover}
|
|
%license COPYING.LESSER
|
|
%{_libdir}/libmmdb2.so.%{sover}*
|
|
|
|
%files devel
|
|
%doc README
|
|
%{_libdir}/libmmdb2.so
|
|
%{_includedir}/mmdb2
|
|
%{_libdir}/pkgconfig/mmdb2.pc
|
|
|
|
%changelog
|