14
0

Accepting request 174583 from home:HighwayStar:branches:devel:languages:python

python3 package added
update to 2.6 version
spec file cleaned from old TODO comments

OBS-URL: https://build.opensuse.org/request/show/174583
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=7
This commit is contained in:
Todd R
2013-05-08 09:07:02 +00:00
committed by Git OBS Bridge
parent 5231750531
commit 5e81eb4ea2
6 changed files with 112 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyserial
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@@ -16,9 +16,8 @@
#
Name: python-pyserial
Version: 2.5
Version: 2.6
Release: 0
Url: http://pyserial.sourceforge.net/
Summary: Python Serial Port Extension
@@ -26,8 +25,8 @@ License: Python-2.0
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-Sphinx
BuildRequires: python-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
@@ -35,8 +34,7 @@ BuildArch: noarch
%endif
%endif
Provides: python-serial = %{version}
#TODO: Change back to '<' after next version update
Obsoletes: python-serial <= %{version}
Obsoletes: python-serial < %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
@@ -44,7 +42,7 @@ Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython
%prep
%setup -q -n pyserial-%{version}
sed -i "1d" serial/{serialposix,__init__}.py # Fix non-executable scripts
sed -i "s|#\!\/usr\/bin\/env python||" serial/{serialposix,__init__}.py # Fix non-executable scripts
sed -i "s/\r//" examples/port_publisher.py # Fix EOL encoding
%build
@@ -58,6 +56,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt examples documentation/_build/*
%{_bindir}/miniterm.py
%{python_sitelib}/*
%{python_sitelib}/serial/
%{python_sitelib}/pyserial-%{version}-py%{py_ver}.egg-info
%changelog