summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-txsni.spec98
-rw-r--r--sources1
3 files changed, 100 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..380dafc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/TxSNI-0.2.0.tar.gz
diff --git a/python-txsni.spec b/python-txsni.spec
new file mode 100644
index 0000000..b239da1
--- /dev/null
+++ b/python-txsni.spec
@@ -0,0 +1,98 @@
+%global _empty_manifest_terminate_build 0
+Name: python-TxSNI
+Version: 0.2.0
+Release: 1
+Summary: easy-to-use SNI endpoint for twisted
+License: MIT
+URL: https://github.com/glyph/txsni
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9f/4d/425dcd07428a656910db0aafdc8923a62359f69d7b16dccab9077c241420/TxSNI-0.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-Twisted[tls]
+Requires: python3-pyOpenSSL
+
+%description
+Simple support for running a TLS server with Twisted.
+Use it like this:
+ $ mkdir certificates
+ $ cat private-stuff/mydomain.key.pem >> certificates/mydomain.example.com.pem
+ $ cat public-stuff/mydomain.crt.pem >> certificates/mydomain.example.com.pem
+ $ cat public-stuff/my-certificate-authority-chain.crt.pem >> \
+ certificates/mydomain.example.com.pem
+ $ twist web --port txsni:certificates:tcp:443
+Enjoy!
+
+%package -n python3-TxSNI
+Summary: easy-to-use SNI endpoint for twisted
+Provides: python-TxSNI
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-TxSNI
+Simple support for running a TLS server with Twisted.
+Use it like this:
+ $ mkdir certificates
+ $ cat private-stuff/mydomain.key.pem >> certificates/mydomain.example.com.pem
+ $ cat public-stuff/mydomain.crt.pem >> certificates/mydomain.example.com.pem
+ $ cat public-stuff/my-certificate-authority-chain.crt.pem >> \
+ certificates/mydomain.example.com.pem
+ $ twist web --port txsni:certificates:tcp:443
+Enjoy!
+
+%package help
+Summary: Development documents and examples for TxSNI
+Provides: python3-TxSNI-doc
+%description help
+Simple support for running a TLS server with Twisted.
+Use it like this:
+ $ mkdir certificates
+ $ cat private-stuff/mydomain.key.pem >> certificates/mydomain.example.com.pem
+ $ cat public-stuff/mydomain.crt.pem >> certificates/mydomain.example.com.pem
+ $ cat public-stuff/my-certificate-authority-chain.crt.pem >> \
+ certificates/mydomain.example.com.pem
+ $ twist web --port txsni:certificates:tcp:443
+Enjoy!
+
+%prep
+%autosetup -n TxSNI-0.2.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-TxSNI -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9a4961e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6235446671160a5ecf6dc5d2c69caf65 TxSNI-0.2.0.tar.gz