2015-04-14 11:03:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-python-gammu
|
|
|
|
#
|
2025-06-10 13:00:29 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2015-04-14 11:03:46 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-05-09 09:43:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-15 09:39:37 +00:00
|
|
|
#
|
2015-04-14 11:03:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-gammu
|
2022-01-16 12:42:24 +00:00
|
|
|
Version: 3.2.4
|
2015-04-14 11:03:46 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python module to communicate with mobile phones
|
2019-05-09 09:43:22 +00:00
|
|
|
License: GPL-2.0-or-later
|
2015-04-14 11:03:46 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-07-07 10:20:22 +00:00
|
|
|
URL: https://wammu.eu/python-gammu/
|
2021-08-20 07:43:59 +00:00
|
|
|
Source: https://github.com/gammu/python-gammu/archive/refs/tags/%{version}.tar.gz#/python-gammu-%{version}.tar.gz
|
2019-05-09 09:43:22 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2025-06-10 13:00:29 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-05-09 09:43:22 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-10 13:00:29 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2016-12-06 12:06:12 +00:00
|
|
|
BuildRequires: gammu-devel >= 1.37.90
|
2015-04-15 09:39:37 +00:00
|
|
|
BuildRequires: libdbi-drivers-dbd-sqlite3
|
2019-05-09 09:43:22 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Obsoletes: python-gammu < %{version}
|
|
|
|
Provides: python-gammu = %{version}
|
|
|
|
%python_subpackages
|
2015-04-14 11:03:46 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This provides gammu module, that can work with any phone Gammu
|
|
|
|
supports - many Nokias, Siemens, Alcatel, ...
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n python-gammu-%{version}
|
2020-07-07 10:20:22 +00:00
|
|
|
find . -type f -name "*.py" -exec sed -i -e 's|\/usr\/bin\/env python|\/usr\/bin\/python|g' {} \;
|
2015-04-14 11:03:46 +00:00
|
|
|
|
|
|
|
%build
|
2019-05-09 09:43:22 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2025-06-10 13:00:29 +00:00
|
|
|
%pyproject_wheel
|
2015-04-14 11:03:46 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-10 13:00:29 +00:00
|
|
|
%pyproject_install
|
2015-04-14 11:03:46 +00:00
|
|
|
|
|
|
|
%check
|
2015-04-15 09:39:37 +00:00
|
|
|
# Need to limit tests due to brekage of libdbi
|
2019-05-09 09:43:22 +00:00
|
|
|
rm test/test_smsd.py
|
|
|
|
export LANG=en_US.UTF-8
|
2021-05-28 09:39:06 +00:00
|
|
|
mv gammu gammu.hide
|
|
|
|
%pyunittest_arch discover -v
|
2015-04-14 11:03:46 +00:00
|
|
|
|
2019-05-09 09:43:22 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license COPYING
|
|
|
|
%doc README.rst AUTHORS examples/
|
2025-06-10 13:00:29 +00:00
|
|
|
%{python_sitearch}/gammu
|
|
|
|
%{python_sitearch}/python[-_]gammu-%{version}*-info
|
2015-04-14 11:03:46 +00:00
|
|
|
|
|
|
|
%changelog
|