commit python-keyczar for openSUSE:Factory
Hello community, here is the log from the commit of package python-keyczar for openSUSE:Factory checked in at 2017-08-24 18:42:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-keyczar (Old) and /work/SRC/openSUSE:Factory/.python-keyczar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-keyczar" Thu Aug 24 18:42:28 2017 rev:5 rq:512803 version:0.716 Changes: -------- --- /work/SRC/openSUSE:Factory/python-keyczar/python-keyczar.changes 2015-09-30 05:53:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-keyczar.new/python-keyczar.changes 2017-08-24 18:42:47.530586585 +0200 @@ -1,0 +2,13 @@ +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 + +- Update python-asn1 dependency to python-pyasn1 + +------------------------------------------------------------------- Old: ---- python-keyczar-0.715.tar.gz New: ---- Python_release_0.716.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-keyczar.spec ++++++ --- /var/tmp/diff_new_pack.uZtLOY/_old 2017-08-24 18:42:49.342331351 +0200 +++ /var/tmp/diff_new_pack.uZtLOY/_new 2017-08-24 18:42:49.358329096 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-keyczar # -# Copyright (c) 2009-2013 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-asn1 >= 0.0.8a -BuildRequires: python-devel -BuildRequires: python-pycrypto -BuildRequires: python-setuptools -Requires: python-asn1 >= 0.0.8a -Requires: python-pycrypto -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch +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 -%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)")} +Requires: python-pyasn1 +Requires: python-pycrypto >= 2.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch + +%python_subpackages %description Keyczar is an open source cryptographic toolkit designed to make it easier @@ -57,37 +59,39 @@ - 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 + +%post +%{python_install_alternative keyczart keyczart.1} -%clean -rm -rf %{buildroot} +%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 +%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
participants (1)
-
root@hilbert.suse.de