3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Extract semantic information about static Python code
8 Summary(pl.UTF-8): Wydobywanie informacji semantycznych o statycznym kodzie w Pythonie
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/beniget/
15 Source0: https://files.pythonhosted.org/packages/source/b/beniget/beniget-%{version}.tar.gz
16 # Source0-md5: a2bbe7f17f10f9c127d8ef00692ddc55
17 URL: https://pypi.org/project/beniget/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-gast >= 0.5.0
26 BuildRequires: python3-modules >= 1:3.4
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-gast >= 0.5.0
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.7
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 A static analyzer for Python2 and Python3 code.
41 Beniget provides a static over-approximation of the global and local
42 definitions inside Python Module/Class/Function. It can also compute
43 def-use chains from each definition.
45 %description -l pl.UTF-8
46 Statyczny analizator kodu Pythona 2 i 3.
48 Beniget zapewnia statyczną (nad)aproksymację globalnych i lokalnych
49 definicji wewnątrz modułów/klas/funkcji pythonowych. Potrafi także
50 wyliczać łańcuchy def-użyć z każdej definicji.
52 %package -n python3-beniget
53 Summary: Extract semantic information about static Python code
54 Summary(pl.UTF-8): Wydobywanie informacji semantycznych o statycznym kodzie w Pythonie
55 Group: Libraries/Python
56 Requires: python3-modules >= 1:3.4
58 %description -n python3-beniget
59 A static analyzer for Python2 and Python3 code.
61 Beniget provides a static over-approximation of the global and local
62 definitions inside Python Module/Class/Function. It can also compute
63 def-use chains from each definition.
65 %description -n python3-beniget -l pl.UTF-8
66 Statyczny analizator kodu Pythona 2 i 3.
68 Beniget zapewnia statyczną (nad)aproksymację globalnych i lokalnych
69 definicji wewnątrz modułów/klas/funkcji pythonowych. Potrafi także
70 wyliczać łańcuchy def-użyć z każdej definicji.
73 %setup -q -n beniget-%{version}
77 %py_build %{?with_tests:test}
81 %py3_build %{?with_tests:test}
85 rm -rf $RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc LICENSE README.rst
104 %{py_sitescriptdir}/beniget
105 %{py_sitescriptdir}/beniget-%{version}-py*.egg-info
109 %files -n python3-beniget
110 %defattr(644,root,root,755)
111 %doc LICENSE README.rst
112 %{py3_sitescriptdir}/beniget
113 %{py3_sitescriptdir}/beniget-%{version}-py*.egg-info