d78caf7
%global upstream_name openslide-python
d78caf7
d78caf7
Name:           python-openslide
d78caf7
Version:        1.1.2
83bcbdf
Release:        5%{?dist}
d78caf7
Summary:        Python bindings for the OpenSlide library
d78caf7
d78caf7
License:        LGPLv2
d78caf7
URL:            http://openslide.org/
d78caf7
Source0:        https://github.com/openslide/%{upstream_name}/releases/download/v%{version}/%{upstream_name}-%{version}.tar.xz
d78caf7
d78caf7
# Disable Intersphinx so it won't download inventories at build time
d78caf7
Patch0:         openslide-python-1.0.1-disable-intersphinx.patch
d78caf7
d78caf7
BuildRequires:  gcc
d78caf7
BuildRequires:  openslide >= 3.4.0
d78caf7
BuildRequires:  python3-devel
d78caf7
BuildRequires:  python3-setuptools
d78caf7
BuildRequires:  python3-pillow
d78caf7
BuildRequires:  python3-sphinx
d78caf7
d78caf7
%description
d78caf7
The OpenSlide library allows programs to access virtual slide files
d78caf7
regardless of the underlying image format.  This package allows Python
d78caf7
programs to use OpenSlide.
d78caf7
d78caf7
d78caf7
%package -n python3-openslide
d78caf7
Summary:        Python 3 bindings for the OpenSlide library
d78caf7
Requires:       openslide >= 3.4.0
d78caf7
Requires:       python3-pillow
d78caf7
Provides:       openslide-python3 = %{version}-%{release}
d78caf7
Provides:       openslide-python3%{?_isa} = %{version}-%{release}
d78caf7
Obsoletes:      openslide-python3 < 1.1.1-5
d78caf7
%{?python_provide:%python_provide python3-openslide}
d78caf7
d78caf7
d78caf7
%description -n python3-openslide
d78caf7
The OpenSlide library allows programs to access virtual slide files
d78caf7
regardless of the underlying image format.  This package allows Python 3
d78caf7
programs to use OpenSlide.
d78caf7
d78caf7
d78caf7
%prep
d78caf7
%autosetup -n %{upstream_name}-%{version} -p1
d78caf7
d78caf7
# Examples include bundled jQuery and OpenSeadragon
d78caf7
rm -rf examples
d78caf7
d78caf7
d78caf7
%build
d78caf7
%py3_build
d78caf7
%{__python3} setup.py build_sphinx
d78caf7
rm build/sphinx/html/.buildinfo
d78caf7
d78caf7
d78caf7
%install
d78caf7
%py3_install
d78caf7
d78caf7
d78caf7
%check
d78caf7
%{__python3} setup.py test
d78caf7
d78caf7
d78caf7
%files -n python3-openslide
d78caf7
%doc CHANGELOG.txt build/sphinx/html
d78caf7
%license LICENSE.txt lgpl-2.1.txt
d78caf7
%{python3_sitearch}/openslide/
d78caf7
%{python3_sitearch}/*.egg-info/
d78caf7
d78caf7
d78caf7
%changelog
83bcbdf
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-5
83bcbdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
83bcbdf
377bcc2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
377bcc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
377bcc2
17a100b
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.2-3
17a100b
- Rebuilt for Python 3.10
17a100b
3115556
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
3115556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3115556
d78caf7
* Sun Oct 18 2020 Benjamin Gilbert <bgilbert@backtick.net> - 1.1.2-1
d78caf7
- New release