packages: python-decoratortools/python-decoratortools.spec (NEW)=?UTF-8?Q?=20?=- new; bas...
glen
glen at pld-linux.org
Sun Apr 22 22:36:33 CEST 2012
Author: glen Date: Sun Apr 22 20:36:33 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new; based on fc package
---- Files affected:
packages/python-decoratortools:
python-decoratortools.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-decoratortools/python-decoratortools.spec
diff -u /dev/null packages/python-decoratortools/python-decoratortools.spec:1.1
--- /dev/null Sun Apr 22 22:36:33 2012
+++ packages/python-decoratortools/python-decoratortools.spec Sun Apr 22 22:36:28 2012
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module DecoratorTools
+Summary: Use class and function decorators -- even in Python 2.3
+Name: python-decoratortools
+Version: 1.8
+Release: 1
+License: Python or ZPLv2.1
+Group: Development/Languages
+URL: http://pypi.python.org/pypi/DecoratorTools
+Source0: http://pypi.python.org/packages/source/D/DecoratorTools/%{module}-%{version}.zip
+# Source0-md5: f161004115c3d04ed976c230c8a91d87
+BuildRequires: python-devel
+%{?with_tests:BuildRequires: python-nose}
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: python-setuptools
+BuildRequires: unzip
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Want to use decorators, but still need to support Python 2.3? Wish you
+could have class decorators, decorate arbitrary assignments, or match
+decorated function signatures to their original functions? Then you
+need "DecoratorTools".
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --root $RPM_BUILD_ROOT
+
+%py_postclean
+
+%if %{with tests}
+PYTHONPATH=$(pwd) nosetests-%{py_ver} -q
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%dir %{py_sitescriptdir}/peak
+%dir %{py_sitescriptdir}/peak/util
+%{py_sitescriptdir}/peak/util/decorators.py[co]
+%{py_sitescriptdir}/%{module}-%{version}-py%{py_ver}.egg-info
+%{py_sitescriptdir}/%{module}-%{version}-py%{py_ver}-nspkg.pth
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/04/22 20:36:28 glen
+- new; based on fc package
================================================================
More information about the pld-cvs-commit
mailing list