From 134f5da2a412fdb5da42a194714fcc9605ea4fcd Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Tue, 6 Jun 2017 10:21:22 +0200 Subject: [PATCH] initial import (review bug 1452644) --- .gitignore | 1 + python-mmtf.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 103 insertions(+) create mode 100644 python-mmtf.spec diff --git a/.gitignore b/.gitignore index e69de29..04a8231 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mmtf-python-1.0.6.tar.gz diff --git a/python-mmtf.spec b/python-mmtf.spec new file mode 100644 index 0000000..b4d8041 --- /dev/null +++ b/python-mmtf.spec @@ -0,0 +1,101 @@ +%global pname mmtf-python + +%global desc \ +The Macromolecular Transmission Format (MMTF) is a new compact binary format to\ +transmit and store biomolecular structures for fast 3D visualization and\ +analysis.\ +\ +Bradley AR, Rose AS, Pavelka A, Valasatava Y, Duarte JM, Prlić A, Rose PW (2017)\ +MMTF - an efficient file format for the transmission, visualization, and\ +analysis of macromolecular structures. bioRxiv 122689. doi: 10.1101/122689\ +\ +Valasatava Y, Bradley AR, Rose AS, Duarte JM, Prlić A, Rose PW (2017) Towards an\ +efficient compression of 3D coordinates of macromolecular structures. PLOS ONE\ +12(3): e0174846. doi: 10.1371/journal.pone.01748464\ +\ +Rose AS, Bradley AR, Valasatava Y, Duarte JM, Prlić A, Rose PW (2016) Web-based\ +molecular graphics for large complexes. In Proceedings of the 21st International\ +Conference on Web3D Technology (Web3D '16). ACM, New York, NY, USA, 185-186.\ +doi: 10.1145/2945292.2945324\ + + +Name: python-mmtf +Version: 1.0.6 +Release: 2%{?dist} +Summary: A decoding library for the macromolecular transmission format (MMTF) +License: ASL 2.0 +URL: https://github.com/rcsb/mmtf-python +Source0: https://files.pythonhosted.org/packages/source/m/%{pname}/%{pname}-%{version}.tar.gz +BuildArch: noarch + +%description +%{desc} + +%package -n python2-mmtf +Summary: %{summary} +BuildRequires: python2-devel +# for tests +BuildRequires: python2-msgpack +BuildRequires: python2-nose +BuildRequires: python2-numpy +%{?python_provide:%python_provide python2-mmtf} +Requires: python2-msgpack + +%description -n python2-mmtf +%{desc} + +%package -n python3-mmtf +Summary: %{summary} +BuildRequires: python3-devel +# for tests +BuildRequires: python3-msgpack +BuildRequires: python3-nose +BuildRequires: python3-numpy +%{?python_provide:%python_provide python3-mmtf} +Requires: python3-msgpack + +%description -n python3-mmtf +%{desc} + +%prep +%setup -q -n %{pname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install +rm %{buildroot}%{_bindir}/sample + +%if 1 +%check +nosetests-%{python2_version} +nosetests-%{python3_version} +%endif + +%files -n python2-mmtf +%license LICENSE.txt +%doc CHANGELOG.md README.md +%{python2_sitelib}/mmtf_python-%{version}-py%{python2_version}.egg-info +%{python2_sitelib}/mmtf + +%files -n python3-mmtf +%license LICENSE.txt +%doc CHANGELOG.md README.md +%{python3_sitelib}/mmtf_python-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/mmtf + +%changelog +* Mon Jun 05 2017 Dominik Mierzejewski 1.0.6-2 +- drop redundant macro definitions and use python version macros + +* Sat Jun 03 2017 Dominik Mierzejewski 1.0.6-1 +- update to 1.0.6 +- drop workarounds for issues fixed upstream + +* Thu May 18 2017 Dominik Mierzejewski 1.0.5-1 +- initial build +- include upstream test data missing from tarball +- don't run tests requiring network access diff --git a/sources b/sources index e69de29..e66d5a8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (mmtf-python-1.0.6.tar.gz) = 8eae6d1a461bea173d4d25e7f7941402790572cf0104f7802f42e5cc25db98b227f527262af2db44f7dbd931c9810e6a674d22977f74830361cef31de66f14da