summaryrefslogtreecommitdiff
path: root/python-exposan.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 03:59:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 03:59:12 +0000
commit228e1ee35ecb92ec6e08ba738e9d5333a0a0c537 (patch)
tree6eb9ead438d1e44f628e882a0c576ff7436ad378 /python-exposan.spec
parent936fadc2a36e27cad2ff585da3e8d3e41009d1da (diff)
automatic import of python-exposan
Diffstat (limited to 'python-exposan.spec')
-rw-r--r--python-exposan.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/python-exposan.spec b/python-exposan.spec
new file mode 100644
index 0000000..7864a60
--- /dev/null
+++ b/python-exposan.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-exposan
+Version: 1.2.5
+Release: 1
+Summary: Exposition of sanitation and resource recovery systems
+License: UIUC
+URL: https://qsdsan.com
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/92/93/02136188811bf0811e68fcd4b61a27e1a5771b7b0a611027d6816f194934/exposan-1.2.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-qsdsan
+
+%description
+
+
+%package -n python3-exposan
+Summary: Exposition of sanitation and resource recovery systems
+Provides: python-exposan
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-exposan
+
+
+%package help
+Summary: Development documents and examples for exposan
+Provides: python3-exposan-doc
+%description help
+
+
+%prep
+%autosetup -n exposan-1.2.5
+
+%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-exposan -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.5-1
+- Package Spec generated