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
This commit is contained in:
Todd R 2017-07-27 15:13:53 +00:00 committed by Git OBS Bridge
parent 3518768672
commit 4a971baeec
4 changed files with 58 additions and 46 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4d0cd265949a0fd271c12eae428c58780548c2435d69ce8c08c1052abad88232
size 3534736

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f43f9f15b0b719de94cab2754dcf78ef63b40ee2a12cea296e7af788b28501bb
size 242151

View File

@ -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 Thu Mar 30 17:48:35 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-keyczar # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,32 +15,34 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # 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 Name: python-keyczar
Version: 0.715 Version: 0.716
Release: 1 Release: 0
License: Apache-2.0
Summary: Toolkit for safe and simple cryptography Summary: Toolkit for safe and simple cryptography
Url: http://www.keyczar.org License: Apache-2.0
Group: Development/Languages/Python 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 Source1: keyczart.1
BuildRequires: python-pyasn1 >= 0.0.8a BuildRequires: %{python_module devel}
BuildRequires: python-devel BuildRequires: %{python_module setuptools}
BuildRequires: python-pycrypto BuildRequires: python-rpm-macros
BuildRequires: python-setuptools %if %{with test}
Requires: python-pyasn1 >= 0.0.8a BuildRequires: %{python_module pyasn1}
Requires: python-pycrypto BuildRequires: %{python_module pycrypto >= 2.0}
BuildRoot: %{_tmppath}/%{name}-%{version}-build %endif
%if 0%{?suse_version} Requires: python-pyasn1
%py_requires Requires: python-pycrypto >= 2.0
%if 0%{?suse_version} > 1110 Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%endif
%endif %python_subpackages
%{!?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)")}
%description %description
Keyczar is an open source cryptographic toolkit designed to make it easier 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 - Keyczar was originally developed by members of the Google Security Team
%prep %prep
%setup -q %setup -q -n %{pkgname}-Python_release_%{version}/python
find . -name \*.py -exec sed -i 's|#!/usr/bin/python2.4|#!%{_bindir}/python|g' {} \;
%build %build
python setup.py build %{python_build}
%check
export PYTHONPATH=$(pwd)/build/lib
cd tests/keyczar_tests
python alltests.py
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{python_install}
# 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
install -Dm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/keyczart.1 install -Dm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/keyczart.1
%python_clone -a %{buildroot}%{_bindir}/keyczart
%python_clone -a %{buildroot}%{_mandir}/man1/keyczart.1
%clean %post
rm -rf %{buildroot} %{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) %defattr(-,root,root)
%doc LICENSE README PKG-INFO doc/ %doc README PKG-INFO doc/
%{_mandir}/man1/keyczart.1* %license LICENSE
%python_alternative %{_mandir}/man1/keyczart.1%{ext_man}
%{python_sitelib}/keyczar %{python_sitelib}/keyczar
%{python_sitelib}/python_keyczar-*.egg-info %{python_sitelib}/python_keyczar-*.egg-info
%{_bindir}/keyczart %python_alternative %{_bindir}/keyczart
%changelog %changelog