diff --git a/GridDataFormats-0.6.0.tar.gz b/GridDataFormats-0.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3217e43ba43bf8206afe8d2ae397a0f1c56b3517 Binary files /dev/null and b/GridDataFormats-0.6.0.tar.gz differ diff --git a/python-GridDataFormats.spec b/python-GridDataFormats.spec new file mode 100644 index 0000000000000000000000000000000000000000..fb5eabc1e2404fbb585f9115d2ca08f3ee580566 --- /dev/null +++ b/python-GridDataFormats.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-GridDataFormats +Version: 0.6.0 +Release: 1 +Summary: Reading and writing of data on regular grids in Python +License: LGPLv3 +URL: https://github.com/MDAnalysis/GridDataFormats +Source0: https://files.pythonhosted.org/packages/ec/3e/3d4b3b0e9f3c71a8590594c62976bd8fd6050407fb009fe438cdf138f390/GridDataFormats-0.6.0.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-six +Requires: python3-scipy + +%description +GridDataFormats is a pure Python library to handle data on a regular grid using commonly used file formats in molecular simulations. + +%package -n python3-GridDataFormats +Summary: Reading and writing of data on regular grids in Python +Provides: python-GridDataFormats +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-GridDataFormats +GridDataFormats is a pure Python library to handle data on a regular grid using commonly used file formats in molecular simulations. + +%package help +Summary: Development documents and examples for GridDataFormats +Provides: python3-GridDataFormats-doc +%description help +GridDataFormats is a pure Python library to handle data on a regular grid using commonly used file formats in molecular simulations. + +%prep +%autosetup -n GridDataFormats-0.6.0 + +%build +%py3_build + +%install +%py3_install +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-GridDataFormats -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Dec 02 2021 Python_Bot -0.6.0-1 +- Package Init