diff --git a/pymetar-1.1.tar.gz b/pymetar-1.1.tar.gz deleted file mode 100644 index 9a40760..0000000 --- a/pymetar-1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c90a02ff147dd2753156efbf2a04eb1743c34e99a31bf3fe25569e5beba18278 -size 3162533 diff --git a/pymetar-1.4.tar.gz b/pymetar-1.4.tar.gz new file mode 100644 index 0000000..b00fc33 --- /dev/null +++ b/pymetar-1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48dbe6c4929961021cb61e49bb9e0605b54c4b61b9fb9ade51076705a08ecd54 +size 3162928 diff --git a/python-pymetar.changes b/python-pymetar.changes index 77bf305..6a740f2 100644 --- a/python-pymetar.changes +++ b/python-pymetar.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jan 7 21:08:41 UTC 2024 - Dirk Müller + +- update to 1.4 + * no changelog available + ------------------------------------------------------------------- Wed May 20 07:26:36 UTC 2020 - Petr Gajdos @@ -44,6 +50,6 @@ Mon Feb 6 10:24:41 UTC 2012 - cfarrell@suse.com ------------------------------------------------------------------- Wed Jan 25 04:11:42 UTC 2012 - malcolmlewis@opensuse.org -- Initial build. +- Initial build. - Add python-pymetar-add-manpage.patch: Add man page install in setup.py. diff --git a/python-pymetar.spec b/python-pymetar.spec index 21b1776..fcd7c21 100644 --- a/python-pymetar.spec +++ b/python-pymetar.spec @@ -1,7 +1,7 @@ # -# spec file for package python-pymetar +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2012 Malcolm J Lewis # # All modifications and additions to the file contributed by third parties @@ -18,23 +18,22 @@ %define modname pymetar -%define oldpython python -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-%{modname} -Version: 1.1 +Version: 1.4 Release: 0 Summary: METAR weather report parser License: GPL-2.0-or-later Group: Development/Languages/Python URL: https://www.schwarzvogel.de/software-pymetar.shtml -Source0: http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz +Source0: https://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun): update-alternatives -Obsoletes: %{oldpython}-%{modname} +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -46,14 +45,11 @@ it and provides easy access to all the data found in the report. %setup -q -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install -%python_clone -a %{buildroot}%{_mandir}/man1/%{modname}.1 +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/%{modname} -# we install docs on our own -rm -r %{buildroot}%{_datadir}/doc/ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -64,16 +60,17 @@ mkdir logs cd - %post -%python_install_alternative %{modname} %{modname}.1 +%python_install_alternative %{modname} %postun -%python_uninstall_alternative %{modname} %{modname}.1 +%python_uninstall_alternative %{modname} %files %{python_files} %doc README.md %license COPYING %python_alternative %{_bindir}/%{modname} -%{python_sitelib}/* -%python_alternative %{_mandir}/man1/%{modname}.1%{?ext_man} +%{python_sitelib}/pymetar.py +%pycache_only %{python_sitelib}/__pycache__/pymetar* +%{python_sitelib}/pymetar-%{version}.dist-info %changelog