forked from pool/python-cryptography
		
	- update to 0.7.1
* backwards-incompatible change: GCM module doesn't truncate tags
      by default anymore
    * removed deprecated arguments to MFG1 constructor
    * ECC support
    * added PEM and openssh key loading convenience methods
    * support for many new ciphers and new features of existing ones
    see CHANGELOG.rst for details
- spec cleanup
- reworked %check section
- added changelog to docs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=7
			
			
This commit is contained in:
		
				
					committed by
					
						 Git OBS Bridge
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							e70eb3fdcb
						
					
				
				
					commit
					50d37a3ec6
				
			| @@ -1,3 +0,0 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:5ef81de44c87a87779710cbb476ffbec86a4a6c0bd2a5bebeccc3bfb3c3478e5 | ||||
| size 260891 | ||||
| @@ -1,11 +0,0 @@ | ||||
| -----BEGIN PGP SIGNATURE----- | ||||
| Version: GnuPG v1 | ||||
|  | ||||
| iQEcBAABAgAGBQJTZQMCAAoJECNa5fEp+e2Y1dQIAJug02N0TO4pPSiKMpCBJiWo | ||||
| ucismrKQ4l11VLLOMEvbYnAnEQei8+nvN0NZhj8Xkfm0IkkyyISAy48CB008Mig6 | ||||
| YMSbiPQl/dhBjldP88ta6ChDusJEB+ceXN9bPAIsX9xj2RcRjN03e4OODIlWyxqe | ||||
| LHHX612boHZ8T5tlnX9ch6AmKV2nE4towVYjK5DE5J6nej+nOxFTxo/CuadKDwo9 | ||||
| CWJUDNUOt1K6ya4v9JzctqhrBO6h8W1RpVKK5i2V6wp6xm8iwVr5Mw4C2w3zkPxT | ||||
| n9PitTTD8u0ZORkXHKdwdiers0yxu6LG/98Z+hEUTaXkk9tfPngnJVnhpk3rHwY= | ||||
| =qrAT | ||||
| -----END PGP SIGNATURE----- | ||||
							
								
								
									
										3
									
								
								cryptography-0.7.1.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cryptography-0.7.1.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:9ee59090b242ad0d6abcedebb9ab54358d5efd1a45706195f6e5928f7725bb76 | ||||
| size 247309 | ||||
							
								
								
									
										11
									
								
								cryptography-0.7.1.tar.gz.asc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								cryptography-0.7.1.tar.gz.asc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| -----BEGIN PGP SIGNATURE----- | ||||
| Version: GnuPG v1 | ||||
|  | ||||
| iQEcBAABAgAGBQJUoLL5AAoJECNa5fEp+e2Y6MIIALUF9UlqPGFDKO5h8MezeDTL | ||||
| Be43edLzE16s3bvCViPO/B75PIWkhJVRjRHyeSPzwvMCHHzUsInQD6w9/nWEdoqq | ||||
| p4wipQfFUjiQUyrMbKVeVNIF68q2gDbEwcy5QSX8zzNzRJoaTiOITA08P7sNPsf9 | ||||
| D2oeVxvNbRzbkfs2FkmDRR1DB4FvelkObcvZLdk/n22I53tO7RLHU5PIdrb9bk31 | ||||
| /A9FXGXXZOWg5AciHhMMQeQKrdaAAUK82o2Dp2OJivO+ZasqwPyYeAqTuA51T1aJ | ||||
| uSPZxDyN+K8XUAHWg59c/KViVLw/y39Mb+x4XWeg8WAO2iiGQn3maEA5q0CN0qE= | ||||
| =vey3 | ||||
| -----END PGP SIGNATURE----- | ||||
| @@ -1,3 +0,0 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:736bf5f14dbde7a5600c5dfe4a8563435be7e91dc060cee4c5f67287b692769e | ||||
| size 19092510 | ||||
| @@ -1,11 +0,0 @@ | ||||
| -----BEGIN PGP SIGNATURE----- | ||||
| Version: GnuPG v1 | ||||
|  | ||||
| iQEcBAABAgAGBQJTZQIVAAoJECNa5fEp+e2YXPkH/3xzC1QVY9vLPuOLBkkgU1od | ||||
| ZNe6jpB9pqxmycxWF2h/RPt7pRS1ejjd+jorCKdLNsV8lMJ5lZtSxL+E71ut6XX1 | ||||
| Qo8n2XjIRrPftHO5HFBGHuTwyRhivNSXgX94fFEGOFGyTI8dKRcJFyyZgrsU29lK | ||||
| w5oLyaLNDLsTM7RiglVUl86cwlmzvR/eBBsMjU7kPdwBx5/skPAE95BP/3yzC3IV | ||||
| Vl0KS5roRIWxN45ur2th0LxjFsR8FmMwB0l8VgcGsU+lI3H/u56YlFBQ+/bvn4af | ||||
| OkAtcabwBmJwhCnIfSBmT/CdkguK9g7ivr93+Dj00t/Y+yRurp1WjiKpWiCUIkc= | ||||
| =HxnD | ||||
| -----END PGP SIGNATURE----- | ||||
							
								
								
									
										3
									
								
								cryptography_vectors-0.7.1.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cryptography_vectors-0.7.1.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:2b7592b7d8f2ff3a7e288a6fecda5129a4ec4067d6d7ce3ce061a5d2024ea676 | ||||
| size 21377829 | ||||
							
								
								
									
										11
									
								
								cryptography_vectors-0.7.1.tar.gz.asc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								cryptography_vectors-0.7.1.tar.gz.asc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| -----BEGIN PGP SIGNATURE----- | ||||
