[python-zope-deprecation] Initial import
Luke Macken
lmacken at fedoraproject.org
Mon Feb 7 01:34:44 UTC 2011
commit a018d9e349ad1a72375a05a426573367b16d5e4f
Author: Luke Macken <lmacken at redhat.com>
Date: Sun Feb 6 20:34:36 2011 -0500
Initial import
.gitignore | 1 +
python-zope-deprecation.spec | 47 ++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6ba2a9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zope.deprecation-3.4.0.tar.gz
diff --git a/python-zope-deprecation.spec b/python-zope-deprecation.spec
new file mode 100644
index 0000000..b29234d
--- /dev/null
+++ b/python-zope-deprecation.spec
@@ -0,0 +1,47 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+%define modname zope.deprecation
+
+Name: python-zope-deprecation
+Version: 3.4.0
+Release: 1%{?dist}
+Summary: Zope 3 Deprecation Infrastructure
+
+Group: Development/Libraries
+License: ZPLv2.1
+URL: http://pypi.python.org/pypi/zope.deprecation
+Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: python-setuptools-devel
+BuildRequires: python-zope-testing
+
+%description
+This package provides a simple function called 'deprecated(names, reason)' to
+deprecate the previously mentioned Python objects.
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+rm -f %{buildroot}%{python_sitelib}/zope/deprecation/README.txt
+rm -f %{buildroot}%{python_sitelib}/zope/deprecation/DEPENDENCIES.cfg
+rm -f %{buildroot}%{python_sitelib}/zope/deprecation/tests.py*
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.txt
+%{python_sitelib}/*
+
+%changelog
+* Wed Jan 2 2010 Luke Macken <lmacken at redhat.com> - 3.4.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..2f45a09 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+453a5707987c8b8eb1f58ed948119fce zope.deprecation-3.4.0.tar.gz
More information about the scm-commits
mailing list