Compare commits
No commits in common. "f9a2c1b0a9fe9c01ef567fb7fd68c000742a709e" and "592dc68d12204bd07c83f8e95f2f03cc2c6d0d82" have entirely different histories.
f9a2c1b0a9
...
592dc68d12
BIN
productmd-1.26.tar.bz2
Normal file
BIN
productmd-1.26.tar.bz2
Normal file
Binary file not shown.
Binary file not shown.
@ -1,13 +0,0 @@
|
||||
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 = ""
|
||||
|
||||
@ -1,12 +1,10 @@
|
||||
Name: python-productmd
|
||||
Version: 1.33
|
||||
Release: 2
|
||||
Version: 1.26
|
||||
Release: 1
|
||||
Summary: Python library providing parsers for metadata
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/release-engineering/productmd
|
||||
Source0: %{pypi_source productmd %{version}}
|
||||
|
||||
Patch9000:productmd-add-support-generic-os.patch
|
||||
Source0: https://files.pythonhosted.org/packages/source/p/productmd/productmd-%{version}.tar.bz2
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -14,7 +12,16 @@ 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
|
||||
@ -30,15 +37,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
|
||||
@ -49,34 +56,17 @@ 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}/*
|
||||
%{python3_sitelib}/productmd/
|
||||
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
|
||||
|
||||
%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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user