summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 17:10:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 17:10:51 +0000
commitf4f1575bee5935cbc84b3f43534b8c9e5e382099 (patch)
treedcbd676ad4721ba17626711a881fc347f626d147
parent695b0e6dddf70bb24ef7b029f2bc155dc6433688 (diff)
automatic import of python-business-duration
-rw-r--r--.gitignore1
-rw-r--r--python-business-duration.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..58fb37d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/business_duration-0.66.tar.gz
diff --git a/python-business-duration.spec b/python-business-duration.spec
new file mode 100644
index 0000000..a32462e
--- /dev/null
+++ b/python-business-duration.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-business-duration
+Version: 0.66
+Release: 1
+Summary: Calculates business duration in days, hours, minutes and seconds by excluding weekends, public holidays and non-business hours
+License: MIT
+URL: https://github.com/gnaneshwar441/Business_Duration
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/1d/12b3bb612a19d20ca2d9fe7ebfc80ab6b9e1d5d575c6a3dcd121c7cbfed4/business_duration-0.66.tar.gz
+BuildArch: noarch
+
+
+%description
+Calculates business duration in days, hours, minutes and seconds by
+excluding weekends, public holidays and non-business hours
+
+%package -n python3-business-duration
+Summary: Calculates business duration in days, hours, minutes and seconds by excluding weekends, public holidays and non-business hours
+Provides: python-business-duration
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-business-duration
+Calculates business duration in days, hours, minutes and seconds by
+excluding weekends, public holidays and non-business hours
+
+%package help
+Summary: Development documents and examples for business-duration
+Provides: python3-business-duration-doc
+%description help
+Calculates business duration in days, hours, minutes and seconds by
+excluding weekends, public holidays and non-business hours
+
+%prep
+%autosetup -n business-duration-0.66
+
+%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-business-duration -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.66-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e0416dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e86b312514d2b3f19785c1de9c60ba35 business_duration-0.66.tar.gz