commit python-lockfile for openSUSE:Factory

2020-08-25 Thread root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2020-08-25 12:37:42

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new.3399 (New)


Package is "python-lockfile"

Tue Aug 25 12:37:42 2020 rev:16 rq:827219 version:0.12.2

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2019-02-26 22:22:45.290058625 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-lockfile.new.3399/python-lockfile.changes
2020-08-25 12:37:47.833403498 +0200
@@ -1,0 +2,6 @@
+Sun Aug 16 15:16:13 UTC 2020 - John Vandenberg 
+
+- Add convert-to-unittest.patch to switch from nose to pytest
+- Add %fdupes
+
+---

New:

  convert-to-unittest.patch



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.sJizUp/_old  2020-08-25 12:37:48.945403707 +0200
+++ /var/tmp/diff_new_pack.sJizUp/_new  2020-08-25 12:37:48.949403708 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,9 +26,11 @@
 URL:https://github.com/openstack/pylockfile
 Source: 
https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz
 Patch0: %{name}-empty_ident.patch
-BuildRequires:  %{python_module nose}
+Patch1: convert-to-unittest.patch
 BuildRequires:  %{python_module pbr}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:  noarch
 %python_subpackages
@@ -47,16 +49,18 @@
 %setup -q -n lockfile-%{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
+%patch0 -p1
+%patch1 -p1
 
 %build
 %python_build
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec -m nose
+%pytest
 
 %files %{python_files}
 %license LICENSE

++ convert-to-unittest.patch ++
diff -ur lockfile-0.12.2-orig/test/compliancetest.py 
lockfile-0.12.2/test/compliancetest.py
--- lockfile-0.12.2-orig/test/compliancetest.py 2015-11-26 01:29:13.0 
+0700
+++ lockfile-0.12.2/test/compliancetest.py  2020-08-16 07:58:15.176973406 
+0700
@@ -1,23 +1,22 @@
 import os
 import threading
 import shutil
+import unittest
 
 import lockfile
 
 
 class ComplianceTest(object):
-def __init__(self):
-self.saved_class = lockfile.LockFile
-
 def _testfile(self):
 """Return platform-appropriate file.  Helper for tests."""
 import tempfile
 return os.path.join(tempfile.gettempdir(), 'trash-%s' % os.getpid())
 
-def setup(self):
-lockfile.LockFile = self.class_to_test
+def setUp(self):
+self.saved_class = lockfile.LockFile
+lockfile.LockFile = getattr(self, 'class_to_test', None)
 
-def teardown(self):
+def tearDown(self):
 try:
 tf = self._testfile()
 if os.path.isdir(tf):
diff -ur lockfile-0.12.2-orig/test/test_lockfile.py 
lockfile-0.12.2/test/test_lockfile.py
--- lockfile-0.12.2-orig/test/test_lockfile.py  2015-11-26 01:29:13.0 
+0700
+++ lockfile-0.12.2/test/test_lockfile.py   2020-08-16 07:58:49.461371422 
+0700
@@ -1,3 +1,5 @@
+import unittest
+
 import lockfile.linklockfile
 import lockfile.mkdirlockfile
 import lockfile.pidlockfile
@@ -6,28 +8,28 @@
 from compliancetest import ComplianceTest
 
 
-class TestLinkLockFile(ComplianceTest):
+class TestLinkLockFile(ComplianceTest, unittest.TestCase):
 class_to_test = lockfile.linklockfile.LinkLockFile
 
 
-class TestSymlinkLockFile(ComplianceTest):
+class TestSymlinkLockFile(ComplianceTest, unittest.TestCase):
 class_to_test = lockfile.symlinklockfile.SymlinkLockFile
 
 
-class TestMkdirLockFile(ComplianceTest):
+class TestMkdirLockFile(ComplianceTest, unittest.TestCase):
 class_to_test = lockfile.mkdirlockfile.MkdirLockFile
 
 
-class TestPIDLockFile(ComplianceTest):
+class TestPIDLockFile(ComplianceTest, unittest.TestCase):
 class_to_test = lockfile.pidlockfile.PIDLockFile
 
 
 # Check backwards compatibility
-class TestLinkFileLock(ComplianceTest):
+class TestLinkFileLock(ComplianceTest, unittest.TestCase):
 class_to_test = lockfile.LinkFileLock
 
 
-class TestMkdirFileLock(ComplianceTest):
+class TestMkdirFileLock(ComplianceTest, 

commit python-lockfile for openSUSE:Factory

2019-02-26 Thread root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2019-02-26 22:21:05

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new.28833 (New)


Package is "python-lockfile"

Tue Feb 26 22:21:05 2019 rev:15 rq:679178 version:0.12.2

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2018-12-24 11:39:19.233562391 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-lockfile.new.28833/python-lockfile.changes   
2019-02-26 22:22:45.290058625 +0100
@@ -1,0 +2,24 @@
+Mon Feb 25 21:54:28 UTC 2019 - John Vandenberg 
+
+- Add AUTHORS, ACKS and ChangeLog to %doc
+- Update to v0.12.2
+  * Add warning to README.rst
+- from 0.12.1
+  * Remove Python 2.6 classifier
+  * Remove python 2.6
+  * Remove two unused variables: fix flake8 F841 warn
+  * Fix flake8 warnings
+  * PBR setup requirement only
+  * Support universal wheels
+- from 0.11.0
+  * Add deprecated warnings to index.rst
+  * Fix PIDLockFile.acquire() may loop indefinitely
+  * Fix failure - from lockfile import *
+  * lockfile.acquire doesn't accept a timeout of 0
+  * Update README format for our release script
+  * Begin moving some of the common code to a shared base
+  * Add pbr to dependency list
+  * The version of sphinx being brought in is broken
+  * Fix Git URLs
+
+---

Old:

  lockfile-0.10.2.tar.gz

New:

  lockfile-0.12.2.tar.gz



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.L82l7R/_old  2019-02-26 22:22:45.718058473 +0100
+++ /var/tmp/diff_new_pack.L82l7R/_new  2019-02-26 22:22:45.718058473 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-lockfile
-Version:0.10.2
+Version:0.12.2
 Release:0
 Summary:Platform-independent file locking module
 License:MIT
@@ -60,7 +60,7 @@
 
 %files %{python_files}
 %license LICENSE
-%doc README RELEASE-NOTES
+%doc README.rst AUTHORS ACKS RELEASE-NOTES ChangeLog
 %{python_sitelib}/lockfile*
 
 %changelog

++ lockfile-0.10.2.tar.gz -> lockfile-0.12.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lockfile-0.10.2/AUTHORS new/lockfile-0.12.2/AUTHORS
--- old/lockfile-0.10.2/AUTHORS 2014-09-19 14:23:48.0 +0200
+++ new/lockfile-0.12.2/AUTHORS 2015-11-25 19:29:29.0 +0100
@@ -1,5 +1,12 @@
 (no author) <(no author)>
+ChangBo Guo(gcb) 
+Davanum Srinivas 
+Doug Hellmann 
 Elmo Todurov 
+Joshua Harlow 
 Julien Danjou 
 Skip Montanaro 
+Thomas Grainger 
+Thomas Grainger 
+Victor Stinner 
 skip.montanaro 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lockfile-0.10.2/ChangeLog 
new/lockfile-0.12.2/ChangeLog
--- old/lockfile-0.10.2/ChangeLog   2014-09-19 14:23:48.0 +0200
+++ new/lockfile-0.12.2/ChangeLog   2015-11-25 19:29:29.0 +0100
@@ -1,6 +1,34 @@
 CHANGES
 ===
 
+0.12.2
+--
+
+* Add warning to README.rst
+
+0.12.1
+--
+
+* Remove Python 2.6 classifier
+* Remove python 2.6
+* Remove two unused variables: fix flake8 F841 warn
+* Fix flake8 warnings
+* PBR setup requirement only
+* Support universal wheels
+
+0.11.0
+--
+
+* Add deprecated warnings to index.rst
+* Fix PIDLockFile.acquire() may loop indefinitely
+* Fix failure - from lockfile import *
+* lockfile.acquire doesn't accept a timeout of 0
+* Update README format for our release script
+* Begin moving some of the common code to a shared base
+* Add pbr to dependency list
+* The version of sphinx being brought in is broken
+* Fix Git URLs
+
 0.10.2
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lockfile-0.10.2/PKG-INFO new/lockfile-0.12.2/PKG-INFO
--- old/lockfile-0.10.2/PKG-INFO2014-09-19 14:23:48.0 +0200
+++ new/lockfile-0.12.2/PKG-INFO2015-11-25 19:29:29.0 +0100
@@ -1,12 +1,18 @@
 Metadata-Version: 1.1
 Name: lockfile
-Version: 0.10.2
+Version: 0.12.2
 Summary: Platform-independent file locking module
 Home-page: http://launchpad.net/pylockfile
 Author: OpenStack
 Author-email: openstack-...@lists.openstack.org
 License: UNKNOWN
-Description: The lockfile package exports a LockFile 

commit python-lockfile for openSUSE:Factory

2018-12-24 Thread root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2018-12-24 11:39:19

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new.28833 (New)


Package is "python-lockfile"

Mon Dec 24 11:39:19 2018 rev:14 rq:659478 version:0.10.2

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2017-10-20 16:11:48.307121403 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-lockfile.new.28833/python-lockfile.changes   
2018-12-24 11:39:19.233562391 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:50:06 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.syGUrY/_old  2018-12-24 11:39:19.729561951 +0100
+++ /var/tmp/diff_new_pack.syGUrY/_new  2018-12-24 11:39:19.729561951 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -23,15 +23,13 @@
 Summary:Platform-independent file locking module
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/openstack/pylockfile
+URL:https://github.com/openstack/pylockfile
 Source: 
https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz
 Patch0: %{name}-empty_ident.patch
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 %python_subpackages
 
@@ -61,8 +59,8 @@
 %python_exec -m nose
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc README RELEASE-NOTES LICENSE
+%license LICENSE
+%doc README RELEASE-NOTES
 %{python_sitelib}/lockfile*
 
 %changelog




commit python-lockfile for openSUSE:Factory

2017-10-20 Thread root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2017-10-20 16:11:47

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new (New)


Package is "python-lockfile"

Fri Oct 20 16:11:47 2017 rev:13 rq:533033 version:0.10.2

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2015-05-10 10:44:14.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-lockfile.new/python-lockfile.changes 
2017-10-20 16:11:48.307121403 +0200
@@ -1,0 +2,5 @@
+Thu Aug 24 13:44:46 UTC 2017 - jmate...@suse.com
+
+- singlespec auto-conversion
+
+---
@@ -57,0 +63 @@
+



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.MdziLZ/_old  2017-10-20 16:11:48.907093376 +0200
+++ /var/tmp/diff_new_pack.MdziLZ/_new  2017-10-20 16:11:48.911093189 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2015 SUSE LINUX 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
@@ -16,26 +16,24 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-lockfile
 Version:0.10.2
 Release:0
-Url:https://github.com/openstack/pylockfile
 Summary:Platform-independent file locking module
 License:MIT
 Group:  Development/Languages/Python
-Source: 
https://pypi.python.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz
+Url:https://github.com/openstack/pylockfile
+Source: 
https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz
 Patch0: %{name}-empty_ident.patch
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pbr}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-nose
-BuildRequires:  python-pbr
-BuildRequires:  python-setuptools
-%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()")}
-%py_requires
-%else
 BuildArch:  noarch
-%endif
+%python_subpackages
 
 %description
 The lockfile package exports a LockFile class which provides a simple API for
@@ -54,17 +52,17 @@
 %patch0 -p1 -b .empty_ident
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
 %check
-nosetests
+%python_exec -m nose
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README RELEASE-NOTES LICENSE
-%python_sitelib/lockfile*
+%{python_sitelib}/lockfile*
 
 %changelog




commit python-lockfile for openSUSE:Factory

2015-05-10 Thread h_root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2015-05-10 10:44:13

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new (New)


Package is python-lockfile

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2014-07-24 06:57:31.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-lockfile.new/python-lockfile.changes 
2015-05-10 10:44:14.0 +0200
@@ -1,0 +2,24 @@
+Thu May  7 11:34:59 UTC 2015 - benoit.mo...@gmx.fr
+
+- update to version 0.10.2:
+  * Fix package name
+- additional changes from version 0.10.1:
+  * Add missing cover env in tox
+- additional changes from version 0.10.0:
+  * Fix documentation bug report address
+  * Add py34 in tox
+  * Remove old diff file
+  * Add .gitreview, tox targets and use pbr
+  * fix for timeout=0
+  * remove 2.5, 3.1 and 3.4 from the list for the time being - may
+get added back later
+  * Bugfix: locking two different files in the same directory
+caused an error during unlocking the last unlocking
+  * typo
+- update project URL
+- point the source URL to pypi
+- add new build dependencies: python-nose,  python-pbr
+  and python-setuptools
+- run the tests during build with nosetests
+
+---

Old:

  lockfile-0.9.1.tar.bz2

New:

  lockfile-0.10.2.tar.gz



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.WW7BHW/_old  2015-05-10 10:44:14.0 +0200
+++ /var/tmp/diff_new_pack.WW7BHW/_new  2015-05-10 10:44:14.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,16 +17,19 @@
 
 
 Name:   python-lockfile
-Version:0.9.1
+Version:0.10.2
 Release:0
-Url:http://code.google.com/p/pylockfile/
+Url:https://github.com/openstack/pylockfile
 Summary:Platform-independent file locking module
 License:MIT
 Group:  Development/Languages/Python
-Source: lockfile-%{version}.tar.bz2
+Source: 
https://pypi.python.org/packages/source/l/lockfile/lockfile-%{version}.tar.gz
 Patch0: %{name}-empty_ident.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
+BuildRequires:  python-nose
+BuildRequires:  python-pbr
+BuildRequires:  python-setuptools
 %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())}
 %py_requires
