From 8ded316f1be649d102f8a754985ffd6eb86afc27cc929af46a1c0acedfd1229e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 9 May 2019 09:43:22 +0000 Subject: [PATCH] Accepting request 701735 from home:pgajdos - 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 --- python-gammu-2.11.tar.bz2 | 3 --- python-gammu-2.12.tar.bz2 | 3 +++ python-python-gammu.changes | 7 ++++++ python-python-gammu.spec | 49 +++++++++++++++++-------------------- 4 files changed, 32 insertions(+), 30 deletions(-) delete mode 100644 python-gammu-2.11.tar.bz2 create mode 100644 python-gammu-2.12.tar.bz2 diff --git a/python-gammu-2.11.tar.bz2 b/python-gammu-2.11.tar.bz2 deleted file mode 100644 index db6dec6..0000000 --- a/python-gammu-2.11.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8938af9a92804028e729f68a2e23ccbde525590a4cdc2f43e59d490855a05db6 -size 119760 diff --git a/python-gammu-2.12.tar.bz2 b/python-gammu-2.12.tar.bz2 new file mode 100644 index 0000000..9beaf7e --- /dev/null +++ b/python-gammu-2.12.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efca72146ef5a5f9c7e7763374f28a3f15c6e80a0b7f07ce4fda52863b0cd4d2 +size 119731 diff --git a/python-python-gammu.changes b/python-python-gammu.changes index 69b3e44..e0452b2 100644 --- a/python-python-gammu.changes +++ b/python-python-gammu.changes @@ -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 diff --git a/python-python-gammu.spec b/python-python-gammu.spec index 80d2266..d7d6e65 100644 --- a/python-python-gammu.spec +++ b/python-python-gammu.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 -Version: 2.11 +Version: 2.12 Release: 0 Summary: Python module to communicate with mobile phones -License: GPL-2.0+ +License: GPL-2.0-or-later 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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: gammu-devel >= 1.37.90 BuildRequires: libdbi-drivers-dbd-sqlite3 -BuildRequires: pkg-config -BuildRequires: python-devel -BuildRequires: python-setuptools -Obsoletes: python-gammu < %version -Provides: python-gammu = %version -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 +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 @@ -44,25 +43,21 @@ supports - many Nokias, Siemens, Alcatel, ... %setup -q -n python-gammu-%{version} %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check # Need to limit tests due to brekage of libdbi -python setup.py test \ - -s test.test_errors \ - -s test.test_config \ - -s test.test_dummy \ - -s test.test_sms \ - -s test.test_worker \ - -s test.test_backup \ - -s test.test_data +rm test/test_smsd.py +export LANG=en_US.UTF-8 +%python_expand $python setup.py test -s test.test_dummy -%files -%defattr(-,root,root,-) -%doc COPYING README.rst AUTHORS examples/ +%files %{python_files} +%license COPYING +%doc README.rst AUTHORS examples/ %{python_sitearch}/* %changelog