File python-gsmmodem.spec of Package python-gsmmodem
#
# spec file for package python-gsmmodem
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# 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-gsmmodem
Version: 0.9.0.git1402504704.834c68b
Release: 0
Summary: Control an attached GSM modem: send/receive SMS messages, handle calls, etc
License: LGPL-3.0+
Group: Development/Languages/Python
Url: https://github.com/faucamp/python-gsmmodem
Source: %{name}-%{version}.tar.xz
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-pyserial
Requires: python-pyserial
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
python-gsmmodem is a module that allows easy control of a GSM modem attached
to the system. It also includes a couple of useful commandline utilities for
interacting with a GSM modem.
Its features include:
- simple methods for sending SMS messages, checking signal level, etc
- easy-to-use API for starting and responding to USSD sessions and making voice calls
- handling incoming phone calls and received SMS messages via callback methods
- support for SMS PDU and text mode
- support for tracking SMS status reports
- wraps AT command errors into Python exceptions by default
- modular design; you easily issue your own AT commands to the modem with error
(with error checking), or read/write directly from/to the modem if you prefer
- comprehensive test suite
Bundled utilities:
- GSMTerm: an easy-to-use serial terminal for communicating with an attached GSM
modem. It features command completion, built-in help for many AT commands,
history, context-aware prompt, etc.
- sendsms.py: a simple command line script to send SMS messages
- identify-modem.py: simple utility to identify attached modem. Can also be used to
provide debug information used for development of python-gsmmodem.
%prep
%setup -q
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog AUTHORS
%{_bindir}/gsmterm.py
%{_bindir}/sendsms.py
%{_bindir}/identify-modem.py
%{python_sitelib}/*
%changelog