From 8ace2179ada1daf979cc4a606fe592425f1744d38192f068307302d82b2315a0 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Wed, 19 Jul 2017 17:42:00 +0000 Subject: [PATCH] Accepting request 511439 from home:seanmarlow:branches:devel:languages:python Use py2pack package from PyPi instead of Github. OBS-URL: https://build.opensuse.org/request/show/511439 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-multidict?expand=0&rev=2 --- multidict-3.1.1.tar.gz | 4 ++-- python-multidict.changes | 7 +++++++ python-multidict.spec | 10 ++++++---- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/multidict-3.1.1.tar.gz b/multidict-3.1.1.tar.gz index c47aefe..9c90159 100644 --- a/multidict-3.1.1.tar.gz +++ b/multidict-3.1.1.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ba763b09dfa81bea4abd6e4498101ba830b699dab9ec85238817d67f534b33aa -size 33745 +oid sha256:d77fde7a398a6b5ee5788e4da6b58a377019750af08bc31ab73ac53e539446c0 +size 118700 diff --git a/python-multidict.changes b/python-multidict.changes index a5aad45..6aec219 100644 --- a/python-multidict.changes +++ b/python-multidict.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jul 19 14:41:55 UTC 2017 - sean.marlow@suse.com + +- Use package from PyPi via py2pack instead of Github. + The packages are not the same. +- Remove compiled shared libraries from package prior to build. + ------------------------------------------------------------------- Thu Jul 13 22:28:39 UTC 2017 - sean.marlow@suse.com diff --git a/python-multidict.spec b/python-multidict.spec index 72b6146..681f10c 100644 --- a/python-multidict.spec +++ b/python-multidict.spec @@ -1,5 +1,5 @@ # -# spec file for package python3-multidict +# spec file for package python-multidict # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -27,10 +27,10 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/aio-libs/multidict Source: https://files.pythonhosted.org/packages/source/m/multidict/multidict-%{version}.tar.gz -BuildRequires: python-rpm-macros +BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module Cython} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages @@ -46,6 +46,8 @@ The code was extracted from the aiohttp library. %build export CFLAGS="%{optflags}" +# Package contains pre-compiled shared libraries +rm -f multidict/*.so %python_build %install @@ -53,7 +55,7 @@ export CFLAGS="%{optflags}" %check %if %{with test} -# Tests have problems importing the *so file +# Tests have import problems %endif %files %{python_files}