diff --git a/nmrglue-0.9.tar.gz b/nmrglue-0.9.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..89e772d615b6b1cf296bb4a61f5c7df64a390c8f Binary files /dev/null and b/nmrglue-0.9.tar.gz differ diff --git a/python-nmrglue.spec b/python-nmrglue.spec index d79efba4e0cf172abf242bf40c5d5df4d9b810d8..b27c35b435eb6a82f3b5266af17704002e2cadee 100644 --- a/python-nmrglue.spec +++ b/python-nmrglue.spec @@ -1,18 +1,15 @@ +%global _empty_manifest_terminate_build 0 Name: python-nmrglue -Version: 0.8 -Release: 2 +Version: 0.9 +Release: 1 Summary: Python module for processing NMR data - License: BSD-3-Clause -URL: https://github.com/jjhelmus/nmrglue -Source0: https://github.com/jjhelmus/nmrglue/archive/v0.8.tar.gz - +URL: http://www.nmrglue.com +Source0: https://files.pythonhosted.org/packages/5e/64/33f04fc1487b1606a7888c0eb75a53ddd73d83b3ed16a6dc9f6b211e2456/nmrglue-0.9.tar.gz BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-setuptools -# these are required for tests -BuildRequires: python3-numpy -BuildRequires: python3-scipy + +Requires: python3-numpy +Requires: python3-scipy %description nmrglue is a module for working with NMR data in Python. When used with the @@ -21,15 +18,26 @@ 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 +Provides: python-nmrglue = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-numpy +BuildRequires: 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. +%package help +Summary: Development documents and examples for nmrglue +Provides: python3-nmrglue-doc + +%description help +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} @@ -38,21 +46,45 @@ environment for processing, analyzing, and inspecting NMR data. %install %py3_install - -%check -pushd nmrglue/fileio/tests -#python3 tests -PYTHONPATH="%{buildroot}%{python3_sitelib}" %{__python3} test_pipe.py +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . -%files -n python3-nmrglue -%license LICENSE.txt -%doc README.rst TODO.txt -%{python3_sitelib}/* +%files -n python3-nmrglue -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Nov 08 2022 wangjunqi - 0.9-1 +- Update package to version 0.9 + * Tue May 10 2022 xigaoxinyan - 0.8-2 - License compliance rectification * Thu Jul 08 2021 liuliang - 0.8-1 - Package init + diff --git a/v0.8.tar.gz b/v0.8.tar.gz deleted file mode 100644 index 04245b2cb0468e3700115374577d58ef6bb4a241..0000000000000000000000000000000000000000 Binary files a/v0.8.tar.gz and /dev/null differ