Hello community, here is the log from the commit of package python-libnacl for openSUSE:Factory checked in at 2015-11-26 17:01:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-libnacl (Old) and /work/SRC/openSUSE:Factory/.python-libnacl.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libnacl" Changes: -------- --- /work/SRC/openSUSE:Factory/python-libnacl/python-libnacl.changes 2015-06-12 20:31:39.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-libnacl.new/python-libnacl.changes 2015-11-26 17:02:00.000000000 +0100 @@ -1,0 +2,21 @@ +Thu Nov 19 17:04:26 UTC 2015 - [email protected] + +- no longer build as noarch package, while the code is still + noarch. we actually depend on the native library at runtime. To + be able to make this work properly we need to require that native + library, that native requires makes us arch dependent. + +------------------------------------------------------------------- +Thu Nov 19 16:28:31 UTC 2015 - [email protected] + +- make sure we require the libsodium version we were built with + +------------------------------------------------------------------- +Thu Nov 19 16:08:47 UTC 2015 - [email protected] + +- fix libsodium loading on Tumbleweed: soversion was bumped to 17 + reported as https://github.com/saltstack/libnacl/pull/60 + + adds libnacl-1.4.3_bump_libsodium_soversion.patch + +------------------------------------------------------------------- New: ---- libnacl-1.4.3_bump_libsodium_soversion.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-libnacl.spec ++++++ --- /var/tmp/diff_new_pack.4ebAdW/_old 2015-11-26 17:02:01.000000000 +0100 +++ /var/tmp/diff_new_pack.4ebAdW/_new 2015-11-26 17:02:01.000000000 +0100 @@ -23,19 +23,18 @@ Url: https://github.com/saltstack/libnacl Group: Development/Languages/Python Source0: https://pypi.python.org/packages/source/l/libnacl/libnacl-%{version}.tar.gz +Patch: libnacl-1.4.3_bump_libsodium_soversion.patch BuildRoot: %{_tmppath}/libnacl-%{version}-build -BuildRequires: python-setuptools +BuildRequires: python BuildRequires: python-devel BuildRequires: libsodium-devel -BuildRequires: fdupes BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif +# make sure we require the libsodium version we were built with +# this is extracted from the requires_eq macro because we need the -a parameter to expand the wildcard in the package name. +%(LC_ALL=C rpm -q -a --qf "Requires: %%{name}(%{__isa}) = %%{epoch}:%%{version}\n" 'libsodium*' | grep -v libsodium-devel | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") %description This library is used to gain direct access to the functions exposed by Daniel J. Bernstein's nacl library via libsodium or tweetnacl. @@ -44,13 +43,13 @@ %prep %setup -q -n libnacl-%{version} +%patch -p1 %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} --optimize=1 -%fdupes %{buildroot}%{_prefix} %files %defattr(-,root,root) ++++++ libnacl-1.4.3_bump_libsodium_soversion.patch ++++++ Index: libnacl-1.4.3/libnacl/__init__.py =================================================================== --- libnacl-1.4.3.orig/libnacl/__init__.py +++ libnacl-1.4.3/libnacl/__init__.py @@ -9,7 +9,7 @@ from libnacl.version import __version__ import ctypes import sys -__SONAMES = (13, 10, 5, 4) +__SONAMES = (17, 13, 10, 5, 4) def _get_nacl():
