From 09bc30204be0a93c7f74e46f4a46c604374b13fa175f14520cfe406ec9e52bfc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 22 Apr 2016 07:23:39 +0000 Subject: [PATCH] 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 --- .gitattributes | 24 +++++++++ .gitignore | 4 ++ configshell-fb-1.1.fb20.tar.gz | 3 ++ python-configshell-fb.changes | 7 +++ python-configshell-fb.spec | 99 ++++++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 configshell-fb-1.1.fb20.tar.gz create mode 100644 python-configshell-fb.changes create mode 100644 python-configshell-fb.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/configshell-fb-1.1.fb20.tar.gz b/configshell-fb-1.1.fb20.tar.gz new file mode 100644 index 0000000..b7d5135 --- /dev/null +++ b/configshell-fb-1.1.fb20.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a9f4b59ccd256a1c4d4c270be43798853a91d9fec29bd0ba006b88b7476f383 +size 36913 diff --git a/python-configshell-fb.changes b/python-configshell-fb.changes new file mode 100644 index 0000000..4dfa7dd --- /dev/null +++ b/python-configshell-fb.changes @@ -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 + +------------------------------------------------------------------- diff --git a/python-configshell-fb.spec b/python-configshell-fb.spec new file mode 100644 index 0000000..bcb9970 --- /dev/null +++ b/python-configshell-fb.spec @@ -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 +