Blob Blame History Raw
%global srcname strictyaml

Name:           python-%{srcname}
Version:        1.1.1
%global forgeurl{srcname}/
%global tag %{version}
Release:        2%{?dist}
Summary:        Parses and validates a restricted subset of YAML

License:        MIT
URL:  {srcname}
Source0:        %{forgesource}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

# We do not attempt to build the documentation, since it requires an
# idiosyncratic build system (see that is hopelessly
# entangled with the idea of downloading dependencies from PyPI. An offline
# build would be nearly impossible.

%global common_description %{expand:
StrictYAML is a type-safe YAML parser that parses and validates a restricted
subset of the YAML specification.


  • Beautiful API
  • Refusing to parse the ugly, hard to read and insecure features of YAML like
    the Norway problem.
  • Strict validation of markup and straightforward type casting.
  • Clear, readable exceptions with code snippets and line numbers.
  • Acting as a near-drop in replacement for pyyaml, ruamel.yaml or poyo.
  • Ability to read in YAML, make changes and write it out again with comments
  • Not speed, currently.}

%description %{common_description}

%package -n     python3-%{srcname}
Summary:        %{summary}
%if 0%{?fedora} < 33
%py_provides python3-%{srcname}

%description -n python3-%{srcname} %{common_description}




# There are no tests. (If there were, it would be as hard to run them as it is
# to build the documentation.)

%files -n python3-%{srcname}
%license LICENSE.txt


* Thu Nov 26 2020 Benjamin A. Beasley <> - 1.1.0-2
- Remove EPEL conditionals from Fedora spec file
* Tue Nov 24 2020 Benjamin A. Beasley <> - 1.1.0-1
- Initial package