Blame python-license-expression.spec

ef368d2
%global pypi_name license-expression
ef368d2
ef368d2
Name:           python-%{pypi_name}
8f901b9
Version:        1.0
babcad7
Release:        4%{?dist}
ef368d2
Summary:        Library to parse, compare, simplify and normalize license expressions
ef368d2
# `irc-notify.py` in the tarball is licensed under GPL, but not re-distributed
ef368d2
License:        ASL 2.0
ef368d2
URL:            https://github.com/nexB/license-expression/
ef368d2
Source0:        %pypi_source
ef368d2
ef368d2
BuildArch:      noarch
ef368d2
ef368d2
%global _description \
ef368d2
This module defines a mini language to parse, validate, simplify, normalize and\
ef368d2
compare license expressions using a boolean logic engine.\
ef368d2
\
ef368d2
This supports SPDX license expressions and also accepts other license naming\
ef368d2
conventions and license identifiers aliases to resolve and normalize licenses.\
ef368d2
\
ef368d2
Using boolean logic, license expressions can be tested for equality,\
ef368d2
containment, equivalence and can be normalized or simplified.
ef368d2
ef368d2
%description %{_description}
ef368d2
ef368d2
%package -n     python%{python3_pkgversion}-%{pypi_name}
ef368d2
Summary:        %{summary}
ef368d2
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
ef368d2
BuildRequires:  python%{python3_pkgversion}-devel
ef368d2
BuildRequires:  python%{python3_pkgversion}-setuptools
ef368d2
BuildRequires:  %{py3_dist pytest}
ef368d2
BuildRequires:  %{py3_dist boolean.py}
ef368d2
ef368d2
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
ef368d2
ef368d2
Python 3 version.
ef368d2
ef368d2
%prep
ef368d2
%autosetup -n %{pypi_name}-%{version}
ef368d2
# Remove bundled egg-info
ef368d2
rm -r src/*.egg-info/
ef368d2
rm PKG-INFO
ef368d2
ef368d2
%build
ef368d2
%py3_build
ef368d2
ef368d2
%install
ef368d2
%py3_install
ef368d2
ef368d2
%check
ef368d2
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
ef368d2
ef368d2
%files -n python%{python3_pkgversion}-%{pypi_name}
ef368d2
%license apache-2.0.LICENSE NOTICE
ef368d2
%doc README.rst
ef368d2
%{python3_sitelib}/license_expression*.egg-info/
ef368d2
%{python3_sitelib}/license_expression/
ef368d2
ef368d2
%changelog
babcad7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
babcad7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
babcad7
4654e00
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.0-3
4654e00
- Rebuilt for Python 3.9
4654e00
6edf0cf
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
6edf0cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6edf0cf
8f901b9
* Thu Oct 31 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 1.0-1
8f901b9
- new version
8f901b9
ef368d2
* Mon Sep 02 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.999-1
ef368d2
- New package.