]> git.pld-linux.org Git - packages/Zope-Deprecation.git/blame - Zope-Deprecation.spec
enable testing
[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
10Version: 3.4.0
33398c02 11Release: 5
69d8a7de 12License: ZPL 2.1
13Group: Libraries/Python
4024cce2 14Source0: http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
25e68304 15# Source0-md5: cc5814063505f217c6df3fc93ec8b2df
69d8a7de 16URL: http://www.zope.org/
853d4e59
JB
17BuildRequires: python >= 1:2.5
18BuildRequires: python-devel >= 1:2.5
449afe77 19BuildRequires: python-setuptools
853d4e59
JB
20BuildRequires: rpm-pythonprov
21BuildRequires: rpmbuild(macros) >= 1.219
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
69d8a7de 29Deprecation library for Python code.
25e68304 30
853d4e59
JB
31%description -l pl.UTF-8
32Biblioteka odradzająca dla kodu w Pythonie.
33
25e68304 34%prep
35%setup -q -n zope.deprecation-%{version}
36
37%build
33398c02
ER
38%{__python} setup.py build
39
40%{?with_tests:%{__python} setup.py test}
25e68304 41
42%install
43rm -rf $RPM_BUILD_ROOT
33398c02 44%{__python} setup.py install \
99929afd 45 --install-purelib=%{py_sitedir} \
33398c02 46 --skip-build \
25e68304 47 --optimize 2 \
48 --root=$RPM_BUILD_ROOT
49
33398c02
ER
50%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/deprecation/tests.py[co]
51
853d4e59 52%py_postclean
25e68304 53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
33398c02
ER
59%dir %{py_sitedir}/zope/deprecation
60%{py_sitedir}/zope/deprecation/*.py[co]
61%{py_sitedir}/zope/deprecation/DEPENDENCIES.cfg
62# mv to %doc ?
63%{py_sitedir}/zope/deprecation/README.txt
99929afd 64%{py_sitedir}/zope.deprecation-*.egg-info
65%{py_sitedir}/zope.deprecation-*-nspkg.pth
This page took 0.046775 seconds and 5 git commands to generate.