commit a003527a667b20d3b1fbbcc384f9de1e4ed4217851297086cf328ab68aa276f8
Author: Denisart Benjamin
Date: Mon Feb 24 14:01:28 2014 +0000
Accepting request 223686 from home:mvyskocil:branches:devel:languages:python
add package to d:l:p, needed for new pyOpenSSL
OBS-URL: https://build.opensuse.org/request/show/223686
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=1
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..9b03811
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,23 @@
+## Default LFS
+*.7z filter=lfs diff=lfs merge=lfs -text
+*.bsp filter=lfs diff=lfs merge=lfs -text
+*.bz2 filter=lfs diff=lfs merge=lfs -text
+*.gem filter=lfs diff=lfs merge=lfs -text
+*.gz filter=lfs diff=lfs merge=lfs -text
+*.jar filter=lfs diff=lfs merge=lfs -text
+*.lz filter=lfs diff=lfs merge=lfs -text
+*.lzma filter=lfs diff=lfs merge=lfs -text
+*.obscpio filter=lfs diff=lfs merge=lfs -text
+*.oxt filter=lfs diff=lfs merge=lfs -text
+*.pdf filter=lfs diff=lfs merge=lfs -text
+*.png filter=lfs diff=lfs merge=lfs -text
+*.rpm filter=lfs diff=lfs merge=lfs -text
+*.tbz filter=lfs diff=lfs merge=lfs -text
+*.tbz2 filter=lfs diff=lfs merge=lfs -text
+*.tgz filter=lfs diff=lfs merge=lfs -text
+*.ttf filter=lfs diff=lfs merge=lfs -text
+*.txz filter=lfs diff=lfs merge=lfs -text
+*.whl filter=lfs diff=lfs merge=lfs -text
+*.xz filter=lfs diff=lfs merge=lfs -text
+*.zip filter=lfs diff=lfs merge=lfs -text
+*.zst filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..57affb6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.osc
diff --git a/cryptography-0.2.1.tar.gz b/cryptography-0.2.1.tar.gz
new file mode 100644
index 0000000..bad7059
--- /dev/null
+++ b/cryptography-0.2.1.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5b4b93a9841364396ac75ee3f0f4550752821df5a89078c1e16a716339ba39a3
+size 13772304
diff --git a/cryptography-0.2.1.tar.gz.asc b/cryptography-0.2.1.tar.gz.asc
new file mode 100644
index 0000000..ed7f9e6
--- /dev/null
+++ b/cryptography-0.2.1.tar.gz.asc
@@ -0,0 +1,11 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.14 (Darwin)
+
+iQEcBAABAgAGBQJTCRq2AAoJECNa5fEp+e2YwFwH/1lZvBH65IoATa3RjG9gg7lM
+j5mLp8cP4WOdPJEMDil8FuhH4+IrD5g51tWdqHnwnC9GHubF/4VvwllzbQxzQTi8
+oG9RQ3BAKoTT+zDPWIqe49ZTkL5KH3kUDWYvkco6In7ArpBJmg9gZ9/ZwWyLYQqK
+g8bgZnrWTsRNxFmlhKiV8jJOsyzzbyHU436LLG2T4OVs6QazxBALogZVqe3hL7ql
+K1aGbU0+NW5R9s+Hy5MrL02hLjTvqb5kLbjKJPUvSMsPZ7rlm5Xh9HCa+BmrE5e3
+lPtOWy5TxmZYQrLNZrWGO4jpkNPk9cwyGEyq4g5/HuARS/UdBLjvr4ELg9BqRDU=
+=T8HZ
+-----END PGP SIGNATURE-----
diff --git a/python-cryptography.changes b/python-cryptography.changes
new file mode 100644
index 0000000..d0d3e78
--- /dev/null
+++ b/python-cryptography.changes
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Mon Feb 24 12:43:32 UTC 2014 - mvyskocil@suse.com
+
+- Initial packaging of python-cryptography for openSUSE
+
diff --git a/python-cryptography.keyring b/python-cryptography.keyring
new file mode 100644
index 0000000..ffc9177
--- /dev/null
+++ b/python-cryptography.keyring
@@ -0,0 +1,34 @@
+pub 2048R/29F9ED98 2013-09-01
+uid Paul Kehrer
+sub 2048R/9714E575 2013-09-01
+
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: G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+MPFo/M7Ae5FxKA4PYfJRQl62wsBRNE5k7IwOmstyUUnDZXIxpB+wNvpxQpAvWT8B
+IyAvtlrkrE53frfyd0KUOR0iSHNcWcUL0L6XvsaOYb4i20bP7YE5XoVzzANbXTa1
+wVtz2yNoI7/8BLb2NMIacykUxryYtu6E9cmnwkkAEQEAAYkBHwQYAQIACQUCUiKt
+OwIbDAAKCRAjWuXxKfntmM/yB/91f/17kL4iAS05WgM1xvgmyYJ3FOgP3hyqD5Ur
+YkkmoFoF+r6bfBlW8AeOawYTvXinKdv9sM6q0EmiO+iqAuRRfaXZWCDqZdEpy+lv
+Ev3jhVyuf8O+d8VEILsKia0cmzn6F1UMdp3E9TDgXr1/hMCuABvbfWzEkRQrGHc2
+cWLXXxko3mykZMLkl0MPGjmzEh87RE55hLk5HroXaMtdyz1knfybVnXgOUxMuqc+
++wj499FP1jHvTEEknRopxsMe59+CdsoFBR9xs0Ets7K011P4CMKZZAXVwxF551QL
+xnqe0Tn1t76rxPJKpyvUM+WtakEVPffuQqSkU8dIJgwwXrZo
+=3pQn
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/python-cryptography.spec b/python-cryptography.spec
new file mode 100644
index 0000000..65fab22
--- /dev/null
+++ b/python-cryptography.spec
@@ -0,0 +1,93 @@
+#
+# spec file for package python-cryptography
+#
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+Name: python-cryptography
+Version: 0.2.1
+Release: 0
+Url: https://cryptography.io/en/latest/
+Summary: Python library which exposes cryptographic recipes and primitives
+License: Apache-2.0
+Group: Development/Languages/Python
+Source0: https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
+Source1: https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
+Source2: %{name}.keyring
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%if 0%{suse_version} && 0%{?suse_version} >= 1220
+BuildRequires: gpg-offline
+%endif
+BuildRequires: pkgconfig(python2)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: pkgconfig(libffi)
+BuildRequires: python-cffi >= 0.8
+BuildRequires: python-six >= 1.4.1
+BuildRequires: python-setuptools
+#test requirements
+BuildRequires: python-pytest
+
+Requires: python-cffi >= 0.8
+Requires: python-six >= 1.4.1
+
+%if 0%{?suse_version} && 0%{?suse_version} <= 1110
+%{!?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(True)")}
+%{!?py_ver: %global py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)}
+%endif
+
+%description
+cryptography is a package designed to expose cryptographic
+recipes and primitives to Python developers. Our goal is
+for it to be your "cryptographic standard library". It
+supports Python 2.6-2.7, Python 3.2+, and PyPy.
+
+cryptography includes both high level recipes, and low
+level interfaces to common cryptographic algorithms such as
+symmetric ciphers, message digests and key derivation
+functions.
+
+%prep
+%if 0%{suse_version} && 0%{?suse_version} >= 1220
+%gpg_verify %{SOURCE1}
+%endif
+%setup -q -n cryptography-%{version}
+
+%build
+CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+#mvyskocil: FIXME somehow in setup.py
+if [ "%{python_sitelib}" != "%{python_sitearch}" ]; then
+ mkdir -p %{buildroot}/%{python_sitearch}/
+ mv %{buildroot}/%{python_sitelib}/cryptography* %{buildroot}/%{python_sitearch}/
+ rm -rf %{buildroot}/%{python_sitelib}/
+fi
+
+#mvyskocil: FIXME, modules iso8601 and pretend are needed to run tests
+#%check
+#py.test tests/
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS.rst CONTRIBUTING.rst LICENSE README.rst
+%{python_sitearch}/cryptography/
+%{python_sitearch}/cryptography-%{version}-py%{py_ver}.egg-info/
+
+%changelog