File python-yaql.spec of Package python-yaql

#
# spec file for package python-yaql
#
# Copyright (c) 2018 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/
#


%global sname yaql
Name:           python-yaql
Version:        1.1.3
Release:        0
Summary:        YAQL - Yet Another Query Language
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://launchpad.net/%{sname}
Source0:        https://files.pythonhosted.org/packages/source/y/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires:  openstack-macros
# for testing
BuildRequires:  python-Sphinx
BuildRequires:  python-devel
BuildRequires:  python-fixtures >= 3.0.0
BuildRequires:  python-oslosphinx >= 4.7.0
BuildRequires:  python-pbr >= 2.0.0
BuildRequires:  python-ply
BuildRequires:  python-python-dateutil >= 2.4.2
BuildRequires:  python-python-subunit >= 1.0.0
BuildRequires:  python-six >= 1.10.0
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testscenarios >= 0.4
BuildRequires:  python-testtools >= 2.2.0
Requires:       python-Babel >= 2.3.4
Requires:       python-ply
Requires:       python-python-dateutil >= 2.4.2
Requires:       python-six >= 1.10.0
BuildArch:      noarch

%description
YAQL (Yet Another Query Language) is an embeddable and extensible query
language, that allows performing complex queries against arbitrary objects. It
has a vast and comprehensive standard library of frequently used querying
functions and can be extend even further with user-specified functions. YAQL is
written in python and is distributed via PyPI.

%prep
%autosetup -n yaql-%{version}
%py_req_cleanup

%build
%py2_build

%install
%py2_install

%check
%{__python2} setup.py testr

%files
%license LICENSE
%doc ChangeLog README.rst
%{_bindir}/yaql
%{python2_sitelib}/%{sname}
%{python2_sitelib}/%{sname}*.egg-info

%changelog
openSUSE Build Service is sponsored by