Accepting request 844315 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/844315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pkgconfig?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2020-10-30 10:46:05 +00:00 committed by Git OBS Bridge
commit d96e5ace13
4 changed files with 19 additions and 7 deletions

View File

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

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:88d9ef0c4fee5f760b9ab500d94ef363644340e09f66481e36eb9275fce7a2f9
size 7000
oid sha256:97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f
size 5611

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 27 11:48:14 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Kill dephell dependency by using released sdist setup.py but
get testfile and data from Github
-------------------------------------------------------------------
Sun Aug 16 02:31:58 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@ -24,13 +24,15 @@ Summary: Interface Python with pkg-config
License: MIT
Group: Development/Languages/Python
URL: https://github.com/matze/pkgconfig
Source: https://github.com/matze/pkgconfig/archive/v%{version}.tar.gz#/pkgconfig-%{version}.tar.gz
# PyPI sdist has generated setup.py ..
Source0: https://files.pythonhosted.org/packages/source/p/pkgconfig/pkgconfig-%{version}.tar.gz
# .. get the tests from github
Source1: https://github.com/matze/pkgconfig/archive/v%{version}.tar.gz#/pkgconfig-%{version}-gh.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: python-dephell-rpm-macros
BuildRequires: python-rpm-macros
Requires: pkgconfig
BuildArch: noarch
@ -38,11 +40,11 @@ BuildArch: noarch
%description
A Python module to interface with the pkg-config
command line tool and supports Python 2.6+.
command line tool
%prep
%setup -q -n pkgconfig-%{version}
%dephell_gensetup
(cd ..; tar xf %{SOURCE1} pkgconfig-%{version}/{test_pkgconfig.py,data})
%build
%python_build
@ -57,6 +59,7 @@ command line tool and supports Python 2.6+.
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/pkgconfig
%{python_sitelib}/pkgconfig-%{version}*-info
%changelog