15
0

- Update to version 3.3.2

- Added proper changes file

- Update to 3.3.0

- Update to 3.0.1

- Initial release

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-decorator?expand=0&rev=7
This commit is contained in:
Sascha Peilicke
2011-09-01 09:59:03 +00:00
committed by Git OBS Bridge
parent 8ed31c27df
commit 67d3481972
5 changed files with 64 additions and 1052 deletions

View File

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

3
decorator-3.3.2.tar.gz Normal file
View File

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

File diff suppressed because it is too large Load Diff

21
python-decorator.changes Normal file
View File

@@ -0,0 +1,21 @@
-------------------------------------------------------------------
Thu Sep 1 09:56:17 UTC 2011 - saschpe@suse.de
- Update to version 3.3.2
- Added proper changes file
-------------------------------------------------------------------
Thu Jan 7 00:00:00 UTC 2010 - hpj@urpla.net
- Update to 3.3.0
-------------------------------------------------------------------
Mon Aug 10 00:00:00 UTC 2009 - cfarrell1980@gmail.com
- Update to 3.0.1
-------------------------------------------------------------------
Tue Dec 2 00:00:00 UTC 2008 - jfunk@funktronics.ca
- Initial release

View File

@@ -1,17 +1,38 @@
%define modname decorator
Name: python-%{modname}
Version: 3.3.0
Release: 1
Summary: Better Living Through Python With Decorators
URL: http://www.phyast.pitt.edu/~micheles/python/documentation.html
License: BSD
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
Source1: documentation.html
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
#
# spec file for package python-decorator
#
# Copyright (c) 2011 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/
#
Name: python-decorator
Version: 3.3.2
Release: 0
Url: http://pypi.python.org/pypi/decorator
Summary: Better living through Python with decorators
License: BSD License
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/d/decorator/decorator-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-nose
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
As of now, writing custom decorators correctly requires some experience and it
@@ -25,37 +46,19 @@ The aim of the decorator module it to simplify the usage of decorators for the
average programmer, and to popularize decorators usage giving examples of
useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.
Authors:
--------
Michele Simionato <michele.simionato@gmail.com>
%prep
%setup -q -n %{modname}-%{version}
# Remove executable bits from doc files
chmod a-x *.txt *.py
sed -i 's/\r//' README.txt
cp %{SOURCE1} .
%setup -q -n decorator-%{version}
sed -i 's/\r//' README.txt # Fix EOL encoding
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt PKG-INFO documentation.html
%files
%defattr(-,root,root,-)
%doc README.txt
%{python_sitelib}/*
%changelog
* Fri Jan 07 2010 - Hans-Peter Jansen <hpj@urpla.net> - 3.3.0-1
- Update to 3.3.0
* Mon Aug 10 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 3.0.1-1
- Update to 3.0.1
* Tue Dec 02 2008 - James Oakley <jfunk@funktronics.ca> - 2.3.2-1
- Initial release