|
@@ -1,21 +1,28 @@
|
|
|
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
-
|
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: Python wrapper module around the OpenSSL library
|
|
|
Summary(ja): OpenSSL ライブラリの Python ラッパーモジュール
|
|
|
Name: pyOpenSSL
|
|
|
-Version: 0.13.1
|
|
|
+Version: 18.0.0
|
|
|
Release: %{pkg_release}
|
|
|
-Source0: http://pyopenssl.sf.net/%{name}-%{version}.tar.gz
|
|
|
-Patch2: pyOpenSSL-elinks.patch
|
|
|
-Patch3: pyOpenSSL-nopdfout.patch
|
|
|
+Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
|
|
|
License: LGPLv2+
|
|
|
Group: Development/Libraries
|
|
|
-URL: http://pyopenssl.sourceforge.net/
|
|
|
+URL: https://pyopenssl.readthedocs.org/
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+BuildArch: noarch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: openssl-devel, python-devel
|
|
|
+BuildRequires: openssl-devel
|
|
|
+BuildRequires: python-devel
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
+BuildRequires: python-setuptools
|
|
|
+BuildRequires: python3-setuptools
|
|
|
+BuildRequires: python-cryptography
|
|
|
+BuildRequires: python3-cryptography
|
|
|
#BuildRequires: latex2html
|
|
|
|
|
|
%description
|
|
@@ -27,32 +34,70 @@ High-level wrapper around a subset of the OpenSSL library, includes
|
|
|
... and much more ;)
|
|
|
|
|
|
|
|
|
+%package -n python-pyOpenSSL
|
|
|
+Summary: Python2 wrapper module around the OpenSSL library
|
|
|
+Obsoletes: pyOpenSSL < %{version}-%{release}
|
|
|
+Provides: pyOpenSSL = %{version}-%{release}
|
|
|
+Requires: python-cryptography
|
|
|
+%{?python_provide:%python_provide python-pyOpenSSL}
|
|
|
+
|
|
|
+%description -n python-pyOpenSSL
|
|
|
+High-level wrapper around a subset of the OpenSSL library, includes among others
|
|
|
+
|
|
|
+ * SSL.Connection objects, wrapping the methods of Python's portable
|
|
|
+ sockets
|
|
|
+ * Callbacks written in Python
|
|
|
+ * Extensive error-handling mechanism, mirroring OpenSSL's error codes
|
|
|
+
|
|
|
+
|
|
|
+%package -n python3-pyOpenSSL
|
|
|
+Summary: Python 3 wrapper module around the OpenSSL library
|
|
|
+Requires: python3-cryptography
|
|
|
+%{?python_provide:%python_provide python3-pyOpenSSL}
|
|
|
+
|
|
|
+%description -n python3-pyOpenSSL
|
|
|
+High-level wrapper around a subset of the OpenSSL library, includes among others
|
|
|
+
|
|
|
+ * SSL.Connection objects, wrapping the methods of Python's portable
|
|
|
+ sockets
|
|
|
+ * Callbacks written in Python
|
|
|
+ * Extensive error-handling mechanism, mirroring OpenSSL's error codes
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-%patch2 -p1 -b .elinks
|
|
|
-%patch3 -p1 -b .nopdfout
|
|
|
|
|
|
%build
|
|
|
-CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
+%py_build
|
|
|
+%py3_build
|
|
|
|
|
|
%install
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
-#pushd doc
|
|
|
-#make text
|
|
|
-#make dvi
|
|
|
+%py_install
|
|
|
+%py3_install
|
|
|
|
|
|
%clean
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
-%files
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%doc README ChangeLog LICENSE
|
|
|
-#%doc pyOpenSSL.ps pyOpenSSL.txt html
|
|
|
-%{python_sitearch}/OpenSSL/
|
|
|
-%{python_sitearch}/%{name}*.egg-info
|
|
|
+%files -n python-pyOpenSSL
|
|
|
+%license LICENSE
|
|
|
+%doc README* CHANGELOG*
|
|
|
+%{python_sitelib}/OpenSSL/
|
|
|
+%{python_sitelib}/pyOpenSSL-*.egg-info
|
|
|
+
|
|
|
+%files -n python3-pyOpenSSL
|
|
|
+%license LICENSE
|
|
|
+%doc README* CHANGELOG*
|
|
|
+%{python3_sitelib}/OpenSSL/
|
|
|
+%{python3_sitelib}/pyOpenSSL-*.egg-info
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Nov 19 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 18.0.0-1
|
|
|
+- new upstream release.
|
|
|
+- dropped Patch2-3.
|
|
|
+- changed name to python{,3}-pyOpenSSL.
|
|
|
+- added python3 support.
|
|
|
+
|
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13.1-1
|
|
|
- new upstream release
|
|
|
- remove Patch0 (pyOpenSSL-0.7-openssl.patch)
|