15
0
forked from pool/python-augeas

Accepting request 150487 from server:Kolab:Extras

Provided more details in python-augeas.changes

OBS-URL: https://build.opensuse.org/request/show/150487
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-augeas?expand=0&rev=2
This commit is contained in:
Sascha Peilicke
2013-02-04 18:18:45 +00:00
committed by Git OBS Bridge
parent 5b7acc7821
commit 63f97e71ff
5 changed files with 23 additions and 37 deletions

View File

@@ -1,25 +0,0 @@
diff -u python-augeas-0.4.0.orig/augeas.py python-augeas-0.4.0/augeas.py
--- python-augeas-0.4.0.orig/augeas.py 2011-10-13 10:49:23.000000000 +0200
+++ python-augeas-0.4.0/augeas.py 2011-10-13 10:51:11.000000000 +0200
@@ -60,6 +60,7 @@
_libpython = _dlopen(*["python" + _v % _pyver[:2]
for _v in ("%d.%d", "%d%d")])
_libpython.PyFile_AsFile.restype = ctypes.c_void_p
+ _libpython.PyMem_Free.argtypes = [ctypes.c_void_p]
# Load libaugeas
_libaugeas = _dlopen("augeas")
@@ -100,6 +101,12 @@
self.__handle = Augeas._libaugeas.aug_init(root, loadpath, flags)
if not self.__handle:
raise RuntimeError("Unable to create Augeas object!")
+
+ # ctypes implicitly converts void* to int (PyIntObject), which
+ # might cause issues on non-x86 architectures.
+ # This explicit cast avoids explicitly setting every
+ # _libaugeas.aug_* argtypes.
+ self.__handle = ctypes.c_void_p(self.__handle)
def __del__(self):
self.close()
Common subdirectories: python-augeas-0.4.0.orig/test and python-augeas-0.4.0/test

View File

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

View File

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

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Jan 23 16:14:53 UTC 2013 - aj@ajaissle.de
- New upstream release 0.4.1
* Allow "None" as value for set()
* Add span API call to match C API
* Make unit tests more quiet
* Work around RHEL6 on Power issue.
* test: make sure local augeas.py is used
- New format for license tag (spdx.org)
- Dropped bnc-722317.patch (included in upstream package)
-------------------------------------------------------------------
Thu Mar 15 11:35:32 UTC 2012 - dmacvicar@suse.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-augeas
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@@ -17,18 +17,18 @@
# norootforbuild
Url: http://augeas.net/
Name: python-augeas
Version: 0.4.0
Version: 0.4.1
Release: 0.<RELEASE8>
Summary: Python bindings for Augeas
License: LGPL v2.1 or later
License: LGPL-2.1+
Group: Development/Libraries/Python
Source: python-augeas-%{version}.tar.bz2
Patch0: bnc-722317.patch
BuildRequires: augeas-lenses python-devel
Url: http://augeas.net/
Source: python-augeas-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: augeas-lenses
BuildRequires: python-devel
Requires: augeas
%{py_requires}
@@ -47,7 +47,6 @@ Authors:
%prep
%setup -q
%patch0 -p1
%build
%{__python} setup.py build
@@ -55,7 +54,7 @@ Authors:
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
#%check
#%%check
#cd test
#python test_augeas.py
## the test fails because the binding is testing for features from newer augeas releases