Created
October 30, 2014 12:41
-
-
Save samoturk/d2e717abc9204d632d5c to your computer and use it in GitHub Desktop.
RDKit release 2014_09_1 OpenSuse SPEC file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: rdkit | |
Version: 2014_09_1 | |
Release: 0 | |
License: BSD-3-Clause | |
BuildRoot: %{_tmppath}/%{name}-Release_%{version}-build | |
BuildRequires: gcc-c++ flex bison sqlite3-devel python-numpy-devel | |
BuildRequires: python-devel boost-devel cmake fdupes libopenbabel-devel | |
Group: Development/Libraries/C and C++ | |
Summary: A collection of cheminformatics and machine-learning software | |
Url: http://rdkit.org | |
Source0: Release_%{version}.tar.gz | |
%description | |
A collection of cheminformatics and machine-learning software | |
%package -n librdkit1 | |
Summary: A collection of cheminformatics and machine-learning software | |
Group: Development/Libraries/C and C++ | |
%description -n librdkit1 | |
A collection of cheminformatics and machine-learning software | |
Authors: | |
-------- | |
Greg Landrum | |
%package -n librdkit-devel | |
Summary: A collection of cheminformatics and machine-learning software | |
Group: Development/Libraries/C and C++ | |
Requires: librdkit1 = %version | |
%description -n librdkit-devel | |
A collection of cheminformatics and machine-learning software written in C++ and Python. | |
Authors: | |
-------- | |
Greg Landrum | |
%package -n python-rdkit | |
Summary: A collection of cheminformatics and machine-learning software | |
Group: Development/Libraries/Python | |
Requires: librdkit1 = %version | |
%{py_requires} | |
%description -n python-rdkit | |
A collection of cheminformatics and machine-learning software | |
Authors: | |
-------- | |
Greg Landrum | |
%prep | |
%setup -q -n %{name}-Release_%{version} | |
%build | |
%define libsuffix "" | |
%ifarch x86_64 | |
%define libsuffix 64 | |
%endif | |
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=%libsuffix -DRDK_INSTALL_INTREE=OFF -DRDK_INSTALL_STATIC_LIBS=OFF -DRDK_BUILD_INCHI_SUPPORT=ON -DRDK_BUILD_COMPRESSED_SUPPLIERS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo . | |
make %{?_smp_mflags} | |
%install | |
python -m compileall rdkit | |
%makeinstall | |
%fdupes %{buildroot} | |
%post -n librdkit1 -p /sbin/ldconfig | |
%postun -n librdkit1 -p /sbin/ldconfig | |
%clean | |
%{__rm} -rf $RPM_BUILD_ROOT | |
%files -n librdkit1 | |
%defattr(-,root,root,-) | |
%{_libdir}/*.so.* | |
%files -n librdkit-devel | |
%defattr(-,root,root,-) | |
%{_includedir}/rdkit | |
%{_datadir}/RDKit | |
%{_libdir}/*.so | |
%{_libdir}/rdkit*.cmake | |
%files -n python-rdkit | |
%defattr(-,root,root,-) | |
%{py_sitedir}/rdkit | |
%changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment