- 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
This commit is contained in:
Sascha Peilicke 2013-04-24 09:04:57 +00:00 committed by Git OBS Bridge
parent d3101d4b0e
commit d721d1d9e6
4 changed files with 44 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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