From 5414b6d6bbb83977d4f74ee632d6a418f172dc66f6ffd63d57480a53b34b5488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 07:26:08 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyjavaproperties?expand=0&rev=6 --- python-pyjavaproperties.changes | 5 +++++ python-pyjavaproperties.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-pyjavaproperties.changes b/python-pyjavaproperties.changes index d53a4c7..b8d9717 100644 --- a/python-pyjavaproperties.changes +++ b/python-pyjavaproperties.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 07:25:47 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Sep 11 10:44:33 UTC 2020 - John Vandenberg diff --git a/python-pyjavaproperties.spec b/python-pyjavaproperties.spec index dccd7fc..3c50923 100644 --- a/python-pyjavaproperties.spec +++ b/python-pyjavaproperties.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyjavaproperties # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2012 Abel Luck # # All modifications and additions to the file contributed by third parties @@ -25,7 +25,9 @@ License: MIT Group: Development/Languages/Python URL: https://bitbucket.org/skeptichacker/pyjavaproperties Source0: https://files.pythonhosted.org/packages/source/p/pyjavaproperties/pyjavaproperties-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-base @@ -40,10 +42,10 @@ A python library for parsing Java properties files. sed -i '/^#!/d' pyjavaproperties.py pyjavaproperties_test.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install # Upstream patch to not install test module # https://bitbucket.org/skeptichacker/pyjavaproperties/pull-requests/1 %{python_expand rm %{buildroot}%{$python_sitelib}/pyjavaproperties_test.py @@ -56,6 +58,7 @@ sed -i '/^#!/d' pyjavaproperties.py pyjavaproperties_test.py %files %{python_files} %license LICENSE %doc README.rst CHANGELOG.txt -%{python_sitelib}/* +%{python_sitelib}/pyjavaproperties +%{python_sitelib}/pyjavaproperties-%{version}*-info %changelog From 44e2360b82ddb4956cb6de20881e6c715ecf48b71e66d6c2dfae53ccdca4d959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 07:32:10 +0000 Subject: [PATCH 2/2] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyjavaproperties?expand=0&rev=7 --- python-pyjavaproperties.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-pyjavaproperties.spec b/python-pyjavaproperties.spec index 3c50923..7550788 100644 --- a/python-pyjavaproperties.spec +++ b/python-pyjavaproperties.spec @@ -58,7 +58,8 @@ sed -i '/^#!/d' pyjavaproperties.py pyjavaproperties_test.py %files %{python_files} %license LICENSE %doc README.rst CHANGELOG.txt -%{python_sitelib}/pyjavaproperties +%{python_sitelib}/pyjavaproperties.py %{python_sitelib}/pyjavaproperties-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/pyjavaproperties* %changelog