Accepting request 489348 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/489348
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pkgconfig?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-05-02 06:54:33 +00:00 committed by Git OBS Bridge
commit 106b789e1d
4 changed files with 33 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:709daaf077aa2b33bedac12706373412c3683576a43013bbaa529fc2769d80df
size 3887

3
pkgconfig-1.2.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3685ba02a9b72654a764b728b559f327e1dbd7dc6ebc310a1bd429666ee202aa
size 5305

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 19 15:33:55 UTC 2017 - toddrme2178@gmail.com
- Update to version 1.1.0
+ No changelog available
- Implement single-spec version.
-------------------------------------------------------------------
Wed Nov 27 21:38:57 UTC 2013 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pkgconfig
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,25 +15,29 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pkgconfig
Version: 1.1.0
Version: 1.2.2
Release: 0
License: MIT
Summary: Interface Python with pkg-config
Url: http://github.com/matze/pkgconfig
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/p/pkgconfig/pkgconfig-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements (wrongly marked as install req):
BuildRequires: python-nose
Source: https://files.pythonhosted.org/packages/source/p/pkgconfig/pkgconfig-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with tests}
# Test requirements
BuildRequires: %{python_module nose}
%endif
Requires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
A Python module to interface with the pkg-config
@ -43,15 +47,18 @@ command line tool and supports Python 2.6+.
%setup -q -n pkgconfig-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
#python setup.py test
%if %{with tests}
%check
%python_exec setup.py test
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*