Files
rpm-python-ruamel-yaml/python-ruamel-yaml.spec
T
Daniel Uvehag 124d92cfb4 Initial package
2022-04-20 09:12:08 +02:00

55 lines
1.5 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%global pypi_name ruamel.yaml
%global canonical_pypi_name ruamel-yaml
%global pypi_version 0.17.21
Name: python-%{pypi_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: YAML 1.2 loader/dumper package for Python
License: MIT
URL: https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_version}dist(setuptools)
%global _description %{expand:
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
It is a derivative of Kirill Simonovs PyYAML 3.11}
%description %_description
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
Requires: python%{python3_version}dist(ruamel-yaml-clib) >= 0.2.6
%description -n python%{python3_pkgversion}-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
export RUAMEL_NO_PIP_INSTALL_CHECK=1
%py3_install
%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/ruamel
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}-*.pth
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
%changelog
* Wed Apr 20 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 0.17.21-1
- Initial package.