2020-08-11 12:12:34 +00:00
|
|
|
Name: python-django
|
|
|
|
Version: 3.0.7
|
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: A high-level Python Web framework
|
|
|
|
License: BSD
|
|
|
|
URL: https://www.djangoproject.com/
|
|
|
|
Source0: %{pypi_source Django}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains lang files.
|
|
|
|
Building this tests that lang files are marked with %%lang in filelist.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-django
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-django
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n Django-%{version}
|
|
|
|
%py3_shebang_fix django/conf/project_template/manage.py-tpl django/bin/django-admin.py
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2022-01-14 15:26:40 +00:00
|
|
|
%pyproject_buildrequires -R
|
2020-08-11 12:12:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2020-11-27 14:04:40 +00:00
|
|
|
# remove .po files (in ideal world, we would rebuild the .mo files first)
|
|
|
|
find -name "*.po" | xargs rm -f
|
|
|
|
|
2020-08-11 12:12:34 +00:00
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files django
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Internal check if generated lang entries are same as
|
|
|
|
# the ones generated using %%find_lang
|
|
|
|
%find_lang django
|
|
|
|
%find_lang djangojs
|
|
|
|
|
|
|
|
grep '^%%lang' %{pyproject_files} | sort > tested.lang
|
|
|
|
sort django.lang djangojs.lang > expected.lang
|
|
|
|
diff tested.lang expected.lang
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-django -f %{pyproject_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/django-admin
|
|
|
|
%{_bindir}/django-admin.py
|