summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 14:07:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 14:07:03 +0000
commita4834db835bfe4b010522f8e4f6cda252217195d (patch)
treea7de28b176fe953114e54faba7c0b081f09bb90d
parent79196fe5c3b7355fc2470727d50d3ae8dbb2c829 (diff)
automatic import of python-cookies
-rw-r--r--.gitignore1
-rw-r--r--python-cookies.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a6b63e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cookies-2.2.1.tar.gz
diff --git a/python-cookies.spec b/python-cookies.spec
new file mode 100644
index 0000000..079a903
--- /dev/null
+++ b/python-cookies.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cookies
+Version: 2.2.1
+Release: 1
+Summary: Friendlier RFC 6265-compliant cookie parser/renderer
+License: UNKNOWN
+URL: https://github.com/sashahart/cookies
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f3/95/b66a0ca09c5ec9509d8729e0510e4b078d2451c5e33f47bd6fc33c01517c/cookies-2.2.1.tar.gz
+BuildArch: noarch
+
+
+%description
+cookies.py is a Python module for working with HTTP cookies: parsing and
+rendering 'Cookie:' request headers and 'Set-Cookie:' response headers,
+and exposing a convenient API for creating and modifying cookies. It can be
+used as a replacement of Python's Cookie.py (aka http.cookies).
+
+%package -n python3-cookies
+Summary: Friendlier RFC 6265-compliant cookie parser/renderer
+Provides: python-cookies
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cookies
+cookies.py is a Python module for working with HTTP cookies: parsing and
+rendering 'Cookie:' request headers and 'Set-Cookie:' response headers,
+and exposing a convenient API for creating and modifying cookies. It can be
+used as a replacement of Python's Cookie.py (aka http.cookies).
+
+%package help
+Summary: Development documents and examples for cookies
+Provides: python3-cookies-doc
+%description help
+cookies.py is a Python module for working with HTTP cookies: parsing and
+rendering 'Cookie:' request headers and 'Set-Cookie:' response headers,
+and exposing a convenient API for creating and modifying cookies. It can be
+used as a replacement of Python's Cookie.py (aka http.cookies).
+
+%prep
+%autosetup -n cookies-2.2.1
+
+%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-cookies -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2900a58
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6f4c53aba3ed03e4e7b50812c2c2579a cookies-2.2.1.tar.gz