3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Tool to measure, monitor and analyse the memory behaviour of Python 2 objects
8 Summary(pl.UTF-8): Narzędzie do pomiaru, monitorowania i analizy zachowania pamięciowego obiektów Pythona 2
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pympler/
15 Source0: https://files.pythonhosted.org/packages/source/P/Pympler/Pympler-%{version}.tar.gz
16 # Source0-md5: 831d12beca2ff2ea56407c5ed8ffc4b0
17 URL: https://pythonhosted.org/Pympler/
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python-modules >= 1:2.6
24 BuildRequires: python3-modules >= 1:3.2
26 Requires: python-modules >= 1:2.6
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Pympler is a development tool to measure, monitor and analyse the
32 memory behaviour of Python objects in a running Python application.
34 %description -l pl.UTF-8
35 Pympler to narzędzie programistyczne do pomiaru, monitorowania i
36 analizy zachowania pamięciowego obiektów Pythona w działającej
39 %package -n python3-pympler
40 Summary: Tool to measure, monitor and analyse the memory behaviour of Python 3 objects
41 Summary(pl.UTF-8): Narzędzie do pomiaru, monitorowania i analizy zachowania pamięciowego obiektów Pythona 3
42 Group: Libraries/Python
43 Requires: python3-modules >= 1:3.2
45 %description -n python3-pympler
46 Pympler is a development tool to measure, monitor and analyse the
47 memory behaviour of Python objects in a running Python application.
49 %description -n python3-pympler -l pl.UTF-8
50 Pympler to narzędzie programistyczne do pomiaru, monitorowania i
51 analizy zachowania pamięciowego obiektów Pythona w działającej
55 %setup -q -n Pympler-%{version}
63 %{__python} test/runtest.py -post-install -verbose 3
72 %{__python3} test/runtest.py -post-install -verbose 3
77 rm -rf $RPM_BUILD_ROOT
90 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %{py_sitescriptdir}/pympler
97 %{py_sitescriptdir}/Pympler-%{version}-py*.egg-info
101 %files -n python3-pympler
102 %defattr(644,root,root,755)
103 %doc NOTICE README.md
104 %{py3_sitescriptdir}/pympler
105 %{py3_sitescriptdir}/Pympler-%{version}-py*.egg-info