Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
f9a2c1b0a9
!16 【轻量级 PR】:Rebuild for next release
From: @zhangruifang2020 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-11-01 08:59:57 +00:00
张瑞方
b16d590905
Rebuild for next release
Signed-off-by: 张瑞方 <xdzhangruifang@163.com>
2022-10-26 07:58:30 +00:00
openeuler-ci-bot
c96c14a332 !14 upgrade version to 1.33
Merge pull request !14 from renxichen/openEuler-22.03-LTS-Next
2021-12-25 07:27:37 +00:00
rwx403335
b89074f0a8 Upgrade to version 1.33 2021-12-21 16:48:10 +08:00
openeuler-ci-bot
00b3401f7f !8 Upgrade python-productmd to 1.30 in master
From: @s17723959267
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-02-03 15:59:38 +08:00
yeah_wang
cfb2aeaaf3 Upgrade version to 1.30 2021-02-02 16:58:13 +08:00
openeuler-ci-bot
4effb695c9 !7 remove python2
From: @jlwwlsqc
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2020-11-04 19:05:02 +08:00
openeuler-ci-bot
7a52a5120f remove python2
From: @weiwei_150212
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2020-11-04 17:09:05 +08:00
openeuler-ci-bot
01a1526c6f !6 add support generic os patch
From: @weiwei_150212
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2020-10-20 15:20:25 +08:00
s17723959267
e437f3cd9b add support generic os patch 2020-10-20 15:16:14 +08:00
4 changed files with 44 additions and 21 deletions

Binary file not shown.

BIN
productmd-1.33.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,13 @@
diff -uNrp a/productmd/treeinfo.py b/productmd/treeinfo.py
--- a/productmd/treeinfo.py 2016-11-15 15:04:26.000000000 +0000
+++ b/productmd/treeinfo.py 2019-01-10 16:44:48.998592066 +0000
@@ -245,6 +245,9 @@ class Release(BaseProduct):
elif self.name.startswith("CentOS"):
self.name = "CentOS"
self.short = "CentOS"
+ elif self.name.startswith("generic_os"):
+ self.name = "generic_os"
+ self.short = "generic_os"
else:
self.short = ""

View File

@ -1,10 +1,12 @@
Name: python-productmd
Version: 1.26
Release: 1
Version: 1.33
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
Source0: %{pypi_source productmd %{version}}
Patch9000:productmd-add-support-generic-os.patch
BuildArch: noarch
@ -12,16 +14,7 @@ BuildArch: noarch
This package is a Python library providing parsers for metadata related to
composes and installation media.
%package -n python2-productmd
Summary: productmd for python2
Obsoletes: productmd <= %{version}-%{release}
Provides: productmd = %{version}-%{release}
BuildRequires: python2-devel python2-setuptools python2-six
Requires: python2-six
%{?python_provide:%python_provide python2-productmd}
%description -n python2-productmd
Productmd for python2.
%package -n python3-productmd
Summary: productmd for python3
@ -37,15 +30,15 @@ Productmd for python3.
sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} ./setup.py test
%{__python3} ./setup.py test
%pre
@ -56,17 +49,34 @@ sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py
%postun
%files -n python2-productmd
%license LICENSE AUTHORS
%{python2_sitelib}/productmd/
%{python2_sitelib}/productmd-%{version}-py?.?.egg-info
%files -n python3-productmd
%license LICENSE AUTHORS
%{python3_sitelib}/productmd/
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
%{python3_sitelib}/*
%changelog
* Wed Oct 26 2022 zhangruifang <zhangruifang1@h-partners.com> - 1.33-2
- Rebuild for next release
* Mon Dec 20 2021 renhongxun <renhongxun@huawei.com> - 1.33-1
- Upgrade to version 1.33
* Tue Feb 2 2021 shangyibin <shangyibin1@huawei.com> - 1.30-1
- Upgrade to version 1.30
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -1.26-3
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Tue Oct 20 2020 tianwei <tianwei12@huawei.com> - 1.26-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add support generic os patch
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 1.26-1
- Type:enhancement
- ID:NA