forked from pool/python-flake8
- 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:
committed by
Git OBS Bridge
parent
d3101d4b0e
commit
d721d1d9e6
@@ -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
|
Sun Apr 21 23:40:09 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -25,14 +25,17 @@ Group: Development/Languages/Python
|
|||||||
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
BuildRequires: python-pyflakes
|
# Test requirements:
|
||||||
Requires: python-pyflakes >= 0.6.1
|
BuildRequires: python-mccabe >= 0.2
|
||||||
Requires: python-pep8 >= 1.4.3
|
BuildRequires: python-nose
|
||||||
Requires: python-mccabe >= 0.2
|
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
|
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
|
||||||
@@ -50,14 +53,18 @@ Flake8 runs all the tools by launching the single ``flake8`` script.
|
|||||||
%setup -q -n flake8-%{version}
|
%setup -q -n flake8-%{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}
|
||||||
|
|
||||||
|
%check
|
||||||
|
python setup.py test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/usr/bin/flake8
|
%doc LICENSE README.rst
|
||||||
|
%{_bindir}/flake8
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -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
|
Sun Apr 21 23:40:09 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,14 @@ Group: Development/Languages/Python
|
|||||||
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-distribute
|
BuildRequires: python3-distribute
|
||||||
BuildRequires: python3-pyflakes
|
# Test requirements:
|
||||||
Requires: python3-pyflakes >= 0.6.1
|
BuildRequires: python3-mccabe >= 0.2
|
||||||
Requires: python3-pep8 >= 1.4.3
|
BuildRequires: python3-nose
|
||||||
Requires: python3-mccabe >= 0.2
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@@ -45,14 +49,20 @@ Flake8 runs all the tools by launching the single ``flake8`` script.
|
|||||||
%setup -q -n flake8-%{version}
|
%setup -q -n flake8-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" python3 setup.py build
|
python3 setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/usr/bin/flake8
|
%doc LICENSE README.rst
|
||||||
|
%{_bindir}/flake8-%{py_ver}}
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user