2016-04-22 07:23:39 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-configshell-fb
|
|
|
|
|
#
|
2017-03-01 11:08:59 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-04-22 07:23:39 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2016-05-06 07:37:05 +00:00
|
|
|
|
2016-04-22 07:23:39 +00:00
|
|
|
%define oname configshell-fb
|
2017-09-05 07:33:41 +00:00
|
|
|
%define realver 1.1.fb23
|
2016-04-22 07:23:39 +00:00
|
|
|
|
2016-05-06 07:37:05 +00:00
|
|
|
Name: python-%{oname}
|
2017-09-05 07:33:41 +00:00
|
|
|
Version: 1.23
|
2016-05-06 07:37:05 +00:00
|
|
|
Release: 1%{?dist}
|
2017-03-01 11:08:59 +00:00
|
|
|
Url: http://github.com/open-iscsi/configshell-fb
|
2016-05-06 07:37:05 +00:00
|
|
|
Summary: A Python library for building configuration shells
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Libraries/Python
|
2017-03-01 11:08:59 +00:00
|
|
|
Source: https://github.com/open-iscsi/%{oname}/archive/v%{realver}.tar.gz
|
2016-05-06 07:37:05 +00:00
|
|
|
Requires: /usr/bin/python
|
|
|
|
|
Requires: python-pyparsing
|
|
|
|
|
Requires: python-six
|
|
|
|
|
BuildArch: noarch
|
2016-06-24 23:33:09 +00:00
|
|
|
Conflicts: python-configshell
|
2016-05-06 07:37:05 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
BuildRequires: python-pyparsing
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
BuildRequires: python-six
|
|
|
|
|
BuildRequires: python-urwid
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-04-22 07:23:39 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
configshell-fb is a Python library that provides a framework for building simple
|
|
|
|
|
but nice CLI-based applications.
|
|
|
|
|
|
|
|
|
|
configshell-fb is a fork of the "configshell" code written by RisingTide
|
|
|
|
|
Systems. The "-fb" differentiates between the original and this version. Please
|
|
|
|
|
ensure to use either all "fb" versions of the targetcli components -- targetcli,
|
|
|
|
|
rtslib, and configshell, or stick with all non-fb versions, since they are
|
|
|
|
|
no longer strictly compatible.
|
|
|
|
|
|
|
|
|
|
%package doc
|
2016-05-06 07:37:05 +00:00
|
|
|
Summary: Documentation for Python configshell-fb
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: epydoc
|
2016-04-22 07:23:39 +00:00
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
configshell-fb is a Python library that provides a framework for building simple
|
|
|
|
|
but nice CLI-based applications.
|
|
|
|
|
|
|
|
|
|
configshell-fb is a fork of the "configshell" code written by RisingTide
|
|
|
|
|
Systems. The "-fb" differentiates between the original and this version. Please
|
|
|
|
|
ensure to use either all "fb" versions of the targetcli components -- targetcli,
|
|
|
|
|
rtslib, and configshell, or stick with all non-fb versions, since they are
|
|
|
|
|
no longer strictly compatible.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{oname}-%{realver}%{?extraver}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%__python setup.py build
|
|
|
|
|
%__mkdir_p doc/
|
|
|
|
|
epydoc --no-sourcecode --html -n %{oname} --exclude configobj configshell/*.py
|
|
|
|
|
%__mv html doc/
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%__python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
%fdupes %{buildroot}%{python_sitelib}
|
|
|
|
|
%__install -d -m755 %{buildroot}%{_defaultdocdir}/python-configshell-doc-%{version}
|
|
|
|
|
%__cp -r doc/* %{buildroot}%{_defaultdocdir}/python-configshell-doc-%{version}/
|
|
|
|
|
%fdupes %{buildroot}%{_defaultdocdir}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%doc examples COPYING README.md
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_defaultdocdir}/python-configshell-doc-%{version}
|
|
|
|
|
|
|
|
|
|
%changelog
|