From 903ae4e75f3958e79dce368b1183ff67973a0135 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 6 Mar 2023 12:46:40 +0000 Subject: automatic import of python-GridDataFormats --- python-GridDataFormats.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 python-GridDataFormats.spec (limited to 'python-GridDataFormats.spec') diff --git a/python-GridDataFormats.spec b/python-GridDataFormats.spec new file mode 100644 index 0000000..b6ccbd7 --- /dev/null +++ b/python-GridDataFormats.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-GridDataFormats +Version: 1.0.1 +Release: 1 +Summary: Reading and writing of data on regular grids in Python +License: LGPLv3 +URL: https://github.com/MDAnalysis/GridDataFormats +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ab/c2/4304acc954dac134084250f98689c5996a679445983a2e2184d42dfa806b/GridDataFormats-1.0.1.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-mrcfile + +%description + + +%package -n python3-GridDataFormats +Summary: Reading and writing of data on regular grids in Python +Provides: python-GridDataFormats +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-GridDataFormats + + +%package help +Summary: Development documents and examples for GridDataFormats +Provides: python3-GridDataFormats-doc +%description help + + +%prep +%autosetup -n GridDataFormats-1.0.1 + +%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 +* Mon Mar 06 2023 Python_Bot - 1.0.1-1 +- Package Spec generated -- cgit v1.2.3