[python-shadowsocks] initial import

李瑞彬 cheeselee at fedoraproject.org
Thu Jul 17 04:37:50 UTC 2014


commit de1abf0b017a7e2ae91c6660ab3f4fe96fa33bd8
Author: Robin Lee <cheeselee at fedoraproject.org>
Date:   Thu Jul 17 12:40:04 2014 +0800

    initial import

 .gitignore              |    1 +
 python-shadowsocks.spec |   69 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d27046d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/shadowsocks-2.0.11.tar.gz
diff --git a/python-shadowsocks.spec b/python-shadowsocks.spec
new file mode 100644
index 0000000..d081ac5
--- /dev/null
+++ b/python-shadowsocks.spec
@@ -0,0 +1,69 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+%global mod_name shadowsocks
+
+Name:           python-shadowsocks
+Version:        2.0.11
+Release:        1%{?dist}
+Summary:        A fast tunnel proxy that help you get through firewalls
+
+License:        MIT
+URL:            http://shadowsocks.org/
+Source0:        https://pypi.python.org/packages/source/s/%{mod_name}/%{mod_name}-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  m2crypto
+Requires:       m2crypto
+
+%description
+Shadowsocks is a socks5 tunnel proxy, designed to secure your Internet
+traffic.
+
+This package contains the client and server implementation for Shadowsocks in
+Python 2.
+
+
+%prep
+%setup -q -n %{mod_name}-%{version}
+# remove shebangs in the module files
+sed -i -e '/^#!\//, 1d' %{mod_name}/*.py
+# explicitly remove the included egg
+rm -fr %{mod_name}*.egg-info
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+%check
+%{__python2} setup.py test
+
+%files
+%doc README.rst LICENSE
+%{_bindir}/*
+%{python2_sitelib}/%{mod_name}*
+
+
+%changelog
+* Tue Jul 15 2014 Robin Lee <cheeselee at fedoraproject.org> - 2.0.11-1
+- Update to 2.0.11, LICENSE included
+- Explicitly remove the included egg
+
+* Sat Jul 12 2014 Robin Lee <cheeselee at fedoraproject.org> - 2.0.10-2
+- BuildRequires python2-setuptools
+
+* Sat Jul 12 2014 Robin Lee <cheeselee at fedoraproject.org> - 2.0.10-1
+- Update to 2.0.10
+- Requries and BuildRequires m2crypto
+
+* Sun Jul  6 2014 Robin Lee <cheeselee at fedoraproject.org> - 2.0.8-2
+- Explicitly use python2 macros
+
+* Sat Jun 28 2014 Robin Lee <cheeselee at fedoraproject.org> - 2.0.8-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..00cf8ac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+262383f948499c8d3165ae3790b8f917  shadowsocks-2.0.11.tar.gz


More information about the scm-commits mailing list