summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-onionshare-cli.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a897880 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/onionshare_cli-2.6.tar.gz
diff --git a/python-onionshare-cli.spec b/python-onionshare-cli.spec
new file mode 100644
index 0000000..57d151a
--- /dev/null
+++ b/python-onionshare-cli.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-onionshare-cli
+Version: 2.6
+Release: 1
+Summary: OnionShare lets you securely and anonymously send and receive files. It works by starting a web server, making it accessible as a Tor onion service, and generating an unguessable web address so others can download files from you, or upload files to you. It does _not_ require setting up a separate server or using a third party file-sharing service.
+License: GPLv3+
+URL: https://pypi.org/project/onionshare-cli/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d7/cf/4270d541a4f7916d67cd66b43c30e1f0fd2c52b0d533a170742af192fdc9/onionshare_cli-2.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-click
+Requires: python3-flask
+Requires: python3-flask-socketio
+Requires: python3-psutil
+Requires: python3-pysocks
+Requires: python3-requests[socks]
+Requires: python3-unidecode
+Requires: python3-urllib3
+Requires: python3-eventlet
+Requires: python3-setuptools
+Requires: python3-pynacl
+Requires: python3-colorama
+Requires: python3-gevent-websocket
+Requires: python3-stem
+Requires: python3-werkzeug
+
+%description
+
+
+%package -n python3-onionshare-cli
+Summary: OnionShare lets you securely and anonymously send and receive files. It works by starting a web server, making it accessible as a Tor onion service, and generating an unguessable web address so others can download files from you, or upload files to you. It does _not_ require setting up a separate server or using a third party file-sharing service.
+Provides: python-onionshare-cli
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-onionshare-cli
+
+
+%package help
+Summary: Development documents and examples for onionshare-cli
+Provides: python3-onionshare-cli-doc
+%description help
+
+
+%prep
+%autosetup -n onionshare-cli-2.6
+
+%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-onionshare-cli -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..182a6c6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fcb588cb4d9905addcfceb3793635600 onionshare_cli-2.6.tar.gz