summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-25 02:28:30 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-25 02:28:30 +0000
commit28d073a7850beca31058c0e1ecf3163ff235af4f (patch)
treed9d91b4789ee9b15cef6dbfebf2eeaae0efaa631
parent7ef4d2c0d2ddc37fa881f4035847fa6cbb283526 (diff)
automatic import of python3-hdateopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-hdate.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..113072d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hdate-0.10.4.tar.gz
diff --git a/python-hdate.spec b/python-hdate.spec
new file mode 100644
index 0000000..4030a58
--- /dev/null
+++ b/python-hdate.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+Name: python-hdate
+Version: 0.10.4
+Release: 1
+Summary: Jewish/Hebrew date and Zmanim in native Python 2.7/3.x
+License: GPL-3.0-or-later
+URL: https://github.com/py-libhdate/py-libhdate
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e4/45/2be9587c5f5cf20a0658548e9e6b3844c8e81dd1945fdc9027614760ea55/hdate-0.10.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-astral
+Requires: python3-enum34
+Requires: python3-pytz
+
+%description
+Installation using pip:
+#######################
+
+%package -n python3-hdate
+Summary: Jewish/Hebrew date and Zmanim in native Python 2.7/3.x
+Provides: python-hdate
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-hdate
+Installation using pip:
+#######################
+
+%package help
+Summary: Development documents and examples for hdate
+Provides: python3-hdate-doc
+%description help
+Installation using pip:
+#######################
+
+%prep
+%autosetup -n hdate-0.10.4
+
+%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-hdate -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..18bdccb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d978af3158615dc406549bcbde3972d4 hdate-0.10.4.tar.gz