File python-configshell.spec of Package python-configshell
#
# spec file for package python-configshell
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
%define oname configshell
Name: python-configshell
Summary: A framework to implement simple but nice CLIs
License: Apache-2.0
Group: Development/Languages/Python
Version: 1.5
Release: 0
Url: https://github.com/Datera/configshell
Source: https://github.com/Datera/%{oname}/releases/download/%{version}/%{oname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: epydoc
BuildRequires: python-devel
BuildRequires: python-pyparsing
Requires: python-pyparsing
Requires: python-urwid >= 0.9.9
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
A framework to implement simple but nice command-line interfaces.
ConfigShell Community Edition is a python library that provides a
framework for building simple but nice CLI-based applications.
For more information, see the configshell API reference, available in
both html and pdf formats as a separate package.
The latest version of this program might be obtained at:
http://www.risingtidesystems.com/git/
To run the example shell from this directory use: PYTHONPATH=.
./examples/myshell
%package doc
Summary: A framework to implement simple but nice CLIs
License: AGPL-3.0
Group: Development/Languages/Python
%description doc
A framework to implement simple but nice command-line interfaces.
ConfigShell Community Edition is a python library that provides a
framework for building simple but nice CLI-based applications.
For more information, see the configshell API reference, available in
both html and pdf formats as a separate package.
The latest version of this program might be obtained at:
http://www.risingtidesystems.com/git/
To run the example shell from this directory use: PYTHONPATH=.
./examples/myshell
%prep
%setup -q -n %{oname}-%{version}
%build
%{__python} setup.py build
mkdir -p doc/
epydoc --no-sourcecode --html -n %{oname} --exclude configobj %{oname}/*.py
mv html doc/
%install
python setup.py install --skip-build --root %{buildroot} --prefix=%{_prefix}
mkdir -p %{buildroot}%{_defaultdocdir}/python-configshell
cp -r doc/* %{buildroot}%{_defaultdocdir}/python-configshell
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%files doc
%defattr(-,root,root,-)
%doc README.md COPYING
%dir %{_defaultdocdir}/python-configshell
%{_defaultdocdir}/python-configshell
%changelog