6c20141
%global realname grabserial
6c20141
6c20141
Name: python-grabserial
6c20141
Version: 1.8.1
6c20141
Release: 1%{?dist}
6c20141
Summary: Reads a serial port and writes data to standard output
6c20141
6c20141
License: GPLv2
6c20141
URL: http://elinux.org/Grabserial
6c20141
Source0: https://github.com/tbird20d/grabserial/releases/download/v%{version}/%{realname}-%{version}.tar.gz
6c20141
6c20141
BuildArch: noarch
6c20141
BuildRequires: python-setuptools
6c20141
BuildRequires: python2-devel
6c20141
Requires: pyserial
6c20141
6c20141
%description
6c20141
Grabserial reads a serial port and writes the data to standard output.The main
6c20141
purpose of this tool is to collect messages written to the serial console from
6c20141
a target board running Linux, and save the messages on a host machine.
6c20141
6c20141
%prep
6c20141
%setup -qn %{realname}-%{version}
6c20141
6c20141
%build
6c20141
%{__python2} setup.py build
6c20141
6c20141
%install
6c20141
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
6c20141
6c20141
%files
6c20141
%doc README
6c20141
%license LICENSE
6c20141
%{_bindir}/grabserial
6c20141
%{python2_sitelib}/*.egg-info
6c20141
6c20141
%changelog
6c20141
* Fri Apr 24 2015 Sinny Kumari <ksinny@gmail.com> - 1.8.1-1
6c20141
- Packaging 1.8.1 version
6c20141
6c20141
* Sun Apr 12 2015 Sinny Kumari <ksinny@gmail.com> - 1.7.1-2
6c20141
- Correcting License to GPLv2+
6c20141
- Cosmetic change in file section
6c20141
6c20141
* Sun Mar 15 2015 Sinny Kumari <ksinny@gmail.com> - 1.7.1-1
6c20141
- Initial Fedora packaging of grabserial