summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 10:12:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 10:12:49 +0000
commit852013d06013253337b3383643f4f44047aafa58 (patch)
tree7691ba98e292b024337f14b6783d9507f8ca9f89
parent02e4408dad0aebf2588fec38e6cc129c886c955f (diff)
automatic import of python-lunarcalendar
-rw-r--r--.gitignore1
-rw-r--r--python-lunarcalendar.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b717360 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/LunarCalendar-0.0.9.tar.gz
diff --git a/python-lunarcalendar.spec b/python-lunarcalendar.spec
new file mode 100644
index 0000000..cbe2ad6
--- /dev/null
+++ b/python-lunarcalendar.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-LunarCalendar
+Version: 0.0.9
+Release: 1
+Summary: A lunar calendar converter, including a number of lunar and solar holidays, mainly from China.
+License: MIT
+URL: https://github.com/wolfhong/LunarCalendar
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/01/eb/5900632e13fa5ae7fd10127d59b3809f4586484b69c9603e624b570ccbfb/LunarCalendar-0.0.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-dateutil
+Requires: python3-ephem
+Requires: python3-pytz
+
+%description
+ https://img.shields.io/pypi/v/LunarCalendar.svg
+ https://travis-ci.org/wolfhong/LunarCalendar.svg
+
+%package -n python3-LunarCalendar
+Summary: A lunar calendar converter, including a number of lunar and solar holidays, mainly from China.
+Provides: python-LunarCalendar
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-LunarCalendar
+ https://img.shields.io/pypi/v/LunarCalendar.svg
+ https://travis-ci.org/wolfhong/LunarCalendar.svg
+
+%package help
+Summary: Development documents and examples for LunarCalendar
+Provides: python3-LunarCalendar-doc
+%description help
+ https://img.shields.io/pypi/v/LunarCalendar.svg
+ https://travis-ci.org/wolfhong/LunarCalendar.svg
+
+%prep
+%autosetup -n LunarCalendar-0.0.9
+
+%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-LunarCalendar -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6c81b91
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ee3faced40d85637f00ce47cf4a554b6 LunarCalendar-0.0.9.tar.gz