python-pyaml/python-pyaml.spec

46 lines
1.0 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:54:57 +08:00
%global pypi_name pyaml
Name: python-%{pypi_name}
Version: 19.4.1
Release: 1
Summary: PyYAML-based python module to produce pretty and readable YAML-serialized data
License: WTFPL
URL: https://github.com/clearlinux-pkgs/pyaml
Source0: https://files.pythonhosted.org/packages/bf/0c/bf62f049446da78498eb607bc8cbb0604cf1e8d618f2f733e538dcb6e0bc/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
Requires: python3-PyYAML
%global _description \
Python module to produce formatted YAML-serialized data
%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 COPYING
%doc README.rst
%{python3_sitelib}/*
%changelog
2022-06-08 06:56:39 +00:00
* Thu Nov 7 2019 caomeng <caomeng5@huawei.com> - 19.4.1-1
2019-11-19 11:54:57 +08:00
- Init package