commit 3a2db59f3393caaa16ae898660cd1c8c12a3f82b062f81d90663751e81fa1426 Author: Tomáš Chvátal Date: Mon Sep 9 15:23:43 2019 +0000 Accepting request 729465 from home:carmenbianca New dependency of devel:tools/reuse. OBS-URL: https://build.opensuse.org/request/show/729465 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-license-expression?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/license-expression-0.999.tar.gz b/license-expression-0.999.tar.gz new file mode 100644 index 0000000..2115021 --- /dev/null +++ b/license-expression-0.999.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce730e6f159f713106b361ce66f852ba6de77ca2f76984fc575de7d51758f722 +size 52618 diff --git a/python-license-expression.changes b/python-license-expression.changes new file mode 100644 index 0000000..d321e3f --- /dev/null +++ b/python-license-expression.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 5 13:23:12 UTC 2019 - Carmen Bianca Bakker + +- New package, version 0.999 diff --git a/python-license-expression.spec b/python-license-expression.spec new file mode 100644 index 0000000..1c8e317 --- /dev/null +++ b/python-license-expression.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-license-expression +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-license-expression +Version: 0.999 +Release: 0 +License: Apache-2.0 +Summary: Library to parse, compare, simplify and normalize license expressions +Url: https://github.com/nexB/license-expression +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/l/license-expression/license-expression-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module boolean.py >= 3.6} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +Requires: python-boolean.py >= 3.6 +BuildArch: noarch + +%python_subpackages + +%description +This module defines a mini language to parse, validate, simplify, normalize and +compare license expressions using a boolean logic engine. + +This supports SPDX license expressions and also accepts other license naming +conventions and license identifiers aliases to resolve and normalize licenses. + +Using boolean logic, license expressions can be tested for equality, +containment, equivalence and can be normalized or simplified. + + +%prep +%setup -q -n license-expression-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{pytest} + +%files %{python_files} +%license apache-2.0.LICENSE NOTICE +%doc README.rst +%{python_sitelib}/* + +%changelog