| Version: GnuPG v1 | ||||
|  | ||||
| iQEcBAABAgAGBQJUoLNPAAoJECNa5fEp+e2YgjkIAI1roT2Y8AGiI8Bey12TbUCw | ||||
| zvLoUeyg1ldW0bXi9dOBTRkw7IjJi0agKYt269Q+q1FVnM0j4vBwHmPvBCOk+Mjv | ||||
| 0rbjNFSdEOopF4NaQZDv1PM8ScdrS29SE60yCvt9NTQo+HR1uohmrSynUZ25QFS0 | ||||
| FUBFA6LyU4KP3XNQayR9l3MpyDQEnxuh9jQVIkymXZcGF+PFOrjHABD4Q5x3PyrQ | ||||
| J5tak+W7MORrm+1i9Je94GWDzUqcV/AkKSCtBGCEpoMxtlfYkOj3lPyfabxYnmcv | ||||
| d5xmFDmiXDAipSifc8WDT2xh1a1Sr0FHKMzAzsvJUYRBD3ZHkGZE+hO2MUGJOHc= | ||||
| =99N8 | ||||
| -----END PGP SIGNATURE----- | ||||
| @@ -1,3 +1,18 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Mon Dec 29 18:08:34 UTC 2014 - jmatejek@suse.com | ||||
|  | ||||
| - update to 0.7.1 | ||||
|     * backwards-incompatible change: GCM module doesn't truncate tags | ||||
|       by default anymore | ||||
|     * removed deprecated arguments to MFG1 constructor | ||||
|     * ECC support | ||||
|     * added PEM and openssh key loading convenience methods | ||||
|     * support for many new ciphers and new features of existing ones | ||||
|     see CHANGELOG.rst for details | ||||
| - spec cleanup | ||||
| - reworked %check section | ||||
| - added changelog to docs | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Mon May 19 16:14:52 UTC 2014 - jmatejek@suse.com | ||||
|  | ||||
|   | ||||
| @@ -17,39 +17,34 @@ | ||||
|  | ||||
|  | ||||
| Name:           python-cryptography | ||||
| Version:        0.4 | ||||
| Version:        0.7.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 | ||||
| Url:            https://cryptography.io/en/latest/ | ||||
| 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 | ||||
| Source3:        https://pypi.python.org/packages/source/c/cryptography-vectors/cryptography_vectors-%{version}.tar.gz | ||||
| Source4:        https://pypi.python.org/packages/source/c/cryptography-vectors/cryptography_vectors-%{version}.tar.gz.asc | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
| %if 0%{suse_version} && 0%{?suse_version} >= 1220 | ||||
| BuildRequires:  gpg-offline | ||||
| %endif | ||||
| BuildRequires:  libopenssl-devel | ||||
| BuildRequires:  python-cffi >= 0.8 | ||||
| BuildRequires:  python-devel | ||||
| BuildRequires:  python-enum34 | ||||
| BuildRequires:  python-setuptools | ||||
| BuildRequires:  python-six >= 1.4.1 | ||||
| BuildRequires:  pkgconfig(libffi) | ||||
| # Test requirements | ||||
| BuildRequires:  python-iso8601 | ||||
| BuildRequires:  python-pretend | ||||
| BuildRequires:  python-pyasn1 | ||||
| BuildRequires:  python-pytest | ||||
| BuildRequires:  python-virtualenv | ||||
| Requires:       python-cffi >= 0.8 | ||||
| Requires:       python-enum34 | ||||
| Requires:       python-six >= 1.4.1 | ||||
| %if 0%{?suse_version} && 0%{?suse_version} <= 1110 | ||||
| %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} | ||||
| BuildRequires:  libffi43-devel | ||||
| %else | ||||
| BuildRequires:  pkgconfig(libffi) | ||||
| %endif | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
|  | ||||
| %description | ||||
| cryptography is a package designed to expose cryptographic | ||||
| @@ -63,33 +58,35 @@ 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} | ||||
| %if 0%{?suse_version} && 0%{?suse_version} <= 1110 | ||||
| #TODO(saschpe): Failing on SP3, debug later: | ||||
| rm tests/hazmat/primitives/test_rsa.py | ||||
| %endif | ||||
|  | ||||
| # prepare vectors module | ||||
| tar xvzf %{S:3} | ||||
| mv cryptography_vectors-%{version}/cryptography_vectors . | ||||
| tar xvzf %{SOURCE3} | ||||
|  | ||||
| %build | ||||
| CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build | ||||
|  | ||||
| %install | ||||
| python setup.py install --prefix=%{_prefix} --root=%{buildroot} | ||||
| # do not install cryptography_vectors | ||||
| rm -r %{buildroot}%{python_sitearch}/cryptography_vectors | ||||
|  | ||||
| %check | ||||
| py.test | ||||
| # this is going to be fun | ||||
| # create virtualenv | ||||
| virtualenv --system-site-packages TESTROOT | ||||
| . TESTROOT/bin/activate | ||||
| # install package in virtualenv | ||||
| python setup.py install | ||||
| # install cryptography vectors | ||||
| (cd cryptography_vectors-%{version} && python setup.py install) | ||||
| # run tests with virtualenv'd python | ||||
| # (specify "tests" directory, otherwise py.test discovers tests in virtualenv'd setuptools) | ||||
| python /usr/bin/py.test tests | ||||
| # finish | ||||
| deactivate | ||||
|  | ||||
| %files | ||||
| %defattr(-,root,root,-) | ||||
| %doc AUTHORS.rst CONTRIBUTING.rst LICENSE README.rst | ||||
| %doc AUTHORS.rst CONTRIBUTING.rst CHANGELOG.rst LICENSE README.rst | ||||
| %{python_sitearch}/cryptography/ | ||||
| %{python_sitearch}/cryptography-%{version}-py%{py_ver}.egg-info/ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user