python-dict2xml/python-dict2xml.spec
2019-11-19 11:53:43 +08:00

44 lines
1.1 KiB
RPMSpec

%global pypi_name dict2xml
Name: python-%{pypi_name}
Version: 1.6.1
Release: 1
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/ed/28/b169ce37d415e5c924fa4f2b157b051ef9fa5ab25ae94db192f19dd9c6b1/%{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
* Tue Nov 5 2019 shanshishi <shanshishi@huawei.com> - 1.6.1-1
- Init package