commit 95f557078b56ed0fe583f0641c4fb488ecf1307c9a3838c0e2bf051e2e69ccca Author: OBS User autobuild Date: Mon Jun 28 11:02:12 2010 +0000 Accepting request 41909 from devel:languages:python Copy from devel:languages:python/python-concurrentloghandler based on submit request 41909 from user hennevogel OBS-URL: https://build.opensuse.org/request/show/41909 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-concurrentloghandler?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ConcurrentLogHandler-0.8.4-testpath.patch b/ConcurrentLogHandler-0.8.4-testpath.patch new file mode 100644 index 0000000..0046130 --- /dev/null +++ b/ConcurrentLogHandler-0.8.4-testpath.patch @@ -0,0 +1,17 @@ +--- setup.py ++++ setup.py +@@ -220,13 +220,7 @@ + "portalocker", + ], + package_dir={ '' : 'src', }, +- data_files=[ +- ('tests', ["stresstest.py"]), +- ('docs', [ +- 'README', +- 'LICENSE', +- ]), +- ], ++ data_files=[ ], + url="http://pypi.python.org/pypi/ConcurrentLogHandler", + license = "http://www.apache.org/licenses/LICENSE-2.0", + description=doc.pop(0), diff --git a/ConcurrentLogHandler-0.8.4.tar.bz2 b/ConcurrentLogHandler-0.8.4.tar.bz2 new file mode 100644 index 0000000..bea6738 --- /dev/null +++ b/ConcurrentLogHandler-0.8.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a568db056a90267e56246b1c81cf25233a70f92ebdefa58945366c75aeb2c730 +size 20613 diff --git a/python-concurrentloghandler.changes b/python-concurrentloghandler.changes new file mode 100644 index 0000000..a4f42a5 --- /dev/null +++ b/python-concurrentloghandler.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 22 13:10:25 UTC 2010 - hvogel@novell.com + +- Initial Package, Version 0.8.4 + diff --git a/python-concurrentloghandler.spec b/python-concurrentloghandler.spec new file mode 100644 index 0000000..eef38ac --- /dev/null +++ b/python-concurrentloghandler.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-concurrentloghandler (Version 0.8.4) +# +# Copyright (c) 2010 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + + +%define modname ConcurrentLogHandler + +Name: python-concurrentloghandler +Version: 0.8.4 +Release: 1 +Summary: Concurrent logging handler +Url: http://pypi.python.org/pypi/ConcurrentLogHandler +License: Apache Software License +Group: Development/Libraries/Python +Source: %{modname}-%{version}.tar.bz2 +Patch0: %modname-0.8.4-testpath.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel python-setuptools +BuildArch: noarch +%{py_requires} + +%description +This module provides an additional log handler for Python's standard logging +package (PEP 282). This handler will write log events to log file which is +rotated when the log file reaches a certain size. Multiple processes can safely +write to the same log file concurrently. + +%prep +%setup -q -n %{modname}-%{version} +%patch0 + +%build +export CFLAGS="$RPM_OPT_FLAGS" +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --install-data=%_defaultdocdir/%name --record=INSTALLED_FILES + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc README LICENSE + +%changelog