Blame python-strictyaml.spec

82c2df0
%global srcname strictyaml
82c2df0
82c2df0
Name:           python-%{srcname}
82c2df0
Version:        1.1.1
82c2df0
%global forgeurl https://github.com/crdoconnor/%{srcname}/
82c2df0
%global tag %{version}
82c2df0
%forgemeta
82c2df0
Release:        2%{?dist}
82c2df0
Summary:        Parses and validates a restricted subset of YAML
82c2df0
82c2df0
License:        MIT
82c2df0
URL:            http://hitchdev.com/%{srcname}
82c2df0
Source0:        %{forgesource}
82c2df0
82c2df0
BuildArch:      noarch
82c2df0
82c2df0
BuildRequires:  python3-devel
82c2df0
BuildRequires:  python3dist(setuptools)
82c2df0
82c2df0
# We do not attempt to build the documentation, since it requires an
82c2df0
# idiosyncratic build system (see https://hitchdev.com/) that is hopelessly
82c2df0
# entangled with the idea of downloading dependencies from PyPI. An offline
82c2df0
# build would be nearly impossible.
82c2df0
82c2df0
%global common_description %{expand:
82c2df0
StrictYAML is a type-safe YAML parser that parses and validates a restricted
82c2df0
subset of the YAML specification.
82c2df0
82c2df0
Priorities:
82c2df0
82c2df0
  • Beautiful API
82c2df0
  • Refusing to parse the ugly, hard to read and insecure features of YAML like
82c2df0
    the Norway problem.
82c2df0
  • Strict validation of markup and straightforward type casting.
82c2df0
  • Clear, readable exceptions with code snippets and line numbers.
82c2df0
  • Acting as a near-drop in replacement for pyyaml, ruamel.yaml or poyo.
82c2df0
  • Ability to read in YAML, make changes and write it out again with comments
82c2df0
    preserved.
82c2df0
  • Not speed, currently.}
82c2df0
82c2df0
%description %{common_description}
82c2df0
82c2df0
82c2df0
%package -n     python3-%{srcname}
82c2df0
Summary:        %{summary}
82c2df0
%if 0%{?fedora} < 33
82c2df0
%py_provides python3-%{srcname}
82c2df0
%endif
82c2df0
82c2df0
%description -n python3-%{srcname} %{common_description}
82c2df0
82c2df0
82c2df0
%prep
82c2df0
%forgesetup
82c2df0
82c2df0
82c2df0
%build
82c2df0
%py3_build
82c2df0
82c2df0
82c2df0
%install
82c2df0
%py3_install
82c2df0
82c2df0
82c2df0
# There are no tests. (If there were, it would be as hard to run them as it is
82c2df0
# to build the documentation.)
82c2df0
82c2df0
82c2df0
%files -n python3-%{srcname}
82c2df0
%license LICENSE.txt
82c2df0
%doc CHANGELOG.md
82c2df0
%doc README.md
82c2df0
82c2df0
%{python3_sitelib}/%{srcname}
82c2df0
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
82c2df0
82c2df0
82c2df0
%changelog
82c2df0
* Thu Nov 26 2020 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-2
82c2df0
- Remove EPEL conditionals from Fedora spec file
086aebf
82c2df0
* Tue Nov 24 2020 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-1
82c2df0
- Initial package