diff --git a/python-nmrglue.spec b/python-nmrglue.spec new file mode 100644 index 0000000000000000000000000000000000000000..3a321a325837cde4782622d6821a723371c579ee --- /dev/null +++ b/python-nmrglue.spec @@ -0,0 +1,55 @@ +Name: python-nmrglue +Version: 0.8 +Release: 1 +Summary: Python module for processing NMR data + +License: BSD +URL: https://github.com/jjhelmus/nmrglue +Source0: https://github.com/jjhelmus/nmrglue/archive/v0.8.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +# these are required for tests +BuildRequires: python3-numpy +BuildRequires: python3-scipy + +%description +nmrglue is a module for working with NMR data in Python. When used with the +numpy, scipy, and matplotlib packages nmrglue provides a robust interpreted +environment for processing, analyzing, and inspecting NMR data. + +%package -n python3-nmrglue +Summary: Python module for processing NMR data +%{?python_provide:%python_provide python3-nmrglue} +Requires: python3-numpy +Requires: python3-scipy + +%description -n python3-nmrglue +nmrglue is a module for working with NMR data in Python. When used with the +numpy, scipy, and matplotlib packages nmrglue provides a robust interpreted +environment for processing, analyzing, and inspecting NMR data. + +%prep +%autosetup -n nmrglue-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +pushd nmrglue/fileio/tests +#python3 tests +PYTHONPATH="%{buildroot}%{python3_sitelib}" %{__python3} test_pipe.py +popd + +%files -n python3-nmrglue +%license LICENSE.txt +%doc README.rst TODO.txt +%{python3_sitelib}/* + +%changelog +* Thu Jul 08 2021 liuliang - 0.8-1 +- Package init diff --git a/v0.8.tar.gz b/v0.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..04245b2cb0468e3700115374577d58ef6bb4a241 Binary files /dev/null and b/v0.8.tar.gz differ