From bac38ef3e5e5f3a983466183f5eb7d43813384b4 Mon Sep 17 00:00:00 2001 From: dogsheng <960055655@qq.com> Date: Fri, 13 Dec 2019 16:04:34 +0800 Subject: [PATCH] Package init --- python-productmd.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/python-productmd.spec b/python-productmd.spec index 537b2e9..541d81b 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,13 +1,12 @@ Name: python-productmd Version: 1.22 -Release: 1 +Release: 2 Summary: Python library providing parsers for metadata License: LGPLv2+ URL: https://github.com/release-engineering/productmd Source0: https://files.pythonhosted.org/packages/source/p/productmd/productmd-%{version}.tar.bz2 -Patch9000: productmd-add-support-euleros.patch -Patch9001: productmd-add-support-openeuler.patch +Patch9000: productmd-add-support-generic-os.patch BuildArch: noarch @@ -28,7 +27,7 @@ Productmd for python2. %package -n python3-productmd Summary: productmd for python3 -BuildRequires: python3-devel python3-setuptools python3-six +BuildRequires: python3-devel python3-setuptools python3-six sed Requires: python3-six %description -n python3-productmd @@ -37,6 +36,8 @@ Productmd for python3. %prep %autosetup -n productmd-%{version} -p1 +sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py + %build %py2_build %py3_build @@ -68,5 +69,11 @@ Productmd for python3. %{python3_sitelib}/productmd-%{version}-py?.?.egg-info %changelog +* Wed Oct 23 2019 openEuler Buildteam - 1.22-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:add support generic os + * Fri Oct 18 2019 openEuler Buildteam - 1.22-1 - Package init