Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37749296
en ru br
ALT Linux repositórios
S:2.2.0-alt1

Group :: Development/Python3
RPM: python3-module-django-contrib-comments

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009