diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 14:52:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 14:52:04 +0000 |
commit | ce311ce041bae75590be336e063163844d750592 (patch) | |
tree | 4c53d1ced3651b5c9ed838ac7f99c38c0c2f79dd | |
parent | 0dcc2dc0bd82563a93166d4124703b8839291e3a (diff) |
automatic import of python-parsedatetime
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-parsedatetime.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/parsedatetime-2.6.tar.gz diff --git a/python-parsedatetime.spec b/python-parsedatetime.spec new file mode 100644 index 0000000..30ddff7 --- /dev/null +++ b/python-parsedatetime.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-parsedatetime +Version: 2.6 +Release: 1 +Summary: Parse human-readable date/time text. +License: Apache License 2.0 +URL: https://github.com/bear/parsedatetime +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/20/cb587f6672dbe585d101f590c3871d16e7aec5a576a1694997a3777312ac/parsedatetime-2.6.tar.gz +BuildArch: noarch + + +%description +Parse human-readable date/time strings. +Python 2.6 or greater is required for parsedatetime version 1.0 or greater. + +%package -n python3-parsedatetime +Summary: Parse human-readable date/time text. +Provides: python-parsedatetime +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-parsedatetime +Parse human-readable date/time strings. +Python 2.6 or greater is required for parsedatetime version 1.0 or greater. + +%package help +Summary: Development documents and examples for parsedatetime +Provides: python3-parsedatetime-doc +%description help +Parse human-readable date/time strings. +Python 2.6 or greater is required for parsedatetime version 1.0 or greater. + +%prep +%autosetup -n parsedatetime-2.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-parsedatetime -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.6-1 +- Package Spec generated @@ -0,0 +1 @@ +fb8918fe699d79a470dcd959b77466d7 parsedatetime-2.6.tar.gz |