Accepting request 353366 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/353366 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyflakes?expand=0&rev=17
This commit is contained in:
commit
5d4b42815b
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:02691c23ce699f252874b7c27f14cf26e3d4e82b58e5d584f000b7ab5be36a5f
|
|
||||||
size 34785
|
|
3
pyflakes-1.0.0.tar.gz
Normal file
3
pyflakes-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f39e33a4c03beead8774f005bd3ecf0c3f2f264fa0201de965fce0aff1d34263
|
||||||
|
size 35365
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 13 09:57:59 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- update to version 1.0.0:
|
||||||
|
* Python 3.5 support. async/await statements in particular.
|
||||||
|
* test_api.py works on Windows now
|
||||||
|
* Eliminated a false UnusedImport warning when the name has been
|
||||||
|
declared "global"
|
||||||
|
- Implement update-alternatives.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 10 22:31:39 UTC 2015 - opensuse@cboltz.de
|
Tue Nov 10 22:31:39 UTC 2015 - opensuse@cboltz.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyflakes
|
# spec file for package python-pyflakes
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-pyflakes
|
Name: python-pyflakes
|
||||||
Version: 0.9.2
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://launchpad.net/pyflakes
|
Url: https://launchpad.net/pyflakes
|
||||||
Summary: Passive checker of Python programs
|
Summary: Passive checker of Python programs
|
||||||
@ -29,13 +29,13 @@ BuildRequires: python-devel
|
|||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
# the pkg_resources module is required at runtime
|
# the pkg_resources module is required at runtime
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
%if 0%{?suse_version}
|
Requires(post): update-alternatives
|
||||||
%py_requires
|
Requires(postun): update-alternatives
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} <= 1110
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
%else
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pyflakes is program to analyze Python programs and detect various errors. It
|
Pyflakes is program to analyze Python programs and detect various errors. It
|
||||||
@ -51,11 +51,29 @@ python setup.py build
|
|||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
# Prepare for update-alternatives usage
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{py_ver}
|
||||||
|
ln -s -f %{_sysconfdir}/alternatives/pyflakes %{buildroot}%{_bindir}/pyflakes
|
||||||
|
# create a dummy target for /etc/alternatives/pyflakes
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/pyflakes
|
||||||
|
|
||||||
|
%post
|
||||||
|
"%_sbindir/update-alternatives" \
|
||||||
|
--install %{_bindir}/pyflakes pyflakes %{_bindir}/pyflakes-%{py_ver} 30
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
"%_sbindir/update-alternatives" --remove pyflakes %{_bindir}/pyflakes-%{py_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE NEWS.txt README.rst AUTHORS
|
%doc LICENSE NEWS.txt README.rst AUTHORS
|
||||||
|
%{_bindir}/pyflakes
|
||||||
|
%{_bindir}/pyflakes-%{py_ver}
|
||||||
|
%ghost %{_sysconfdir}/alternatives/pyflakes
|
||||||
%{python_sitelib}/pyflakes/
|
%{python_sitelib}/pyflakes/
|
||||||
%{python_sitelib}/pyflakes-%{version}-py*.egg-info
|
%{python_sitelib}/pyflakes-%{version}-py*.egg-info
|
||||||
%{_bindir}/pyflakes
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user