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
This commit is contained in:
Thomas Bechtold 2017-07-19 17:42:00 +00:00 committed by Git OBS Bridge
parent e6620a25d0
commit 8ace2179ad
3 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:ba763b09dfa81bea4abd6e4498101ba830b699dab9ec85238817d67f534b33aa oid sha256:d77fde7a398a6b5ee5788e4da6b58a377019750af08bc31ab73ac53e539446c0
size 33745 size 118700

View File

@ -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 Thu Jul 13 22:28:39 UTC 2017 - sean.marlow@suse.com

View File

@ -1,5 +1,5 @@
# #
# spec file for package python3-multidict # spec file for package python-multidict
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
@ -27,10 +27,10 @@ License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/aio-libs/multidict Url: https://github.com/aio-libs/multidict
Source: https://files.pythonhosted.org/packages/source/m/multidict/multidict-%{version}.tar.gz 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 devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module Cython} BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages %python_subpackages
@ -46,6 +46,8 @@ The code was extracted from the aiohttp library.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
# Package contains pre-compiled shared libraries
rm -f multidict/*.so
%python_build %python_build
%install %install
@ -53,7 +55,7 @@ export CFLAGS="%{optflags}"
%check %check
%if %{with test} %if %{with test}
# Tests have problems importing the *so file # Tests have import problems
%endif %endif
%files %{python_files} %files %{python_files}