File python-ramlfications.spec of Package python-ramlfications
#
# spec file for package python-ramlfications
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: python-ramlfications
Version: 0.1.9
Release: 0
License: Apache-2.0
Summary: A Python RAML parser
Url: https://ramlfications.readthedocs.org
Group: Development/Languages/Python
Source: ramlfications-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-attrs
BuildRequires: python-click
BuildRequires: python-jsonref
BuildRequires: python-markdown2
BuildRequires: python-PyYAML
BuildRequires: python-six
BuildRequires: python-termcolor
BuildRequires: python-xmltodict
# test requirements
BuildRequires: python-mock
BuildRequires: python-pytest
Requires: python-attrs
Requires: python-click
Requires: python-jsonref
Requires: python-markdown2
Requires: python-PyYAML
Requires: python-six
Requires: python-termcolor
Requires: python-xmltodict
Suggests: python-requests
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
ramlfications is an Apache 2.0-licensed reference implementation of a RAML parser in Python intended to be used for parsing API definitions (e.g. for static documentation-generation).
If you’ve never heard of RAML, you’re missing out:
RESTful API Modeling Language (RAML) is a simple and succinct way of describing practically-RESTful APIs. It encourages reuse, enables discovery and pattern-sharing, and aims for merit-based emergence of best practices. The goal is to help our current API ecosystem by solving immediate problems and then encourage ever-better API patterns. RAML is built on broadly-used standards such as YAML and JSON and is a non-proprietary, vendor-neutral open spec.
%prep
%setup -q -n ramlfications-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS.rst LICENSE README.rst
%{_bindir}/ramlfications
%{python_sitelib}/*
%changelog