14
0

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

- Remove non-free documentation (CC-BY-NC-SA-3.0 license).

OBS-URL: https://build.opensuse.org/request/show/522366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=29
This commit is contained in:
Todd R
2017-09-11 15:45:22 +00:00
committed by Git OBS Bridge
parent 9ff66e1757
commit 5719e540af
2 changed files with 15 additions and 24 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 8 16:31:46 UTC 2017 - toddrme2178@gmail.com
- Remove non-free documentation (CC-BY-NC-SA-3.0 license).
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 7 15:57:20 UTC 2017 - toddrme2178@gmail.com Thu Sep 7 15:57:20 UTC 2017 - toddrme2178@gmail.com

View File

@@ -18,6 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pyramid Name: python-pyramid
Version: 1.9.1 Version: 1.9.1
Release: 0 Release: 0
@@ -34,14 +35,9 @@ BuildRequires: %{python_module translationstring} >= 0.4
BuildRequires: %{python_module venusian} >= 1.0 BuildRequires: %{python_module venusian} >= 1.0
BuildRequires: %{python_module zope.deprecation} >= 3.5.0 BuildRequires: %{python_module zope.deprecation} >= 3.5.0
BuildRequires: %{python_module zope.interface} >= 3.8.0 BuildRequires: %{python_module zope.interface} >= 3.8.0
# SECTION documentation requirements BuildRequires: fdupes
BuildRequires: python3-Sphinx >= 1.3.5 BuildRequires: python-rpm-macros
BuildRequires: python3-docutils %if %{with test}
BuildRequires: python3-pylons-sphinx-themes
BuildRequires: python3-repoze.sphinx.autointerface
BuildRequires: python3-sphinxcontrib-autoprogram
# /SECTION
# SECTION testing requirements
BuildRequires: %{python_module WebTest} >= 1.3.1 BuildRequires: %{python_module WebTest} >= 1.3.1
BuildRequires: %{python_module coverage} BuildRequires: %{python_module coverage}
BuildRequires: %{python_module hupper} BuildRequires: %{python_module hupper}
@@ -49,9 +45,7 @@ BuildRequires: %{python_module nose}
BuildRequires: %{python_module plaster-pastedeploy} BuildRequires: %{python_module plaster-pastedeploy}
BuildRequires: %{python_module plaster} BuildRequires: %{python_module plaster}
BuildRequires: %{python_module zope.component} >= 4.0 BuildRequires: %{python_module zope.component} >= 4.0
# /SECTION %endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PasteDeploy >= 1.5.0 Requires: python-PasteDeploy >= 1.5.0
Requires: python-WebOb >= 1.7.0 Requires: python-WebOb >= 1.7.0
Requires: python-repoze.lru >= 0.4 Requires: python-repoze.lru >= 0.4
@@ -70,13 +64,8 @@ Pyramid is a Python web application development framework
produced by the Pylons Project (http://pylonsproject.org). produced by the Pylons Project (http://pylonsproject.org).
It was previously known as repoze.bfg (http://bfg.repoze.org). It was previously known as repoze.bfg (http://bfg.repoze.org).
%package -n %{name}-doc # NOTE: The documentation in the docs/ directory is under a
Summary: Documentation for %{name} # non-free license (CC-BY-NC-SA-3.0). Do not package it.
Group: Documentation/HTML
Provides: %{python_module pyramid-doc = %{version}}
%description -n %{name}-doc
This package contains documentation files for %{name}.
%prep %prep
%setup -q -n pyramid-%{version} %setup -q -n pyramid-%{version}
@@ -87,7 +76,6 @@ touch -r pyramid/__init__.py pyramid/scaffolds/alchemy/+package+/scripts/__init_
%build %build
%python_build %python_build
%{_python_use_flavor python3} %{_python_use_flavor python3}
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install %install
%python_install %python_install
@@ -99,9 +87,11 @@ for p in pcreate pdistreport prequest proutes pserve pshell ptweens pviews; do
%python_clone -a %{buildroot}%{_bindir}/$p %python_clone -a %{buildroot}%{_bindir}/$p
done done
%if %{with test}
%check %check
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_expand $python setup.py nosetests --with-coverage -vvv %python_exec setup.py nosetests --with-coverage -vvv
%endif
%post %post
%python_install_alternative pcreate pdistreport prequest proutes pserve pshell ptweens pviews %python_install_alternative pcreate pdistreport prequest proutes pserve pshell ptweens pviews
@@ -122,8 +112,4 @@ export LANG=en_US.UTF-8
%python_alternative %{_bindir}/pviews %python_alternative %{_bindir}/pviews
%{python_sitelib}/* %{python_sitelib}/*
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc build/sphinx/html
%changelog %changelog