15
0
2016-05-06 07:37:05 +00:00
committed by Git OBS Bridge
parent 37ff080385
commit dd29627111
2 changed files with 31 additions and 30 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 6 07:36:56 UTC 2016 - dmueller@suse.com
- cleanup buildroot parts
-------------------------------------------------------------------
Tue Apr 19 17:28:26 UTC 2016 - lduncan@suse.com

View File

@@ -15,30 +15,31 @@
# 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
Name: python-%{oname}
Version: 1.20
Release: 1%{?dist}
Url: http://github.com/agrover/configshell-fb
Summary: A Python library for building configuration shells
License: Apache-2.0
Group: Development/Libraries/Python
Source: %{oname}-%{realver}.tar.gz
Provides: python-configshell = %{version}
Obsoletes: python-configshell < %{version}
Requires: /usr/bin/python
Requires: python-pyparsing
Requires: python-six
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-pyparsing
BuildRequires: python-setuptools
BuildRequires: python-six
BuildRequires: python-urwid
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
configshell-fb is a Python library that provides a framework for building simple
@@ -51,10 +52,10 @@ 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
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
@@ -76,16 +77,12 @@ 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}/*
@@ -96,4 +93,3 @@ epydoc --no-sourcecode --html -n %{oname} --exclude configobj configshell/*.py
%{_defaultdocdir}/python-configshell-doc-%{version}
%changelog