python-productmd/python-productmd.spec
openeuler-ci-bot 7a52a5120f remove python2
From: @weiwei_150212
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2020-11-04 17:09:05 +08:00

86 lines
1.7 KiB
RPMSpec

Name: python-productmd
Version: 1.26
Release: 3
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-generic-os.patch
BuildArch: noarch
%description
This package is a Python library providing parsers for metadata related to
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
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
%files -n python3-productmd
%license LICENSE AUTHORS
%{python3_sitelib}/productmd/
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
%changelog
* 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
- SUG:NA
- DESC:update to release 1.26
* Wed Oct 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.22-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add support generic os
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.22-1
- Package init