Blame python-owl_rl.spec

e088baa
%global _description %{expand:
c62471f
A simple implementation of the OWL2 RL Profile, as well as a basic RDFS
c62471f
inference, on top of RDFLib. Based mechanical forward chaining. The
c62471f
distribution contains:
e088baa
c62471f
* scripts/RDFConvertService: can be used as a CGI script to invoke the
c62471f
library. It may have to be adapted to the local server setup.
c62471f
* scripts/owlrl: script that can be run locally on to transform a file into RDF
c62471f
(on the standard output). Run the script with -h to get the available flags.}
e088baa
e088baa
Name:           python-owl_rl
b09ecf1
Version:        6.0.2
f235702
Release:        %autorelease
e088baa
Summary:        OWL-RL and RDFS based RDF Closure inferencing for Python
e088baa
e088baa
License:        W3C
e088baa
URL:            https://github.com/RDFLib/OWL-RL
b09ecf1
Source0:        %{pypi_source owlrl}
e088baa
e088baa
BuildArch:      noarch
e088baa
e088baa
%description %_description
e088baa
a942058
%package -n python3-owl_rl
e088baa
Summary:        %{summary}
e088baa
BuildRequires:  python3-devel
07351db
e088baa
BuildRequires:  %{py3_dist pytest}
e088baa
a942058
%py_provides python3-owl_rl
9e4f337
Obsoletes:      python3-owlrl <= 5.2.1-3
e088baa
e088baa
a942058
%description -n python3-owl_rl %_description
e088baa
e088baa
%prep
b09ecf1
%autosetup -n owlrl-%{version}
e088baa
98cf7e4
# works with rdflib 5.0.0+, so loosen requirement
98cf7e4
sed -i -e 's/rdflib.*/rdflib/' requirements.txt
98cf7e4
# Remove when rdflib is updated to 6.0.0+, which includes rdflib_jsonld
98cf7e4
echo "rdflib_jsonld" >> requirements.txt
98cf7e4
80541ba
%generate_buildrequires
80541ba
%pyproject_buildrequires
e088baa
e088baa
%build
80541ba
%pyproject_wheel
e088baa
e088baa
%install
80541ba
%pyproject_install
80541ba
%pyproject_save_files owlrl
e088baa
e088baa
%check
e088baa
# test_version_converter needs an internet connection, therefore disabled
e088baa
%pytest -k 'not cls_maxqc1' \
e088baa
    --deselect test/test_version_converter.py
e088baa
80541ba
%files -n python3-owl_rl -f %{pyproject_files}
e088baa
%doc README.rst
e088baa
%{_bindir}/owlrl
e088baa
%{_bindir}/RDFConvertService
e088baa
e088baa
%changelog
f235702
%autochangelog