Group :: Development/Python3
RPM: python3-module-django-contrib-comments
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define modname django_comments
%define pypi_name django-contrib-comments
Name: python3-module-%pypi_name
Version: 2.2.0
Release: alt1
Summary: Django "excontrib" Comments
License: BSD
Group: Development/Python3
Url: https://github.com/django/django-contrib-comments
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%add_python3_self_prov_path %buildroot%python3_sitelibdir/%modname/tests
%py3_provides %pypi_name
%description
This framework can be used to attach comments to any model, so you can use it
for comments on blog entries, photos, book chapters, or anything else.
%package tests
Summary: Tests for %pypi_name
Group: Development/Python3
Requires: %name = %EVR
%description tests
This framework can be used to attach comments to any model, so you can use it
for comments on blog entries, photos, book chapters, or anything else.
This package contains tests for %pypi_name.
%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
$(find ./ -name '*.py')
%build
%pyproject_build
%install
%pyproject_install
mv tests/ %buildroot%python3_sitelibdir/%modname/
%files
%doc *.rst *.txt docs/
%python3_sitelibdir/%modname
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%exclude %python3_sitelibdir/%modname/tests
%files tests
%python3_sitelibdir/%modname/tests
%changelog
…
Full changelog you can see here
%define modname django_comments
%define pypi_name django-contrib-comments
Name: python3-module-%pypi_name
Version: 2.2.0
Release: alt1
Summary: Django "excontrib" Comments
License: BSD
Group: Development/Python3
Url: https://github.com/django/django-contrib-comments
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%add_python3_self_prov_path %buildroot%python3_sitelibdir/%modname/tests
%py3_provides %pypi_name
%description
This framework can be used to attach comments to any model, so you can use it
for comments on blog entries, photos, book chapters, or anything else.
%package tests
Summary: Tests for %pypi_name
Group: Development/Python3
Requires: %name = %EVR
%description tests
This framework can be used to attach comments to any model, so you can use it
for comments on blog entries, photos, book chapters, or anything else.
This package contains tests for %pypi_name.
%prep
%setup
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
$(find ./ -name '*.py')
%build
%pyproject_build
%install
%pyproject_install
mv tests/ %buildroot%python3_sitelibdir/%modname/
%files
%doc *.rst *.txt docs/
%python3_sitelibdir/%modname
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%exclude %python3_sitelibdir/%modname/tests
%files tests
%python3_sitelibdir/%modname/tests
%changelog
…
Full changelog you can see here