Blame python-yamlloader.spec

aekoroglu 55fec91
%global srcname yamlloader
aekoroglu 55fec91
%global _desc %{expand: \
aekoroglu 55fec91
This module provides loaders and dumpers for PyYAML. Currently, an 
aekoroglu 55fec91
OrderedDict loader/dumper is implemented, allowing to keep items order
aekoroglu 55fec91
when loading resp. dumping a file from/to an OrderedDict (Python 3.7+:
aekoroglu 55fec91
Also  regular dicts are supported and are the default items to be loaded
aekoroglu 55fec91
to. As of Python 3.7 preservation of insertion order is a language feature 
aekoroglu 55fec91
of regular dicts.)\
aekoroglu 55fec91
\
aekoroglu 55fec91
This project was originally mirrored from yamlordereddict Many thanks to 
aekoroglu 55fec91
the original author François Ménabé! The library contains several 
aekoroglu 55fec91
improvements including automated testing and the much faster C-versions 
aekoroglu 55fec91
of the Loaders/Dumpers.}
aekoroglu 55fec91
aekoroglu 55fec91
Name:           python-%{srcname}
aekoroglu 55fec91
Version:        1.1.0
aekoroglu 55fec91
Release:        %autorelease
aekoroglu 55fec91
Summary:        Ordered YAML loader and dumper for PyYAML
aekoroglu 55fec91
aekoroglu 55fec91
License:	MIT
aekoroglu 55fec91
URL:		https://github.com/Phynix/yamlloader
aekoroglu 55fec91
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
aekoroglu 55fec91
aekoroglu 55fec91
BuildArch:	noarch
aekoroglu 55fec91
aekoroglu 55fec91
BuildRequires:	python3-devel
aekoroglu 55fec91
BuildRequires:	python3-hypothesis
aekoroglu 55fec91
BuildRequires:	python3-pytest
aekoroglu 55fec91
aekoroglu 55fec91
%description %{_desc}
aekoroglu 55fec91
aekoroglu 55fec91
%package -n python3-%{srcname}
aekoroglu 55fec91
Summary:	%{summary}
aekoroglu 55fec91
aekoroglu 55fec91
%description -n python3-%{srcname} %{_desc}
aekoroglu 55fec91
aekoroglu 55fec91
%prep
aekoroglu 55fec91
%autosetup -n %{srcname}-%{version}
aekoroglu 55fec91
aekoroglu 55fec91
%generate_buildrequires
aekoroglu 55fec91
%pyproject_buildrequires -r
aekoroglu 55fec91
aekoroglu 55fec91
%build
aekoroglu 55fec91
%pyproject_wheel
aekoroglu 55fec91
aekoroglu 55fec91
%install
aekoroglu 55fec91
%pyproject_install
aekoroglu 55fec91
%pyproject_save_files %{srcname}
aekoroglu 55fec91
aekoroglu 55fec91
%check
aekoroglu 55fec91
%pytest -v
aekoroglu 55fec91
aekoroglu 55fec91
%files -n python3-%{srcname} -f %{pyproject_files}
aekoroglu 55fec91
%doc README.rst
aekoroglu 55fec91
aekoroglu 55fec91
%changelog
aekoroglu 55fec91
%autochangelog