forked from pool/python-configshell-fb
Accepting request 391086 from home:lee_duncan
New package, to eventually replace python-configshell OBS-URL: https://build.opensuse.org/request/show/391086 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-configshell-fb?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
configshell-fb-1.1.fb20.tar.gz
Normal file
3
configshell-fb-1.1.fb20.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4a9f4b59ccd256a1c4d4c270be43798853a91d9fec29bd0ba006b88b7476f383
|
||||
size 36913
|
||||
7
python-configshell-fb.changes
Normal file
7
python-configshell-fb.changes
Normal file
@@ -0,0 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 19 17:28:26 UTC 2016 - lduncan@suse.com
|
||||
|
||||
- Initial creation of this package, from upstream
|
||||
version 1.1.fb20
|
||||
|
||||
-------------------------------------------------------------------
|
||||
99
python-configshell-fb.spec
Normal file
99
python-configshell-fb.spec
Normal file
@@ -0,0 +1,99 @@
|
||||
#
|
||||
# spec file for package python-configshell-fb
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
%define oname configshell-fb
|
||||
%define realver 1.1.fb20
|
||||
|
||||
Name: python-%{oname}
|
||||
Version: 1.20
|
||||
Release: 1%{?dist}
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://github.com/agrover/configshell-fb
|
||||
Summary: A Python library for building configuration shells
|
||||
Source: %{oname}-%{realver}.tar.gz
|
||||
Provides: python-configshell = %{version}
|
||||
Obsoletes: python-configshell < %{version}
|
||||
Requires: python-pyparsing
|
||||
Requires: python-six
|
||||
Requires: /usr/bin/python
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-pyparsing
|
||||
BuildRequires: python-urwid
|
||||
BuildRequires: fdupes
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
|
||||
%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
|
||||
Summary: Documentation for Python configshell-fb
|
||||
Group: Documentation/HTML
|
||||
BuildArch: noarch
|
||||
BuildRequires: epydoc
|
||||
|
||||
%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
|
||||
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
||||
%__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}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/*
|
||||
%doc examples COPYING README.md
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%{_defaultdocdir}/python-configshell-doc-%{version}
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user