#3 Add bcond_without docs
Closed 2 months ago by churchyard. Opened 6 months ago by kanarip.
rpms/ kanarip/python-hypothesis master  into  master

Add bcond_without docs
Jeroen van Meeuwen • 3 months ago  
file modified
+12

@@ -1,6 +1,8 @@ 

  %{?python_enable_dependency_generator}

  %global srcname hypothesis

  

+ %bcond_without docs

+ 

  Name:           python-%{srcname}

  Version:        4.23.8

  Release:        1%{?dist}

@@ -10,8 +12,10 @@ 

  URL:            https://github.com/HypothesisWorks/hypothesis-python

  Source0:        %{url}/archive/%{srcname}-python-%{version}/%{srcname}-%{version}.tar.gz

  

+ %if %{with docs}

  # Manpage

  BuildRequires:  %{_bindir}/sphinx-build

+ %endif

  

  BuildArch:      noarch

  

@@ -82,12 +86,16 @@ 

  %build

  %py2_build

  %py3_build

+ %if %{with docs}

  PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man

+ %endif

  

  %install

  %py2_install

  %py3_install

+ %if %{with docs}

  %{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1

+ %endif

  

  %if %{with tests}

  %check

@@ -99,14 +107,18 @@ 

  %doc README.rst

  %{python2_sitelib}/hypothesis-*.egg-info/

  %{python2_sitelib}/hypothesis/

+ %if %{with docs}

  %{_mandir}/man1/hypothesis.1*

+ %endif

  

  %files -n python3-%{srcname}

  %license ../LICENSE.txt

  %doc README.rst

  %{python3_sitelib}/hypothesis-*.egg-info

  %{python3_sitelib}/hypothesis/

+ %if %{with docs}

  %{_mandir}/man1/hypothesis.1*

+ %endif

  

  %changelog

  * Tue May 28 2019 Miro Hrončok <mhroncok@redhat.com> - 4.23.8-1

Allow breaking the build dependency loop to/from sphinx

rebased onto 8d411a3

4 months ago

I did not need this bcond when bootstrapping for Python 3.8.

Is it actually required?

Is it actually required?

rebased onto a87d6f1

3 months ago

Pull-Request has been closed by churchyard

2 months ago