## START: Set by rpmautospec
## (rpmautospec version 0.7.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 11;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
# The network tests are not mocked at all
# Will fix later
%bcond_with tests
%global srcname django-gravatar2
Name: python-%{srcname}
Version: 1.4.4
Release: %autorelease
Summary: Essential Gravatar support for Django
License: MIT
URL: https://gitlab.com/mailman/django-mailman3
Source0: %{pypi_source %{srcname}}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
# Test dependencies:
BuildRequires: python3dist(django)
%global _description %{expand:
A lightweight django-gravatar app. Includes helper methods for interacting with
gravatars outside of template code.
Features:
- Helper methods for constructing a gravatar url and checking an email for an
existing gravatar
- Templatetags for generating a gravatar url or gravatar tag.
- Full test suite}
%description %{_description}
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
%prep
%autosetup -p1 -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files django_gravatar
%if %{with tests}
%check
cd example_project
PYTHONPATH=${PYTHONPATH}:%{buildroot}%{python3_sitelib} \
%{__python3} ./manage.py test django_gravatar
%endif
%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.rst
%changelog
## START: Generated by rpmautospec
* Fri Jul 19 2024 Fedora Release Engineering - 1.4.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint - 1.4.4-10
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering - 1.4.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering - 1.4.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering - 1.4.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jun 29 2023 Python Maint - 1.4.4-6
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering - 1.4.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering - 1.4.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 14 2022 Python Maint - 1.4.4-3
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering - 1.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Dec 08 2021 Michel Alexandre Salim - 1.4.4-1
- Initial Fedora package
## END: Generated by rpmautospec