Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37558363
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-license-expression

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name license-expression

%def_with check

Name: python3-module-%pypi_name
Version: 30.1.0
Release: alt1
Summary: Comprehensive utility library to parse, compare, simplify and normalize license expressions
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/license-expression
VCS: https://github.com/nexB/license-expression.git
BuildArch: noarch
Source: %name-%version.tar
Patch: %name-%version-alt.patch

%py3_provides %pypi_name

BuildRequires(pre): rpm-build-python3

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools-scm)

%if_with check
# deps
BuildRequires: python3(boolean.py)

BuildRequires: python3(pytest)
%endif

%description
license-expression is a comprehensive utility library to parse, compare,
simplify and normalize license expressions (such as SPDX license expressions)
using boolean logic.

%prep
%setup
%autopatch -p1

# setuptools_scm implements a file_finders entry point which returns all files

# tracked by SCM.
if [ ! -d .git ]; then
   git init
   git config user.email author at example.com
   git config user.name author
   git add .
   git commit -m 'release'
   git tag '%version'
fi

%build
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -vra

%files
%doc README.rst
%python3_sitelibdir/license_expression/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin