summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2016-03-20 17:40:22 (GMT)
committerElan Ruusamäe2016-03-20 17:40:22 (GMT)
commit3fc59a8cb058d8e85f8deea7930183882b98679a (patch)
tree91c371ad88ffb8915967e641789fcfd91fb991a5
parent42975b745ed24853972683959ad65208cd06d04d (diff)
downloadpython-backports-ssl_match_hostname-3fc59a8cb058d8e85f8deea7930183882b98679a.zip
python-backports-ssl_match_hostname-3fc59a8cb058d8e85f8deea7930183882b98679a.tar.gz
up to 3.5.0.1
-rw-r--r--python-backports-ssl_match_hostname.spec14
1 files changed, 6 insertions, 8 deletions
diff --git a/python-backports-ssl_match_hostname.spec b/python-backports-ssl_match_hostname.spec
index 845036e..f85ef0c 100644
--- a/python-backports-ssl_match_hostname.spec
+++ b/python-backports-ssl_match_hostname.spec
@@ -1,13 +1,13 @@
%define module_name backports.ssl_match_hostname
Summary: The ssl.match_hostname() function from Python 3
Name: python-backports-ssl_match_hostname
-Version: 3.4.0.2
+Version: 3.5.0.1
Release: 1
License: Python
Group: Libraries/Python
+# Source0Download: https://pypi.python.org/pypi/backports.ssl_match_hostname
Source0: http://pypi.python.org/packages/source/b/%{module_name}/%{module_name}-%{version}.tar.gz
-# Source0-md5: 788214f20214c64631f0859dc79f23c6
-Patch0: namespace.patch
+# Source0-md5: c03fc5e2c7b3da46b81acf5cbacfe1e6
URL: https://bitbucket.org/brandon/backports.ssl_match_hostname
BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
@@ -33,10 +33,9 @@ Python. The actual code inside comes verbatim from Python 3.2.
%prep
%setup -qn %{module_name}-%{version}
-%patch0 -p1
-mv src/backports/ssl_match_hostname/README.txt .
-mv src/backports/ssl_match_hostname/LICENSE.txt .
+mv backports/ssl_match_hostname/*.txt .
+touch backports/ssl_match_hostname/README.txt
%build
%py_build
@@ -44,7 +43,6 @@ mv src/backports/ssl_match_hostname/LICENSE.txt .
%install
rm -rf $RPM_BUILD_ROOT
%py_install
-
%py_postclean
%clean
@@ -53,6 +51,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.txt LICENSE.txt
+%{py_sitescriptdir}/backports/__init__.py[co]
%{py_sitescriptdir}/backports/ssl_match_hostname
-%{py_sitescriptdir}/backports.ssl_match_hostname-%{version}-py*-nspkg.pth
%{py_sitescriptdir}/backports.ssl_match_hostname-%{version}-py*.egg-info