diff --git a/pkgconfig-1.1.0.tar.gz b/pkgconfig-1.1.0.tar.gz deleted file mode 100644 index 1fc016a..0000000 --- a/pkgconfig-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:709daaf077aa2b33bedac12706373412c3683576a43013bbaa529fc2769d80df -size 3887 diff --git a/pkgconfig-1.2.2.tar.gz b/pkgconfig-1.2.2.tar.gz new file mode 100644 index 0000000..b13cc88 --- /dev/null +++ b/pkgconfig-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3685ba02a9b72654a764b728b559f327e1dbd7dc6ebc310a1bd429666ee202aa +size 5305 diff --git a/python-pkgconfig.changes b/python-pkgconfig.changes index ef2adc9..819cb10 100644 --- a/python-pkgconfig.changes +++ b/python-pkgconfig.changes @@ -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 diff --git a/python-pkgconfig.spec b/python-pkgconfig.spec index 1add8a7..72d8e34 100644 --- a/python-pkgconfig.spec +++ b/python-pkgconfig.spec @@ -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}/*