From 60143704cb0ac1450b9579a8921001aa7c044d8f12ea810ef050345b86550dba Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Jun 2018 13:20:33 +0000 Subject: [PATCH] Accepting request 618964 from devel:languages:python:singlespec-staging Clean SPEC file OBS-URL: https://build.opensuse.org/request/show/618964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-espeak?expand=0&rev=7 --- python-espeak.changes | 11 +++++++++++ python-espeak.spec | 28 +++++++++++++++------------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/python-espeak.changes b/python-espeak.changes index 75b041e..5e791ba 100644 --- a/python-espeak.changes +++ b/python-espeak.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Jun 25 13:19:42 UTC 2018 - mcepl@suse.com + +- Clean SPEC file + +------------------------------------------------------------------- +Thu Aug 24 13:38:19 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Sat Jan 25 02:24:58 UTC 2014 - os-dev@jacraig.com @@ -17,3 +27,4 @@ Sat Jan 21 05:41:49 UTC 2012 - malcolmlewis@opensuse.org - Initial build. + diff --git a/python-espeak.spec b/python-espeak.spec index ac37597..a448a2a 100644 --- a/python-espeak.spec +++ b/python-espeak.spec @@ -1,7 +1,7 @@ # # spec file for package python-espeak # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2012 Malcolm J Lewis # # All modifications and additions to the file contributed by third parties @@ -17,21 +17,22 @@ # +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-espeak Version: 0.5 Release: 0 Summary: Python bindings for espeak -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Python -Url: https://launchpad.net/python-espeak +URL: https://launchpad.net/python-espeak Source0: https://launchpad.net/python-espeak/trunk/0.5/+download/python-espeak-0.5.tar.gz +BuildRequires: %{python_module devel} BuildRequires: espeak-devel BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%py_requires -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +BuildRequires: python-rpm-macros +%python_subpackages %description Simple to use yet complete Python bindings for the eSpeak speech synthesizer. @@ -40,16 +41,17 @@ Simple to use yet complete Python bindings for the eSpeak speech synthesizer. %setup -q %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} +%python_install %fdupes %{buildroot} -%files -%defattr(-,root,root) -%doc COPYING NEWS +%files %{python_files} +%license COPYING +%doc NEWS %{python_sitearch}/espeak/ -%{python_sitearch}/python_espeak-%{version}-py%{py_ver}.egg-info +%{python_sitearch}/python_espeak-%{version}-py%{python_version}.egg-info %changelog