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
License:        W3C
e088baa
URL:            https://github.com/RDFLib/OWL-RL
b09ecf1
Source0:        %{pypi_source owlrl}
a64277c
# https://github.com/RDFLib/OWL-RL/pull/62
a64277c
Patch0:         remove_invalid_shebang.patch
e088baa
BuildArch:      noarch
a64277c
Obsoletes:      python3-owlrl <= 5.2.1-3
e088baa
e088baa
%description %_description
e088baa
78b41b8
a942058
%package -n python3-owl_rl
e088baa
Summary:        %{summary}
e088baa
BuildRequires:  python3-devel
78b41b8
BuildRequires:  python3-pytest
a64277c
BuildRequires:  git-core
e088baa
a942058
%description -n python3-owl_rl %_description
e088baa
78b41b8
e088baa
%prep
a64277c
%autosetup -p1 -n owlrl-%{version} -S git
e088baa
98cf7e4
80541ba
%generate_buildrequires
80541ba
%pyproject_buildrequires
e088baa
78b41b8
e088baa
%build
80541ba
%pyproject_wheel
e088baa
78b41b8
e088baa
%install
80541ba
%pyproject_install
80541ba
%pyproject_save_files owlrl
e088baa
78b41b8
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
78b41b8
80541ba
%files -n python3-owl_rl -f %{pyproject_files}
e088baa
%doc README.rst
e088baa
%{_bindir}/owlrl
e088baa
%{_bindir}/RDFConvertService
e088baa
78b41b8
e088baa
%changelog
f235702
%autochangelog