1
0
forked from pool/python-mccabe

- Fix SLE_11_SP2 build

- Set license to MIT (SPDX mapping from Expat)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mccabe?expand=0&rev=3
This commit is contained in:
Sascha Peilicke 2013-04-24 08:51:28 +00:00 committed by Git OBS Bridge
parent c47cc7967d
commit 1fd2ddcf5b
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 23 13:04:20 UTC 2013 - speilicke@suse.com
- Fix SLE_11_SP2 build
- Set license to MIT (SPDX mapping from Expat)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Apr 21 23:39:43 UTC 2013 - dmueller@suse.com Sun Apr 21 23:39:43 UTC 2013 - dmueller@suse.com

View File

@ -18,7 +18,7 @@
Name: python-mccabe Name: python-mccabe
Version: 0.2.1 Version: 0.2.1
Release: 0 Release: 0
License: Expat license License: MIT
Summary: McCabe checker, plugin for flake8 Summary: McCabe checker, plugin for flake8
Url: https://github.com/flintwork/mccabe Url: https://github.com/flintwork/mccabe
Group: Development/Languages/Python Group: Development/Languages/Python
@ -28,26 +28,26 @@ BuildRequires: python-distribute
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%else %else
BuildArch: noarch BuildArch: noarch
%endif %endif
%description %description
Ned's script to check McCabe complexity. Ned's script to check McCabe complexity.
This module provides a plugin for ``flake8``, the Python code checker. This module provides a plugin for flake8, the Python code checker.
%prep %prep
%setup -q -n mccabe-%{version} %setup -q -n mccabe-%{version}
%build %build
CFLAGS="%{optflags}" python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog