File python-humanfriendly.spec of Package python-humanfriendly

# 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.


Name:           python-humanfriendly
Version:        1.44.7
Release:        0
Summary:        Human friendly input/output for text interfaces using Python
License:        MIT
Group:          Development/Languages/Python
Source:         https://github.com/xolox/%{name}/archive/%{version}.tar.gz
Url:            https://github.com/xolox/%{name}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
BuildArch:      noarch

%description
Human friendly input/output for text interfaces using Python https://humanfriendly.readthedocs.org

%prep
%setup -q

%build
python setup.py build

%install
# TODO properly build docs
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%{python_sitelib}
%{_bindir}/humanfriendly

%changelog
openSUSE Build Service is sponsored by