summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 11:45:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 11:45:17 +0000
commit130506c04485e3df53dedaf38df1be7171c63316 (patch)
treebaef5844d323c7fc63b35a6942446fbc8831a751
parent57ca452dd83857f21714ee61ab87bc0d8486ec40 (diff)
automatic import of python-calendarweek
-rw-r--r--.gitignore1
-rw-r--r--python-calendarweek.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..083ee7e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/calendarweek-0.5.3.tar.gz
diff --git a/python-calendarweek.spec b/python-calendarweek.spec
new file mode 100644
index 0000000..d5d3d46
--- /dev/null
+++ b/python-calendarweek.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-calendarweek
+Version: 0.5.3
+Release: 1
+Summary: Utilities for working with calendar weeks in Python and Django
+License: Apache-2.0
+URL: https://edugit.org/AlekSIS/libs/python-calendarweek
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1c/9d/73fed99b1263c9592bdc9b4f4571ec57cef5f72028a6ec64469e8da99e03/calendarweek-0.5.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+
+%description
+python-calendarweek provides a CalendarWeek dataclass for representing one
+week in a year, and utility functions to work with it in pure Python or
+Django.
+
+%package -n python3-calendarweek
+Summary: Utilities for working with calendar weeks in Python and Django
+Provides: python-calendarweek
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-calendarweek
+python-calendarweek provides a CalendarWeek dataclass for representing one
+week in a year, and utility functions to work with it in pure Python or
+Django.
+
+%package help
+Summary: Development documents and examples for calendarweek
+Provides: python3-calendarweek-doc
+%description help
+python-calendarweek provides a CalendarWeek dataclass for representing one
+week in a year, and utility functions to work with it in pure Python or
+Django.
+
+%prep
+%autosetup -n calendarweek-0.5.3
+
+%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-calendarweek -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..96db636
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6539969a813b7a43ce685a6486c43da8 calendarweek-0.5.3.tar.gz