Summary: Macromolecular coordinate library Name: mmdb2 Version: 2.0.1 Release: 3%{?dist} License: LGPLv3 Group: System Environment/Libraries URL: ftp://ftp.ccp4.ac.uk/opensource/ Source0: ftp://ftp.ccp4.ac.uk/opensource/%{name}-%{version}.tar.gz # prevent breakage on rawhide %if 0%{?fedora} >= 22 Obsoletes: mmdb < %{version}-%{release} %endif %description MMDB is a macromolecular coordinate library, written by Eugene Krissinel primarily for use by the collaborative computational project 4 (CCP4) group in the United Kingdom. The Coordinate Library is designed to assist CCP4 developers in working with coordinate files. The Library features work with the primary file formats of the Protein Data Bank (PDB), the PDB file format and the mmCIF file format. The Library provides various high-level tools for working with coordinate files, which include not only reading and writing, but also orthogonal-fractional coordinate transforms, generation of symmetry mates, editing the molecular structure and some others. The Library is supposed as a general low-level tool for unifying the coordinate-related operations. This package contains the shared library components needed for programs that have been compiled with the mmdb library. %package devel Summary: Header files and library for developing programs with mmdb Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig Group: Development/Libraries # prevent breakage on rawhide %if 0%{?fedora} >= 22 Obsoletes: mmdb < %{version}-%{release} %endif %description devel This package contains libraries and header files needed for program development using the macromolecular coordinate library. %prep %setup -q -n %{name}-%{version} chmod 644 README COPYING AUTHORS %build %configure --enable-shared --disable-static make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} INSTALL='install -p' # remove unpackaged files from the buildroot rm -f %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS COPYING README %{_libdir}/libmmdb2.so.0.0.0 %{_libdir}/libmmdb2.so.0 %files devel %{_libdir}/libmmdb2.so %{_includedir}/mmdb2/ %{_libdir}/pkgconfig/%{name}.pc %changelog * Wed Nov 26 2014 Tim Fenn - 2.0.1-3 - edit obsoletes to prevent breakage on rawhide * Sun Nov 2 2014 Tim Fenn - 2.0.1-2 - spec file clean ups/modernization * Sun Sep 21 2014 Tim Fenn - 2.0.1-1 - Initial build