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