summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 08:00:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 08:00:12 +0000
commit02b2e582132c61fc340693bb4459b21278bb0632 (patch)
tree626161d48959f3d2bd49c74fa63e557d867b0bc7
parentcb551c9ac55342a2b5d8e57c5f1fc913f2320d45 (diff)
automatic import of python-ctparse
-rw-r--r--.gitignore1
-rw-r--r--python-ctparse.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4080429 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ctparse-0.3.6.tar.gz
diff --git a/python-ctparse.spec b/python-ctparse.spec
new file mode 100644
index 0000000..04f44c1
--- /dev/null
+++ b/python-ctparse.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ctparse
+Version: 0.3.6
+Release: 1
+Summary: Parse natural language time expressions in python
+License: MIT license
+URL: https://github.com/comtravo/ctparse
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7c/9b/c43cffc46999471ab611ec3078bf198e4b0fca88cb5d144716a80c2c30eb/ctparse-0.3.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-dateutil
+Requires: python3-regex
+Requires: python3-tqdm
+
+%description
+
+
+%package -n python3-ctparse
+Summary: Parse natural language time expressions in python
+Provides: python-ctparse
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ctparse
+
+
+%package help
+Summary: Development documents and examples for ctparse
+Provides: python3-ctparse-doc
+%description help
+
+
+%prep
+%autosetup -n ctparse-0.3.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-ctparse -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7be5c15
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8d428f20ec13aef27acbb958b54ef7b9 ctparse-0.3.6.tar.gz