11
0

Accepting request 115687 from home:TheBlackCat:branches:devel:languages:python

Add python 3 package (forwarded request 115686 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/115687
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyflakes?expand=0&rev=4
This commit is contained in:
Todd R
2012-04-26 10:57:16 +00:00
committed by Git OBS Bridge
parent 04226a391a
commit 236f9b26a3
3 changed files with 65 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 26 09:07:39 UTC 2012 - toddrme2178@gmail.com
- Add python 3 package
-------------------------------------------------------------------
Mon Feb 13 02:25:25 UTC 2012 - alexandre@exatati.com.br

5
python3-pyflakes.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Apr 26 09:07:39 UTC 2012 - toddrme2178@gmail.com
- Add python 3 package

55
python3-pyflakes.spec Normal file
View File

@@ -0,0 +1,55 @@
#
# spec file for package python3-pyflakes
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: python3-pyflakes
Version: 0.5.0
Release: 0
Url: https://launchpad.net/pyflakes
Summary: Passive checker of Python 3 programs
License: MIT
Group: Development/Languages/Python
Source: pyflakes-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-devel
Requires: python3 >= %{py3_ver}
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%description
Pyflakes is program to analyze Python programs and detect various errors. It
works by parsing the source file, not importing it, so it is safe to use on
modules with side effects. It's also much faster.
%prep
%setup -q -n pyflakes-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-python%{py3_ver}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%{_bindir}/pyflakes-python%{py3_ver}
%changelog