File python-django-localflavor.spec of Package python-django-localflavor
#
# spec file for package python-django-localflavor
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-django-localflavor
Version: 5.0
Release: 0
Summary: Country-specific Django helpers
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/django/django-localflavor
Source: https://github.com/django/django-localflavor/archive/%{version}.tar.gz#/django-localflavor-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Django >= 2.2
Requires: python-python-stdnum >= 1.6
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-stdnum >= 1.6}
# /SECTION
%python_subpackages
%description
Country-specific Django helpers.
%prep
%autosetup -p1 -n django-localflavor-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export DJANGO_SETTINGS_MODULE=tests.settings
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/localflavor
%{python_sitelib}/django_localflavor-%{version}*info
%changelog