summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-certbot.spec136
-rw-r--r--sources1
3 files changed, 138 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0a6e13f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/certbot-2.3.0.tar.gz
diff --git a/python-certbot.spec b/python-certbot.spec
new file mode 100644
index 0000000..21030e3
--- /dev/null
+++ b/python-certbot.spec
@@ -0,0 +1,136 @@
+%global _empty_manifest_terminate_build 0
+Name: python-certbot
+Version: 2.3.0
+Release: 1
+Summary: ACME client
+License: Apache License 2.0
+URL: https://github.com/letsencrypt/letsencrypt
+Source0: https://files.pythonhosted.org/packages/d3/79/2ed6c08fc864e735221c14a62c5fc269988cb61955fcb24df8bffd0fffd1/certbot-2.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-acme
+Requires: python3-ConfigArgParse
+Requires: python3-configobj
+Requires: python3-cryptography
+Requires: python3-distro
+Requires: python3-josepy
+Requires: python3-parsedatetime
+Requires: python3-pyrfc3339
+Requires: python3-pytz
+Requires: python3-setuptools
+Requires: python3-pywin32
+Requires: python3-azure-devops
+Requires: python3-ipdb
+Requires: python3-poetry
+Requires: python3-poetry-plugin-export
+Requires: python3-twine
+Requires: python3-Sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-coverage
+Requires: python3-mypy
+Requires: python3-pip
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-xdist
+Requires: python3-setuptools
+Requires: python3-tox
+Requires: python3-types-pyOpenSSL
+Requires: python3-types-pyRFC3339
+Requires: python3-types-pytz
+Requires: python3-types-requests
+Requires: python3-types-setuptools
+Requires: python3-types-six
+Requires: python3-typing-extensions
+Requires: python3-wheel
+Requires: python3-pylint
+Requires: python3-azure-devops
+Requires: python3-ipdb
+Requires: python3-poetry
+Requires: python3-poetry-plugin-export
+Requires: python3-twine
+Requires: python3-Sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-coverage
+Requires: python3-mypy
+Requires: python3-pip
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-pytest-xdist
+Requires: python3-setuptools
+Requires: python3-tox
+Requires: python3-types-pyOpenSSL
+Requires: python3-types-pyRFC3339
+Requires: python3-types-pytz
+Requires: python3-types-requests
+Requires: python3-types-setuptools
+Requires: python3-types-six
+Requires: python3-typing-extensions
+Requires: python3-wheel
+Requires: python3-pylint
+
+%description
+If you'd like to contribute to this project please read `Developer Guide
+<https://certbot.eff.org/docs/contributing.html>`_.
+This project is governed by `EFF's Public Projects Code of Conduct <https://www.eff.org/pages/eppcode>`_.
+
+%package -n python3-certbot
+Summary: ACME client
+Provides: python-certbot
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-certbot
+If you'd like to contribute to this project please read `Developer Guide
+<https://certbot.eff.org/docs/contributing.html>`_.
+This project is governed by `EFF's Public Projects Code of Conduct <https://www.eff.org/pages/eppcode>`_.
+
+%package help
+Summary: Development documents and examples for certbot
+Provides: python3-certbot-doc
+%description help
+If you'd like to contribute to this project please read `Developer Guide
+<https://certbot.eff.org/docs/contributing.html>`_.
+This project is governed by `EFF's Public Projects Code of Conduct <https://www.eff.org/pages/eppcode>`_.
+
+%prep
+%autosetup -n certbot-2.3.0
+
+%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-certbot -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..44d6eed
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+58277b069817847bf09f04a03d687acb certbot-2.3.0.tar.gz