%global debug_package %{nil}
Name:           python3-owlrl
Version:        5.2.3
Release:        2%{?dist}
Summary:        RDF Closure inferencing

BuildArch:      noarch
License:        W3C
URL:            https://pypi.org/project/owlrl
Source:         https://files.pythonhosted.org/packages/32/72/4d9884d295f0591d6e27491358f6d4781b00d79ad018021d20d8bd8faa82/owlrl-5.2.3.tar.gz

BuildRequires:  python3-devel python3-wheel python3-setuptools python3-rdflib

%description
OWL-RL and RDFS based RDF Closure inferencing for Python

%prep
%autosetup -n owlrl-5.2.3
# hack for f33
sed -i 's^rdflib>=5.0.0^rdflib>4.0.0^' requirements.txt

%build
%{__python3} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

%files
%{python3_sitelib}/*
%{_bindir}/RDFConvertService
%{_bindir}/owlrl

%doc README.rst
%license LICENSE.txt

%changelog
* Sun Nov 07 2021 Bruno Postle <bruno@postle.net> 5.2.3-2
- initial package