Accepting request 320124 from home:TheBlackCat:branches:devel:languages:python

Split documentation into own package to avoid dependency loop

OBS-URL: https://build.opensuse.org/request/show/320124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=37
This commit is contained in:
Todd R 2015-08-03 10:07:09 +00:00 committed by Git OBS Bridge
parent 1bd2a63162
commit 82db965da4
2 changed files with 5 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 3 10:04:09 UTC 2015 - toddrme2178@gmail.com
- Actually remove documentation requirements
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 3 09:46:34 UTC 2015 - toddrme2178@gmail.com Mon Aug 3 09:46:34 UTC 2015 - toddrme2178@gmail.com

View File

@ -35,8 +35,6 @@ Patch0: 0001-Remove-sphinx_config.init_values-manual-call.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-pip >= 1.4 BuildRequires: python-pip >= 1.4
# Documentation requirements:
BuildRequires: python-Sphinx >= 1.1.2
# Test requirements: # Test requirements:
%if %{with test} %if %{with test}
#BuildRequires: python-coverage >= 3.6 #BuildRequires: python-coverage >= 3.6
@ -69,14 +67,6 @@ them every time. It will set versions, process requirements
files and generate AUTHORS and ChangeLog file all from git files and generate AUTHORS and ChangeLog file all from git
information. information.
%package doc
Summary: Python Build Reasonableness documentation
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep %prep
%setup -q -n pbr-%{version} %setup -q -n pbr-%{version}
%patch0 -p1 %patch0 -p1
@ -85,7 +75,6 @@ sed -i "s/, 'sphinx\.ext\.intersphinx'//" doc/source/conf.py
%build %build
python setup.py build python setup.py build
python setup.py build_sphinx && rm doc/build/html/.buildinfo
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
@ -119,8 +108,4 @@ fi
%{_bindir}/pbr %{_bindir}/pbr
%ghost %{_sysconfdir}/alternatives/pbr %ghost %{_sysconfdir}/alternatives/pbr
%files doc
%defattr(-,root,root,-)
%doc doc/build/html
%changelog %changelog