From b12ddac6a980d8757635617637a6545479e429923ce60822b5c9b3ea42e92a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 11:38:41 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkgconfig?expand=0&rev=24 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pkgconfig-1.5.5-gh.tar.gz | 3 ++ pkgconfig-1.5.5.tar.gz | 3 ++ python-pkgconfig.changes | 85 +++++++++++++++++++++++++++++++++++++++ python-pkgconfig.spec | 67 ++++++++++++++++++++++++++++++ 6 files changed, 182 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pkgconfig-1.5.5-gh.tar.gz create mode 100644 pkgconfig-1.5.5.tar.gz create mode 100644 python-pkgconfig.changes create mode 100644 python-pkgconfig.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pkgconfig-1.5.5-gh.tar.gz b/pkgconfig-1.5.5-gh.tar.gz new file mode 100644 index 0000000..aed671f --- /dev/null +++ b/pkgconfig-1.5.5-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58ee1926b23ddb766a55eb9932441201a60e8e476d3798d0c5def167604f3b6c +size 7331 diff --git a/pkgconfig-1.5.5.tar.gz b/pkgconfig-1.5.5.tar.gz new file mode 100644 index 0000000..347bc69 --- /dev/null +++ b/pkgconfig-1.5.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:deb4163ef11f75b520d822d9505c1f462761b4309b1bb713d08689759ea8b899 +size 6082 diff --git a/python-pkgconfig.changes b/python-pkgconfig.changes new file mode 100644 index 0000000..76163d3 --- /dev/null +++ b/python-pkgconfig.changes @@ -0,0 +1,85 @@ +------------------------------------------------------------------- +Tue Jun 3 11:38:26 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Jun 10 17:49:48 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Jan 5 10:39:45 UTC 2022 - Dirk Müller + +- update to 1.5.5: + * drop python 2.x support + * Added Support for Linux On Power + * Document configure_extension in README. + * test_configure_extension: sorted expected + +------------------------------------------------------------------- +Tue Oct 27 11:48:14 UTC 2020 - Benjamin Greiner + +- 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 + +- Activate test suite, replacing nose with pytest + +------------------------------------------------------------------- +Fri Oct 18 12:17:58 UTC 2019 - Marketa Calabkova + +- update to 1.5.1 + * Use poetry instead of setuptools directly + * Fix #42: raise exception if package is missing + * Fix version parsing for openssl-like version numbers, fixes #32 + * Add boolean static keyword to output private libraries as well + * Raise original OSError as well +- Do not launch tests (https://github.com/matze/pkgconfig/issues/45) + +------------------------------------------------------------------- +Thu Apr 11 02:38:27 UTC 2019 - John Vandenberg + +- Remove unnecessary bcond tests +- Add missing test dependency pkgconfig +- Fix the test suite which was running 0 tests + +------------------------------------------------------------------- +Tue Dec 4 12:51:34 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Apr 13 21:04:53 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + +- update to version 1.3.1: + * Fix compatibility problems with Python 2.6 + +- changes from version 1.3.0: + * Add variables() API to query defined variables + * Disable Python 3.2 and enable Python 3.5 and 3.6 tests + * Fix #16: handle spaces of values in .pc files correctly + +------------------------------------------------------------------- +Wed Apr 19 15:33:55 UTC 2017 - toddrme2178@gmail.com + +- Update to version 1.2.2 + + No changelog available +- Implement single-spec version. + +------------------------------------------------------------------- +Wed Nov 27 21:38:57 UTC 2013 - p.drouand@gmail.com + +- Update to version 1.1.0 + + No changelog available + +------------------------------------------------------------------- +Wed Oct 16 08:45:06 UTC 2013 - speilicke@suse.com + +- Initial version + diff --git a/python-pkgconfig.spec b/python-pkgconfig.spec new file mode 100644 index 0000000..8310b3d --- /dev/null +++ b/python-pkgconfig.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-pkgconfig +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pkgconfig +Version: 1.5.5 +Release: 0 +Summary: Interface Python with pkg-config +License: MIT +Group: Development/Languages/Python +URL: https://github.com/matze/pkgconfig +# 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 pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: openssl-devel +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +Requires: pkgconfig +BuildArch: noarch +%python_subpackages + +%description +A Python module to interface with the pkg-config +command line tool + +%prep +%setup -q -n pkgconfig-%{version} +(cd ..; tar xf %{SOURCE1} pkgconfig-%{version}/{test_pkgconfig.py,data}) + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/pkgconfig +%{python_sitelib}/pkgconfig-%{version}*-info + +%changelog From 973961c87b2578ec009b59732cb28b9ead6628693e270650721d1c042f3687a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 13:11:01 +0000 Subject: [PATCH 2/2] fix build deps OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pkgconfig?expand=0&rev=25 --- python-pkgconfig.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pkgconfig.spec b/python-pkgconfig.spec index 8310b3d..9403362 100644 --- a/python-pkgconfig.spec +++ b/python-pkgconfig.spec @@ -29,8 +29,8 @@ Source0: https://files.pythonhosted.org/packages/source/p/pkgconfig/pkgco # .. get the tests from github Source1: https://github.com/matze/pkgconfig/archive/v%{version}.tar.gz#/pkgconfig-%{version}-gh.tar.gz BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: openssl-devel