forked from pool/python-python-gammu
- version update to 2.12 * meta and doc changes - convert to singlespec OBS-URL: https://build.opensuse.org/request/show/701735 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gammu?expand=0&rev=17
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-python-gammu
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-python-gammu
|
|
Version: 2.12
|
|
Release: 0
|
|
Summary: Python module to communicate with mobile phones
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: http://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}
|
|
|
|
%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
|