1
0

Accepting request 142780 from devel:languages:python

Removed openSUSE 11.4 spec file workarounds (forwarded request 142753 from TheBlackCat) (forwarded request 142770 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/142780
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyflakes?expand=0&rev=4
This commit is contained in:
Stephan Kulow 2012-11-28 13:34:09 +00:00 committed by Git OBS Bridge
commit e03d71d1b2
2 changed files with 6 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 22 14:18:55 UTC 2012 - toddrme2178@gmail.com
- Removed openSUSE 11.4 spec file workarounds
-------------------------------------------------------------------
Fri Apr 27 14:07:19 UTC 2012 - toddrme2178@gmail.com

View File

@ -24,19 +24,10 @@ License: MIT
Group: Development/Languages/Python
Source: pyflakes-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-2to3
BuildRequires: python3-devel
%if 0%{?suse_version} <= 1140
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)}
%ifarch x86_64
# to allow ownership of noarch python directories
BuildRequires: python3-32bit
%endif
%endif
BuildArch: noarch
Requires: python3 >= %{py3_ver}
Requires: python(abi) = %{py3_ver}
%description
Pyflakes is program to analyze Python programs and detect various errors. It
@ -57,8 +48,5 @@ mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-python%{py3_v
%defattr(-,root,root,-)
%{_bindir}/pyflakes-python%{py3_ver}
%{python3_sitelib}/*
%if 0%{?suse_version} <= 1140
%dir %{python3_sitelib}
%endif
%changelog