Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 312151046b4dbd118465c78400de0e45 > files > 1

python-sphinxcontrib-websupport-1.1.0-1.mga7.src.rpm

%global pypi_name sphinxcontrib-websupport

%bcond_with tests

Name:           python-sphinxcontrib-websupport
Version:        1.1.0
Release:        %mkrel 1
Group:          Development/Python
Summary:        Sphinx API for Web Apps

License:        BSD
URL:            https://pypi.python.org/pypi/sphinxcontrib-websupport
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python-devel
BuildRequires:  python-mock
%if %{with tests}
BuildRequires:  python2-pytest
%endif
BuildRequires:  python2-setuptools

BuildRequires:  python3-devel
BuildRequires:  python3-mock
%if %{with tests}
BuildRequires:  python3-pytest
%endif
BuildRequires:  python3-setuptools

%description
sphinxcontrib-webuspport provides a Python API to easily integrate Sphinx
documentation into your Web application.

%package -n	python2-%{pypi_name}
Summary:	Sphinx API for Web Apps
Provides:	python-%{pypi_name} = %{version}-%{release}

%description -n	python2-%{pypi_name}
sphinxcontrib-webuspport provides a Python API to easily integrate Sphinx
documentation into your Web application.

%package -n     python3-%{pypi_name}
Summary:        Sphinx API for Web Apps

%description -n python3-%{pypi_name}
sphinxcontrib-webuspport provides a Python API to easily integrate Sphinx
documentation into your Web application.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build
%py3_build

%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
%py3_install

#we don't want these
rm -rf %{buildroot}/%{python3_sitelib}/*-nspkg.pth

%py2_install

#we don't want these
rm -rf %{buildroot}/%{python2_sitelib}/*-nspkg.pth

%if %{with tests}
%check
PYTHONPATH=. py.test tests/
PYTHONPATH=. py.test-%{python3_version} tests/
%endif

%files -n python2-%{pypi_name}
%doc README.rst
%{python_sitelib}/sphinxcontrib/
%{python_sitelib}/sphinxcontrib_websupport-%{version}-py%{python2_version}.egg-info
#%%{python_sitelib}/sphinxcontrib_websupport-%%{version}-py%%{python2_version}-nspkg.pth

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_websupport-%{version}-py%{python3_version}.egg-info
#%%{python3_sitelib}/sphinxcontrib_websupport-%%{version}-py%%{python3_version}-nspkg.pth


%changelog
* Sun Mar 31 2019 wally <wally> 1.1.0-1.mga7
+ Revision: 1383427
- new version 1.1.0

* Sat Jan 05 2019 wally <wally> 1.0.1-3.mga7
+ Revision: 1349676
- rebuild for python3.7
- add bcond for tests and disable tests for now

* Thu Sep 20 2018 umeabot <umeabot> 1.0.1-2.mga7
+ Revision: 1290227
- Mageia 7 Mass Rebuild

* Wed Dec 27 2017 wally <wally> 1.0.1-1.mga7
+ Revision: 1185622
- imported package python-sphinxcontrib-websupport