@@ -56,6 +59,9 @@
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
+%check
+nosetests
+
 %files
 %defattr(-,root,root,-)
 %doc README RELEASE-NOTES LICENSE




commit python-lockfile for openSUSE:Factory

2014-07-23 Thread h_root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2014-07-24 06:57:30

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new (New)


Package is python-lockfile

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2012-06-28 16:32:44.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-lockfile.new/python-lockfile.changes 
2014-07-24 06:57:31.0 +0200
@@ -1,0 +2,5 @@
+Mon Jul 21 16:31:18 UTC 2014 - fcro...@suse.com
+
+- Add LICENSE to %doc
+
+---



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.Jkapny/_old  2014-07-24 06:57:32.0 +0200
+++ /var/tmp/diff_new_pack.Jkapny/_new  2014-07-24 06:57:32.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -58,7 +58,7 @@
 
 %files
 %defattr(-,root,root,-)
-%doc README RELEASE-NOTES
+%doc README RELEASE-NOTES LICENSE
 %python_sitelib/lockfile*
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-lockfile for openSUSE:Factory

2012-06-28 Thread h_root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2012-06-28 16:32:43

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new (New)


Package is python-lockfile, Maintainer is cth...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2012-06-13 13:32:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-lockfile.new/python-lockfile.changes 
2012-06-28 16:32:44.0 +0200
@@ -1,0 +2,5 @@
+Wed Jun 27 08:55:31 UTC 2012 - sasc...@suse.de
+
+- Less macros
+
+---



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.FbagcR/_old  2012-06-28 16:32:45.0 +0200
+++ /var/tmp/diff_new_pack.FbagcR/_new  2012-06-28 16:32:45.0 +0200
@@ -16,28 +16,23 @@
 #
 
 
