14
0

Accepting request 701752 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/701752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-gammu?expand=0&rev=8
This commit is contained in:
2019-05-13 12:50:07 +00:00
committed by Git OBS Bridge
4 changed files with 32 additions and 30 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8938af9a92804028e729f68a2e23ccbde525590a4cdc2f43e59d490855a05db6
size 119760

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:efca72146ef5a5f9c7e7763374f28a3f15c6e80a0b7f07ce4fda52863b0cd4d2
size 119731

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 9 07:55:14 UTC 2019 - pgajdos@suse.com
- version update to 2.12
* meta and doc changes
- convert to singlespec
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 7 10:42:13 UTC 2018 - ecsos@opensuse.org Sun Jan 7 10:42:13 UTC 2018 - ecsos@opensuse.org

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-python-gammu # spec file for package python-python-gammu
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,28 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-gammu Name: python-python-gammu
Version: 2.11 Version: 2.12
Release: 0 Release: 0
Summary: Python module to communicate with mobile phones Summary: Python module to communicate with mobile phones
License: GPL-2.0+ License: GPL-2.0-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://wammu.eu/python-gammu/ URL: http://wammu.eu/python-gammu/
Source: https://dl.cihar.com/python-gammu/python-gammu-%{version}.tar.bz2 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: gammu-devel >= 1.37.90
BuildRequires: libdbi-drivers-dbd-sqlite3 BuildRequires: libdbi-drivers-dbd-sqlite3
BuildRequires: pkg-config BuildRequires: pkgconfig
BuildRequires: python-devel BuildRequires: python-rpm-macros
BuildRequires: python-setuptools Obsoletes: python-gammu < %{version}
Obsoletes: python-gammu < %version Provides: python-gammu = %{version}
Provides: python-gammu = %version %python_subpackages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%description %description
This provides gammu module, that can work with any phone Gammu This provides gammu module, that can work with any phone Gammu
@@ -44,25 +43,21 @@ supports - many Nokias, Siemens, Alcatel, ...
%setup -q -n python-gammu-%{version} %setup -q -n python-gammu-%{version}
%build %build
CFLAGS="%{optflags}" python setup.py build export CFLAGS="%{optflags}"
%python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%check %check
# Need to limit tests due to brekage of libdbi # Need to limit tests due to brekage of libdbi
python setup.py test \ rm test/test_smsd.py
-s test.test_errors \ export LANG=en_US.UTF-8
-s test.test_config \ %python_expand $python setup.py test -s test.test_dummy
-s test.test_dummy \
-s test.test_sms \
-s test.test_worker \
-s test.test_backup \
-s test.test_data
%files %files %{python_files}
%defattr(-,root,root,-) %license COPYING
%doc COPYING README.rst AUTHORS examples/ %doc README.rst AUTHORS examples/
%{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog