]> git.pld-linux.org Git - packages/Zope-Deprecation.git/blame - Zope-Deprecation.spec
BR: rpmbuild(macros) >= 1.710
[packages/Zope-Deprecation.git] / Zope-Deprecation.spec
CommitLineData
33398c02
ER
1# TODO
2# - why it was needed to move code to py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84 ?
3#
4# Conditional build:
5%bcond_without tests # do not perform "make test"
6
69d8a7de 7Summary: Deprecation library for Python code
853d4e59 8Summary(pl.UTF-8): Biblioteka odradzająca dla kodu w Pythonie
25e68304 9Name: Zope-Deprecation
191b9d43 10Version: 4.0.2
1f24873d 11Release: 2
69d8a7de 12License: ZPL 2.1
13Group: Libraries/Python
4024cce2 14Source0: http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
191b9d43
ER
15# Source0-md5: 5f8cecce85f2783f9e020f1288e908fd
16URL: http://docs.zope.org/zope.deprecation/
17BuildRequires: python >= 1:2.6
853d4e59 18BuildRequires: python-devel >= 1:2.5
449afe77 19BuildRequires: python-setuptools
853d4e59 20BuildRequires: rpm-pythonprov
a1c3040c 21BuildRequires: rpmbuild(macros) >= 1.710
727fd8f2 22Requires: Zope-Testing
33398c02
ER
23Requires: python-modules
24# not noarch because of py_sitedir in 99929afd5fede7d191f944c30d2cfa692454ba84
25#BuildArch: noarch
25e68304 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
191b9d43
ER
29This package provides a simple function called deprecated(names, reason) to
30mark deprecated modules, classes, functions, methods and properties.
25e68304 31
853d4e59
JB
32%description -l pl.UTF-8
33Biblioteka odradzająca dla kodu w Pythonie.
34
25e68304 35%prep
36%setup -q -n zope.deprecation-%{version}
37
38%build
9313eb36 39%py_build
33398c02
ER
40
41%{?with_tests:%{__python} setup.py test}
25e68304 42
43%install
44rm -rf $RPM_BUILD_ROOT
9313eb36 45%py_install \
99929afd 46 --install-purelib=%{py_sitedir} \
33398c02 47 --skip-build \
25e68304 48 --optimize 2 \
49 --root=$RPM_BUILD_ROOT
50
33398c02
ER
51%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/deprecation/tests.py[co]
52
853d4e59 53%py_postclean
25e68304 54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
191b9d43 60%doc CHANGES.txt
33398c02
ER
61%dir %{py_sitedir}/zope/deprecation
62%{py_sitedir}/zope/deprecation/*.py[co]
99929afd 63%{py_sitedir}/zope.deprecation-*.egg-info
64%{py_sitedir}/zope.deprecation-*-nspkg.pth
This page took 0.061929 seconds and 5 git commands to generate.