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:
parent
3518768672
commit
4a971baeec
3
Python_release_0.716.tar.gz
Normal file
3
Python_release_0.716.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d0cd265949a0fd271c12eae428c58780548c2435d69ce8c08c1052abad88232
|
||||
size 3534736
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f43f9f15b0b719de94cab2754dcf78ef63b40ee2a12cea296e7af788b28501bb
|
||||
size 242151
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user