forked from pool/python-pyserial
- Renamed to python-pyserial (from python-serial)
- Fixed mon-executable scripts and wrong EOL encoding rpmlint issues - update to 2.5 * python 3 compatibility * many bugfixes and features, see CHANGES.txt - build as noarch on newer distros - update to 2.4 * iterator interface * inter-character timeout * support for Jython and IronPython * bugfixes - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 2.2 - spec file cleanup - Initial creation of package python-serial (pyserial). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=1
This commit is contained in:
61
python-pyserial.spec
Normal file
61
python-pyserial.spec
Normal file
@@ -0,0 +1,61 @@
|
||||
#
|
||||
# spec file for package python-pyserial
|
||||
#
|
||||
# Copyright (c) 2011 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/
|
||||
#
|
||||
|
||||
Name: python-pyserial
|
||||
Version: 2.5
|
||||
Release: 0
|
||||
Url: http://pyserial.sourceforge.net/
|
||||
Summary: Python Serial Port Extension
|
||||
License: Python
|
||||
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
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
Provides: python-serial = %{version}
|
||||
#TODO: Change back to '<' after next version update
|
||||
Obsoletes: python-serial <= %{version}
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
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/\r//" examples/port_publisher.py # Fix EOL encoding
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
make -C documentation html && rm documentation/_build/html/.buildinfo # Build HTML documentation
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.txt LICENSE.txt README.txt examples documentation/_build/*
|
||||
%{_bindir}/miniterm.py
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user