-%{!?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))}
-
-%define mod_name lockfile
-
-Name:   python-%{mod_name}
+Name:   python-lockfile
 Version:0.9.1
 Release:0
 Url:http://code.google.com/p/pylockfile/
 Summary:Platform-independent file locking module
 License:MIT
 Group:  Development/Languages/Python
-Source: %{mod_name}-%{version}.tar.bz2
+Source: lockfile-%{version}.tar.bz2
 Patch0: %{name}-empty_ident.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
-%if 0%{?suse_version}
+%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())}
 %py_requires
-%if 0%{?suse_version}  1110
+%else
 BuildArch:  noarch
 %endif
-%endif
 
 %description
 The lockfile package exports a LockFile class which provides a simple API for
@@ -50,25 +45,20 @@
 production-quality code.
 
 %prep
-%setup -q -n %{mod_name}-%{version}
-
+%setup -q -n lockfile-%{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
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
-%clean
-rm -rf %{buildroot}
-
 %files
 %defattr(-,root,root,-)
 %doc README RELEASE-NOTES
-%python_sitelib/%{mod_name}*
+%python_sitelib/lockfile*
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-lockfile for openSUSE:Factory

2012-06-13 Thread h_root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2012-06-13 13:32:34

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new (New)


Package is python-lockfile, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2011-09-23 12:42:56.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-lockfile.new/python-lockfile.changes 
2012-06-13 13:32:52.0 +0200
@@ -1,0 +2,6 @@
+Thu Feb  2 13:41:07 CET 2012 - iartar...@suse.cz
+
+- added a patch to fix a TypeError in LockBase.__init__ when the current
+  thread has ident == None
+
+---

New:

  python-lockfile-empty_ident.patch



Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.jC540W/_old  2012-06-13 13:32:53.0 +0200
+++ /var/tmp/diff_new_pack.jC540W/_new  2012-06-13 13:32:53.0 +0200
@@ -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
 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 @@
 %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

++ python-lockfile-empty_ident.patch ++
--- lockfile-0.9.1/lockfile/__init__.py.orig2012-02-02 13:32:51.133789612 
+0100
+++ lockfile-0.9.1/lockfile/__init__.py 2012-02-02 13:33:13.024241010 +0100
@@ -167,7 +167,7 @@
 t = threading.current_thread()
 # Thread objects in Python 2.4 and earlier do not have ident
 # attrs.  Worm around that.
-ident = getattr(t, ident, hash(t))
+ident = getattr(t, ident, hash(t)) or hash(t)
 self.tname = -%x % (ident  0x)
 else:
 self.tname = 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit python-lockfile for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2011-12-06 18:56:18

Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and  /work/SRC/openSUSE:Factory/.python-lockfile.new (New)


Package is python-lockfile, Maintainer is 

Changes:




Other differences:
--
++ python-lockfile.spec ++
--- /var/tmp/diff_new_pack.zpl7Pc/_old  2011-12-06 19:29:23.0 +0100
+++ /var/tmp/diff_new_pack.zpl7Pc/_new  2011-12-06 19:29:23.0 +0100
@@ -26,7 +26,7 @@
 Release:1
 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
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org