python-dict2xml/python-dict2xml.spec
2022-11-10 14:36:03 +08:00

50 lines
1.2 KiB
RPMSpec

%global pypi_name dict2xml
Name: python-%{pypi_name}
Version: 1.7.0
Release: 2
Summary: Super Simple utility to convert a python dictionary into an xml string
License: MIT
URL: https://github.com/delfick/python-dict2xml
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%global _description \
Super Simple utility to convert a python dictionary into an xml string.
%description %{_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %{_description}
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
%install
%py3_install
%check
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%changelog
* Thu Nov 10 2022 yaoxin <yaoxin30@h-partners.com> - 1.7.0-2
- Change Source
* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 1.7.0-1
- upgrade version to 1.7.0
* Tue Nov 5 2019 shanshishi <shanshishi@huawei.com> - 1.6.1-1
- Init package