Blob Blame History Raw
%if 0%{?rhel} && 0%{?rhel} <= 5
  %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
  %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif

%global canonicalname socksipychain
%global upstreamname SocksipyChain

Name:       python-%{canonicalname}
Version:    2.0.12
Release:    7%{?dist}
Summary:    A Python SOCKS/HTTP Proxy module

Group:      Development/Libraries
License:    BSD
Url:        http://github.com/pagekite/Py%{canonicalname}
Source0:    http://pagekite.net/pk/src/python-%{upstreamname}-%{version}.tar.gz

%if 0%{?rhel} && 0%{?rhel} <= 5
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%endif

BuildArch:  noarch

BuildRequires:  python2-devel


%description
This Python module allows you to create TCP connections through a chain
of SOCKS or HTTP proxies without any special effort. It also supports
TLS/SSL encryption if the OpenSSL modules are installed.


%prep
%setup -q -n python-%{upstreamname}-%{version}


%build


%install
install -Dpm 0755 sockschain/__init__.py $RPM_BUILD_ROOT%{python_sitelib}/sockschain/__init__.py


%if 0%{?rhel} && 0%{?rhel} <= 5
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%endif

%files
%defattr(-,root,root,-)
%doc LICENSE README.md BUGS
%{python_sitelib}/sockschain

%changelog
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.12-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.12-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.12-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.12-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Sat Apr 14 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0.12-3
- Package review fixes

* Wed Feb 20 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0.12-2
- Initial package review fixes

* Fri Feb 08 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 2.0.12-1
- Initial version.