forked from pool/python-python-gammu
- Update to 3.0
- Add support for asyncio in the gammu worker
- Dropped support for Python 2.
- Fix rpmlint errors.
- Run spec-cleaner.
- version update to 2.12
* meta and doc changes
- convert to singlespec
- Update to 2.11
* Add support for the USSD in SMSD.
- Update to 2.10
* Testsuite compatibility with Gammu 1.38.5.
- Update to 2.8
* Make parameters to CancelCall and AnswerCall optional.
* Added support for UTF-16 Unicode chars (emojis).
- Update to 2.7
* Compatibility with Gammu >= 1.37.90
- change source url to url that work
- Update to 2.5:
* Compatibility with Gammu >= 1.36.7
- Update to 2.4:
* Fixed possible crash when initializing SMSD with invalid parameters.
* Fixed crash on handling diverts on certain architectures.
- Update to 2.3:
* License changed tp GPL version 2 or later.
* Documentation improvements.
- update to 2.2
* Documentation improvements.
* Code cleanups.
- Add Obsoletes/Provides to handle upgrade path for python-gammu
- Update to 2.1:
* Include data required for tests in tarball.
* Include NEWS.rst in tarball.
* Fixed possible crash when changing debug file.
* Fixed various errors found by coverity.
- Enabled testsuite
- Initial packaging, upstream has split Python module from Gammu sources
OBS-URL: https://build.opensuse.org/request/show/819181
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gammu?expand=0&rev=19
66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-python-gammu
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-python-gammu
|
|
Version: 3.0
|
|
Release: 0
|
|
Summary: Python module to communicate with mobile phones
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://wammu.eu/python-gammu/
|
|
Source: https://dl.cihar.com/python-gammu/python-gammu-%{version}.tar.bz2
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: gammu-devel >= 1.37.90
|
|
BuildRequires: libdbi-drivers-dbd-sqlite3
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
Obsoletes: python-gammu < %{version}
|
|
Provides: python-gammu = %{version}
|
|
%python_subpackages
|
|
|
|
%description
|
|
This provides gammu module, that can work with any phone Gammu
|
|
supports - many Nokias, Siemens, Alcatel, ...
|
|
|
|
%prep
|
|
%setup -q -n python-gammu-%{version}
|
|
find . -type f -name "*.py" -exec sed -i -e 's|\/usr\/bin\/env python|\/usr\/bin\/python|g' {} \;
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%check
|
|
# Need to limit tests due to brekage of libdbi
|
|
rm test/test_smsd.py
|
|
export LANG=en_US.UTF-8
|
|
%python_expand $python setup.py test -s test.test_dummy
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc README.rst AUTHORS examples/
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|