forked from pool/python-lockfile
- added a patch to fix a TypeError in LockBase.__init__ when the current
thread has ident == None OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lockfile?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
00c8b973b5
commit
ef1421c703
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-lockfile
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 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
|
||||
@@ -23,12 +23,13 @@
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 0.9.1
|
||||
Release: 1
|
||||
Release: 0
|
||||
Url: http://code.google.com/p/pylockfile/
|
||||
Summary: Platform-independent file locking module
|
||||
License: MIT License
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
Patch0: %{name}-empty_ident.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version}
|
||||
@@ -51,6 +52,10 @@ production-quality code.
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
# current thread has ident = None, which causes a TypeError
|
||||
# http://code.google.com/p/pylockfile/issues/detail?id=8
|
||||
%patch0 -p1 -b .empty_ident
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
Reference in New Issue
Block a user