Compare commits

..

No commits in common. "0f0086685c1bb1417d3f79d43a8eddc9825d494a" and "d60634b827428ee8c7c242a268e7e9c1838e748b" have entirely different histories.

4 changed files with 25 additions and 52 deletions

BIN
dict2xml-1.6.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,66 +1,43 @@
%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
%global pypi_name dict2xml
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
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
%description
%global _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 %{_description}
%description -n python3-dict2xml
Super Simple utility to convert a python dictionary into an xml string.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%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.
%description -n python3-%{pypi_name} %{_description}
%prep
%autosetup -n dict2xml-%{version}
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%py3_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
%py3_install
%files -n python3-dict2xml
%{python3_sitelib}/*
%check
%files help
%{_docdir}/*
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%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

View File

@ -1,4 +0,0 @@
version_control: pypi
src_repo: dict2xml
tag_prefix: "^v"
seperator: "."