diff --git a/python-productmd.spec b/python-productmd.spec index 93d05f6daf3c38436962c101e318a2cdbf45fa4e..883f215175cab05aa3a3f420f4eb27a2a590e492 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,10 +1,12 @@ Name: python-productmd Version: 1.38 -Release: 1 +Release: 2 Summary: Python library providing parsers for metadata -License: LGPLv2+ +License: LGPL-2.1-or-later URL: https://github.com/release-engineering/productmd Source0: %{pypi_source productmd %{version}} +BuildRequires: python3-devel python3-setuptools python3-six sed +BuildRequires: python3-pytest Patch9000:productmd-add-support-generic-os.patch @@ -18,7 +20,6 @@ composes and installation media. %package -n python3-productmd Summary: productmd for python3 -BuildRequires: python3-devel python3-setuptools python3-six sed Requires: python3-six %description -n python3-productmd @@ -26,36 +27,26 @@ Productmd for python3. %prep %autosetup -n productmd-%{version} -p1 - sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py %build - %py3_build %install - %py3_install %check - -%{__python3} ./setup.py test - -%pre - -%preun - -%post - -%postun - - +%pytest %files -n python3-productmd -%license LICENSE AUTHORS +%license LICENSE +%doc AUTHORS %{python3_sitelib}/* %changelog +* Sat Jun 28 2025 Funda Wang - 1.38-2 +- fix test + * Tue Jan 30 2024 zhaotianyang - 1.38-1 - upgrade version to 1.38 - add image type: dvd-ostree-osbuild, live-osbuild and ociarchive