Package init
This commit is contained in:
parent
7bf49e513a
commit
bac38ef3e5
@ -1,13 +1,12 @@
|
|||||||
Name: python-productmd
|
Name: python-productmd
|
||||||
Version: 1.22
|
Version: 1.22
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Python library providing parsers for metadata
|
Summary: Python library providing parsers for metadata
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/release-engineering/productmd
|
URL: https://github.com/release-engineering/productmd
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/productmd/productmd-%{version}.tar.bz2
|
Source0: https://files.pythonhosted.org/packages/source/p/productmd/productmd-%{version}.tar.bz2
|
||||||
|
|
||||||
Patch9000: productmd-add-support-euleros.patch
|
Patch9000: productmd-add-support-generic-os.patch
|
||||||
Patch9001: productmd-add-support-openeuler.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -28,7 +27,7 @@ Productmd for python2.
|
|||||||
|
|
||||||
%package -n python3-productmd
|
%package -n python3-productmd
|
||||||
Summary: productmd for python3
|
Summary: productmd for python3
|
||||||
BuildRequires: python3-devel python3-setuptools python3-six
|
BuildRequires: python3-devel python3-setuptools python3-six sed
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
|
|
||||||
%description -n python3-productmd
|
%description -n python3-productmd
|
||||||
@ -37,6 +36,8 @@ Productmd for python3.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n productmd-%{version} -p1
|
%autosetup -n productmd-%{version} -p1
|
||||||
|
|
||||||
|
sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -68,5 +69,11 @@ Productmd for python3.
|
|||||||
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
|
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.22-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user