Accepting request 657714 from home:dancermak

Fix %install spelling

OBS-URL: https://build.opensuse.org/request/show/657714
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-autoprogram?expand=0&rev=1
This commit is contained in:
2018-12-13 06:23:33 +00:00
committed by Git OBS Bridge
commit ad12762b67
6 changed files with 191 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,60 @@
From e5b9f7eb2f7fcf6f89ffa14a2c29ba9b3d92b723 Mon Sep 17 00:00:00 2001
From: Hong Minhee <hong.minhee@gmail.com>
Date: Wed, 12 Dec 2018 21:23:49 +0900
Subject: [PATCH] License file [ci skip]
Fix https://github.com/sphinx-contrib/autoprogram/issues/4
---
LICENSE | 26 ++++++++++++++++++++++++++
setup.py | 2 +-
2 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..4064009
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,26 @@
+Copyright (c) 20142018 Hong Minhee <https://hongminhee.org/>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are those
+of the authors and should not be interpreted as representing official policies,
+either expressed or implied, of the sphinxcontrib-autoprogram project.
diff --git a/setup.py b/setup.py
index 287f42e..17ddcc8 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
name='sphinxcontrib-autoprogram',
version=version,
url='https://github.com/sphinx-contrib/autoprogram',
- license='BSD',
+ license='2-Clause BSD',
author='Hong Minhee',
author_email='\x68\x6f\x6e\x67.minhee' '@' '\x67\x6d\x61\x69\x6c.com',
description='Documenting CLI programs',
--
2.19.2

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7bf0135cf7400e29982d61caf3b0a750e63c8b9e31ffb682a28a2e370e092951
size 16091

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Dec 12 15:44:15 UTC 2018 - Dan Čermák <dcermak@suse.com>
- Initial release

View File

@@ -0,0 +1,100 @@
#
# spec file for package python-sphinxcontrib-autoprogram
#
# Copyright (c) 2018 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/
%global short_name autoprogram
%global prefix python-sphinxcontrib
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: %{prefix}-%{short_name}
Version: 0.1.5
Release: 0
License: BSD-2-Clause
Summary: Documenting CLI programs
URL: https://github.com/sphinx-contrib/%{short_name}
Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-License-file-ci-skip.patch
Group: Development/Languages/Python
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module Sphinx >= 1.2}
BuildRequires: fdupes
# Documentation:
BuildRequires: %{python_module sphinxcontrib-websupport >= 1.0.1}
Requires: python-six
Requires: python-Sphinx >= 1.2
BuildArch: noarch
%description
This contrib extension, sphinxcontrib.autoprogram, provides an automated way to
document CLI programs. It scans arparser.ArgumentParser object, and then expands
it into a set of .. program:: and .. option:: directives.
%package doc
Summary: Documentation for sphinxcontrib-autoprogram
Group: Documentation
%description doc
This package contains the documentation for the package
python-sphinxcontrib-autoprogram.
%python_subpackages
%prep
%autosetup -n %{short_name}-%{version} -p1
%build
%python_build
# need to set PYTHONPATH, otherwise the build won't find the extension in the
# subfolder
export PYTHONPATH=$(pwd)
# set PYTHON so that the sphinx Makefile picks up the correct python version
%{python_expand export PYTHON=$python}
sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html
# remove inventory file, not needed for the documentation
rm doc/_build/html/objects.inv
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%files %{python_files doc}
%license LICENSE
%doc doc/_build/html/*
%changelog
* Wed Dec 12 2018 Dan Čermák <dcermak@suse.com> - 0.1.5-0
- Initial release