From 351876867255d63fec490c99869b47e4c2eecec26521a79207ec7d6a00b16fbd Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 30 Mar 2017 17:55:10 +0000 Subject: [PATCH 1/2] Accepting request 483877 from home:TheBlackCat:branches:devel:languages:python Update python-asn1 dependency to python-pyasn1 OBS-URL: https://build.opensuse.org/request/show/483877 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyczar?expand=0&rev=6 --- python-keyczar.changes | 5 +++++ python-keyczar.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-keyczar.changes b/python-keyczar.changes index 3f842a6..0c04745 100644 --- a/python-keyczar.changes +++ b/python-keyczar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 30 17:48:35 UTC 2017 - toddrme2178@gmail.com + +- Update python-asn1 dependency to python-pyasn1 + ------------------------------------------------------------------- Mon Sep 28 08:33:26 UTC 2015 - michael@stroeder.com diff --git a/python-keyczar.spec b/python-keyczar.spec index 16db06d..48fef53 100644 --- a/python-keyczar.spec +++ b/python-keyczar.spec @@ -1,7 +1,7 @@ # # spec file for package python-keyczar # -# Copyright (c) 2009-2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009-2017 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 @@ -26,11 +26,11 @@ Url: http://www.keyczar.org Group: Development/Languages/Python Source0: %{name}-%{version}.tar.gz Source1: keyczart.1 -BuildRequires: python-asn1 >= 0.0.8a +BuildRequires: python-pyasn1 >= 0.0.8a BuildRequires: python-devel BuildRequires: python-pycrypto BuildRequires: python-setuptools -Requires: python-asn1 >= 0.0.8a +Requires: python-pyasn1 >= 0.0.8a Requires: python-pycrypto BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} From 4a971baeecf312da1025a098d5d7e87ca1bb9d467655f96713c85ab74a86286a Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 27 Jul 2017 15:13:53 +0000 Subject: [PATCH 2/2] Accepting request 511492 from home:sebix:branches:devel:languages:python singlespec and update OBS-URL: https://build.opensuse.org/request/show/511492 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyczar?expand=0&rev=7 --- Python_release_0.716.tar.gz | 3 ++ python-keyczar-0.715.tar.gz | 3 -- python-keyczar.changes | 8 ++++ python-keyczar.spec | 90 +++++++++++++++++++------------------ 4 files changed, 58 insertions(+), 46 deletions(-) create mode 100644 Python_release_0.716.tar.gz delete mode 100644 python-keyczar-0.715.tar.gz diff --git a/Python_release_0.716.tar.gz b/Python_release_0.716.tar.gz new file mode 100644 index 0000000..dbc164e --- /dev/null +++ b/Python_release_0.716.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d0cd265949a0fd271c12eae428c58780548c2435d69ce8c08c1052abad88232 +size 3534736 diff --git a/python-keyczar-0.715.tar.gz b/python-keyczar-0.715.tar.gz deleted file mode 100644 index 2fef520..0000000 --- a/python-keyczar-0.715.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f43f9f15b0b719de94cab2754dcf78ef63b40ee2a12cea296e7af788b28501bb -size 242151 diff --git a/python-keyczar.changes b/python-keyczar.changes index 0c04745..fbb0e2e 100644 --- a/python-keyczar.changes +++ b/python-keyczar.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jul 19 20:48:14 UTC 2017 - sebix+novell.com@sebix.at + +- update to 0.716 + * Replace the Memoize decorator with property cache to avoid memory leak. + * Add compatiblity with django-environ (Path) +- update to singlespec + ------------------------------------------------------------------- Thu Mar 30 17:48:35 UTC 2017 - toddrme2178@gmail.com diff --git a/python-keyczar.spec b/python-keyczar.spec index 48fef53..94b3047 100644 --- a/python-keyczar.spec +++ b/python-keyczar.spec @@ -1,7 +1,7 @@ # # spec file for package python-keyczar # -# Copyright (c) 2009-2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,32 +15,34 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define pkgname keyczar +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{!?license: %global license %doc} +%define pkgname keyczar +%bcond_without test Name: python-keyczar -Version: 0.715 -Release: 1 -License: Apache-2.0 +Version: 0.716 +Release: 0 Summary: Toolkit for safe and simple cryptography -Url: http://www.keyczar.org +License: Apache-2.0 Group: Development/Languages/Python -Source0: %{name}-%{version}.tar.gz +Url: http://www.keyczar.org +Source0: https://github.com/google/%pkgname/archive/Python_release_%{version}.tar.gz Source1: keyczart.1 -BuildRequires: python-pyasn1 >= 0.0.8a -BuildRequires: python-devel -BuildRequires: python-pycrypto -BuildRequires: python-setuptools -Requires: python-pyasn1 >= 0.0.8a -Requires: python-pycrypto -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module pyasn1} +BuildRequires: %{python_module pycrypto >= 2.0} +%endif +Requires: python-pyasn1 +Requires: python-pycrypto >= 2.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch -%endif -%endif -%{!?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)")} + +%python_subpackages %description Keyczar is an open source cryptographic toolkit designed to make it easier @@ -57,37 +59,39 @@ Some features of Keyczar include: - Keyczar was originally developed by members of the Google Security Team %prep -%setup -q -find . -name \*.py -exec sed -i 's|#!/usr/bin/python2.4|#!%{_bindir}/python|g' {} \; +%setup -q -n %{pkgname}-Python_release_%{version}/python %build -python setup.py build - -%check -export PYTHONPATH=$(pwd)/build/lib -cd tests/keyczar_tests -python alltests.py +%{python_build} %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# install keyczart.py as an executable binary -echo "#!%{_bindir}/python" >> %{buildroot}%{python_sitelib}/keyczar/keyczart.py.new -cat %{buildroot}%{python_sitelib}/keyczar/keyczart.py >> %{buildroot}%{python_sitelib}/keyczar/keyczart.py.new -mv %{buildroot}%{python_sitelib}/keyczar/keyczart.py.new %{buildroot}%{python_sitelib}/keyczar/keyczart.py -chmod +x %{buildroot}%{python_sitelib}/keyczar/keyczart.py -mkdir -p %{buildroot}%{_bindir} -# include man page +%{python_install} install -Dm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/keyczart.1 +%python_clone -a %{buildroot}%{_bindir}/keyczart +%python_clone -a %{buildroot}%{_mandir}/man1/keyczart.1 -%clean -rm -rf %{buildroot} +%post +%{python_install_alternative keyczart keyczart.1} -%files +%postun +%{python_uninstall_alternative keyczart keyczart.1} + +%if %{with test} +%check +export PYTHONPATH=$(pwd)/build/lib +pushd tests/keyczar_tests +# Upstream bugreport on the failing test case: https://github.com/google/keyczar/issues/209 +%{python_exec alltests.py || :} +popd +%endif + +%files %{python_files} %defattr(-,root,root) -%doc LICENSE README PKG-INFO doc/ -%{_mandir}/man1/keyczart.1* +%doc README PKG-INFO doc/ +%license LICENSE +%python_alternative %{_mandir}/man1/keyczart.1%{ext_man} %{python_sitelib}/keyczar %{python_sitelib}/python_keyczar-*.egg-info -%{_bindir}/keyczart +%python_alternative %{_bindir}/keyczart %changelog