3 %bcond_with tests # unit tests (fixtures missing in pypi tarball)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: pep8 command for setuptools
8 Summary(pl.UTF-8): Polecenie pep8 dla setuptools
9 Name: python-setuptools_pep8
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/setuptools-pep8/
15 Source0: https://files.pythonhosted.org/packages/source/s/setuptools-pep8/setuptools-pep8-%{version}.tar.gz
16 # Source0-md5: 8d21d3dbee4e82652b15b1873e789e6c
17 URL: https://pypi.org/project/setuptools-pep8/
19 BuildRequires: python-modules >= 1:2.5
20 BuildRequires: python-setuptools
22 BuildRequires: python-pep8 >= 1.4.6
26 BuildRequires: python3-modules >= 1:3.2
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-pep8 >= 1.4.6
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.5
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 This package exposes the pep8 style guide checker as a sub-command of
42 %description -l pl.UTF-8
43 Ten pakiet udostępnia sprawdzanie stylu wg pep8 jako podpolecenie
46 %package -n python3-setuptools_pep8
47 Summary: pep8 command for setuptools
48 Summary(pl.UTF-8): Polecenie pep8 dla setuptools
49 Group: Libraries/Python
50 Requires: python3-modules >= 1:3.2
52 %description -n python3-setuptools_pep8
53 This package exposes the pep8 style guide checker as a sub-command of
56 %description -n python3-setuptools_pep8 -l pl.UTF-8
57 Ten pakiet udostępnia sprawdzanie stylu wg pep8 jako podpolecenie
61 %setup -q -n setuptools-pep8-%{version}
68 PYTHONPATH=$(pwd)/src \
69 %{__python} src/tests/test_pep8_command.py
77 PYTHONPATH=$(pwd)/src \
78 %{__python3} src/tests/test_pep8_command.py
83 rm -rf $RPM_BUILD_ROOT
88 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
95 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/tests
99 rm -rf $RPM_BUILD_ROOT
103 %defattr(644,root,root,755)
104 %doc NEWS.rst README.rst
105 %{py_sitescriptdir}/setuptools_pep8
106 %{py_sitescriptdir}/setuptools_pep8-%{version}-py*.egg-info
110 %files -n python3-setuptools_pep8
111 %defattr(644,root,root,755)
112 %doc NEWS.rst README.rst
113 %{py3_sitescriptdir}/setuptools_pep8
114 %{py3_sitescriptdir}/setuptools_pep8-%{version}-py*.egg-info