python-dict2xml/python-dict2xml.spec
cherry530 ecc3b7be3b Adapting to the pyproject.toml compilation mode
Signed-off-by: cherry530 <707078654@qq.com>
2023-04-26 16:12:15 +08:00

67 lines
2.0 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-dict2xml
Version: 1.7.3
Release: 2
Summary: Super Simple utility to convert a python dictionary into an xml string
License: MIT
URL: http://github.com/delfick/python-dict2xml
Source0: https://files.pythonhosted.org/packages/59/19/2e36329ad47671bd3701cf5dbb94b09fdc407d9635c75131f200ee6ec7dc/dict2xml-1.7.3.tar.gz
BuildArch: noarch
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
%description
Super Simple utility to convert a python dictionary into an xml string.
%package -n python3-dict2xml
Summary: Super Simple utility to convert a python dictionary into an xml string
Provides: python-dict2xml = %{version}-%{release}
BuildRequires: python3-devel
%description -n python3-dict2xml
Super Simple utility to convert a python dictionary into an xml string.
%package help
Summary: Development documents and examples for dict2xml
Provides: python3-dict2xml-doc
%description help
Super Simple utility to convert a python dictionary into an xml string.
%prep
%autosetup -n dict2xml-%{version}
%build
%pyproject_build
%install
%pyproject_install dict2xml==%{version}
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%files -n python3-dict2xml
%{python3_sitelib}/*
%files help
%{_docdir}/*
%changelog
* Wed Apr 26 2023 xu_ping <707078654@qq.com> - 1.7.3-2
- Adapting to the pyproject.toml compilation mode
* Mon Mar 20 2023 wubijie <wubijie@kylinos.cn> - 1.7.3-1
- Update package to version 1.7.3
* Tue Nov 08 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.7.2-1
- Update package to version 1.7.2
* 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