From d721d1d9e6355fc878a44d8c9cd531e89d20c25a16a59553a931b5f1831d999d Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 24 Apr 2013 09:04:57 +0000 Subject: [PATCH] - Spec file cleanup - Run testsuite - Add LICENSE (for legal) - Spec file cleanup - Run testsuite - Add LICENSE (for legal) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=3 --- python-flake8.changes | 7 +++++++ python-flake8.spec | 21 ++++++++++++++------- python3-flake8.changes | 7 +++++++ python3-flake8.spec | 22 ++++++++++++++++------ 4 files changed, 44 insertions(+), 13 deletions(-) diff --git a/python-flake8.changes b/python-flake8.changes index ff38b0f..9d23349 100644 --- a/python-flake8.changes +++ b/python-flake8.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 24 08:57:24 UTC 2013 - speilicke@suse.com + +- Spec file cleanup +- Run testsuite +- Add LICENSE (for legal) + ------------------------------------------------------------------- Sun Apr 21 23:40:09 UTC 2013 - dmueller@suse.com diff --git a/python-flake8.spec b/python-flake8.spec index 2011e0a..6775e5f 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -25,14 +25,17 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-distribute -BuildRequires: python-pyflakes -Requires: python-pyflakes >= 0.6.1 -Requires: python-pep8 >= 1.4.3 -Requires: python-mccabe >= 0.2 +# Test requirements: +BuildRequires: python-mccabe >= 0.2 +BuildRequires: python-nose +BuildRequires: python-pep8 >= 1.4.3 +BuildRequires: python-pyflakes >= 0.6.1 +Requires: python-mccabe >= 0.2 +Requires: python-pep8 >= 1.4.3 +Requires: python-pyflakes >= 0.6.1 BuildRoot: %{_tmppath}/%{name}-%{version}-build %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_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %else BuildArch: noarch %endif @@ -50,14 +53,18 @@ Flake8 runs all the tools by launching the single ``flake8`` script. %setup -q -n flake8-%{version} %build -CFLAGS="%{optflags}" python setup.py build +python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%check +python setup.py test + %files %defattr(-,root,root,-) -/usr/bin/flake8 +%doc LICENSE README.rst +%{_bindir}/flake8 %{python_sitelib}/* %changelog diff --git a/python3-flake8.changes b/python3-flake8.changes index ff38b0f..f820057 100644 --- a/python3-flake8.changes +++ b/python3-flake8.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 24 09:07:31 UTC 2013 - speilicke@suse.com + +- Spec file cleanup +- Run testsuite +- Add LICENSE (for legal) + ------------------------------------------------------------------- Sun Apr 21 23:40:09 UTC 2013 - dmueller@suse.com diff --git a/python3-flake8.spec b/python3-flake8.spec index 6e6bc0b..80a7b5b 100644 --- a/python3-flake8.spec +++ b/python3-flake8.spec @@ -25,10 +25,14 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-distribute -BuildRequires: python3-pyflakes -Requires: python3-pyflakes >= 0.6.1 -Requires: python3-pep8 >= 1.4.3 -Requires: python3-mccabe >= 0.2 +# Test requirements: +BuildRequires: python3-mccabe >= 0.2 +BuildRequires: python3-nose +BuildRequires: python3-pep8 >= 1.4.3 +BuildRequires: python3-pyflakes >= 0.6.1 +Requires: python3-mccabe >= 0.2 +Requires: python3-pep8 >= 1.4.3 +Requires: python3-pyflakes >= 0.6.1 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -45,14 +49,20 @@ Flake8 runs all the tools by launching the single ``flake8`` script. %setup -q -n flake8-%{version} %build -CFLAGS="%{optflags}" python3 setup.py build +python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +# Avoid file conflict with Python-2.x version: +mv %{_bindir}/flake8{,-%{py_ver}} + +%check +python3 setup.py test %files %defattr(-,root,root,-) -/usr/bin/flake8 +%doc LICENSE README.rst +%{_bindir}/flake8-%{py_ver}} %{python3_sitelib}/* %changelog