%bcond_without dotests

%global __tar /opt/freeware/bin/tar

%global py_major 3.12

%global py_minor 11

%global python_major python%{py_major}

%global pkgname alabaster 

%global meta_package python3-%{pkgname}

%global python3_sitearch %(%{python_major} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(0))")

Name:           %{python_major}-%{pkgname}
Version:        1.0.0 
Release:        1 
Summary:        Configurable sidebar-enabled Sphinx theme 
License:        BSD 
URL:            https://pypi.python.org/pypi/%{pkgname}
Source0:        https://files.pythonhosted.org/packages/source/a/%{pkgname}/%{pkgname}-%{version}.tar.gz
BuildArch:      noarch


BuildRequires:  %{python_major}-devel >= %{py_major}.%{py_minor}
BuildRequires:  %{python_major}-setuptools >= 65.2.0
Requires:       %{python_major} >= %{py_major}.%{py_minor}


%description
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
used in his Requests project), which was itself originally based on @mitsuhiko's
theme used for Flask & related projects.

%package -n %{meta_package}
Summary:       Meta-package for %{name}

Requires:      python3 >= %{py_major}.%{py_minor}
Requires:      %{name} = %{version}-%{release}

%description -n %{meta_package}
This is a Meta-package for %{name} package.



%prep
%autosetup -n %{pkgname}-%{version}


%build


%install
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
%{python_major} -m pip install . --root %{buildroot} -I --no-deps

%check
%if %{with dotests}
# No Tests
%endif


%files
%defattr(-,root,system,-)
%license LICENSE.rst 
%doc README.rst
%{python3_sitearch}/*

%files -n %{meta_package}
%defattr(-,root,system,-)


%changelog
* Mon Jul 21 2025 Parth Patel <parth.patel7@ibm.com> - 1.0.0-1 
- Update to version 1.0.0
- Build with python3.12

* Mon Jan 09 2023 Sangeetha Bandi <sanbandi@in.ibm.com> - 0.7.12-2
- alabaster for python3.9

* Fri Nov 22 2019 Ashwini Chandrappa <ashwic22@in.ibm.com> -0.7.12-1
-Initial Build

