summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 06:58:13 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 06:58:13 +0000
commit527012ec6a5fa3a14a3371cbf31ca2eafe3f5033 (patch)
treef5c180a14f84a2fa8e26a26660aaadb58a28ed8f
parentec91ab64fe0ef7bdfc430a2b4ab8d61352e003d9 (diff)
automatic import of python-epanettoolsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-epanettools.spec74
-rw-r--r--sources1
3 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..df2d4f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/EPANETTOOLS-1.0.0.tar.gz
diff --git a/python-epanettools.spec b/python-epanettools.spec
new file mode 100644
index 0000000..ed24f83
--- /dev/null
+++ b/python-epanettools.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-EPANETTOOLS
+Version: 1.0.0
+Release: 1
+Summary: Epanet 2.0 Python calling interface
+License: GPLv3+
+URL: https://github.com/asselapathirana/epanettools
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6a/50/55082eac183f5c6ede8f78f05cb1f015ea1a187b9a900ecee20e0aeaf4e4/EPANETTOOLS-1.0.0.tar.gz
+
+
+%description
+
+
+%package -n python3-EPANETTOOLS
+Summary: Epanet 2.0 Python calling interface
+Provides: python-EPANETTOOLS
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-EPANETTOOLS
+
+
+%package help
+Summary: Development documents and examples for EPANETTOOLS
+Provides: python3-EPANETTOOLS-doc
+%description help
+
+
+%prep
+%autosetup -n EPANETTOOLS-1.0.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-EPANETTOOLS -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..798d65f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e8bca4d06cf5282765de1bcf5c30fedd EPANETTOOLS-1.0.0.tar.gz