diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:39:10 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:39:10 +0000 |
| commit | 31cef4d8a32619af9552a1369afbf227a2401ec5 (patch) | |
| tree | eec5c7430fcafe92a4e38326e25e28bd8be92ffb /python-pygeobase.spec | |
| parent | b862ad853ae23701a8e5cbc98667e05c75b32fdf (diff) | |
automatic import of python-pygeobase
Diffstat (limited to 'python-pygeobase.spec')
| -rw-r--r-- | python-pygeobase.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-pygeobase.spec b/python-pygeobase.spec new file mode 100644 index 0000000..c374b4a --- /dev/null +++ b/python-pygeobase.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pygeobase +Version: 0.6.2 +Release: 1 +Summary: Add a short description here! +License: mit +URL: http://geo.tuwien.ac.at/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/60/7e/45cbce75ba20e9e1d2d33a2fb3006a58c89d303d344e936ca819d376f9e4/pygeobase-0.6.2.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-pygeogrids +Requires: python3-pytest +Requires: python3-pytest-cov + +%description + + +%package -n python3-pygeobase +Summary: Add a short description here! +Provides: python-pygeobase +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pygeobase + + +%package help +Summary: Development documents and examples for pygeobase +Provides: python3-pygeobase-doc +%description help + + +%prep +%autosetup -n pygeobase-0.6.2 + +%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-pygeobase -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.2-1 +- Package Spec generated |
