diff options
| author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-23 07:00:10 +0000 |
|---|---|---|
| committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-23 07:00:10 +0000 |
| commit | df011ca33804cc82b1a07d52fd3cee48042fed1b (patch) | |
| tree | a5e701439f1f0c05d770919a86bd01c8128ee526 /python-GridDataFormats.spec | |
| parent | 0e278213721070817aa6fc56b4e6cbb90b7053e3 (diff) | |
automatic import of python3-GridDataFormatsopeneuler20.03
Diffstat (limited to 'python-GridDataFormats.spec')
| -rw-r--r-- | python-GridDataFormats.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python-GridDataFormats.spec b/python-GridDataFormats.spec new file mode 100644 index 0000000..a061a45 --- /dev/null +++ b/python-GridDataFormats.spec @@ -0,0 +1,74 @@ +%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://files.pythonhosted.org/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 +%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 +* Thu Feb 23 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1-1 +- Package Spec generated |
