summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 05:21:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 05:21:34 +0000
commit751cffdb693742bd92b94b00644a7185ba6bb286 (patch)
tree69c54db0cfc7b14f4fddfc7a297b949c2e8f1e33
parent2a5f6f4de684041684a5e956cfe551b84be3cdc2 (diff)
automatic import of python-dispatchopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-dispatch.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9af95f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dispatch-2.0.6.tar.gz
diff --git a/python-dispatch.spec b/python-dispatch.spec
new file mode 100644
index 0000000..ee13a20
--- /dev/null
+++ b/python-dispatch.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dispatch
+Version: 2.0.6
+Release: 1
+Summary: A publishing platform for modern newspapers
+License: GPL
+URL: https://github.com/ubyssey/dispatch
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/36/0787c8410eb17f66e3fa63188f431ca6b2a67d29b7600cf2b4032811280d/dispatch-2.0.6.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-dispatch
+Summary: A publishing platform for modern newspapers
+Provides: python-dispatch
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dispatch
+
+
+%package help
+Summary: Development documents and examples for dispatch
+Provides: python3-dispatch-doc
+%description help
+
+
+%prep
+%autosetup -n dispatch-2.0.6
+
+%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-dispatch -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..bb33ae5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9d6a5db1da78ed3fca72c188b437fd3b dispatch-2.0.6.tar.gz