3 %bcond_without doc # don't build doc
4 %bcond_with tests # do not perform "make test"
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: SPARQL Endpoint interface to Python 2
9 Summary(pl.UTF-8): Interfejs SPARQL Endpoint do Pythona 2
10 Name: python-SPARQLWrapper
14 Group: Libraries/Python
15 #Source0Download: https://github.com/RDFLib/sparqlwrapper/releases
16 Source0: https://github.com/RDFLib/sparqlwrapper/archive/%{version}/sparqlwrapper-%{version}.tar.gz
17 # Source0-md5: 177c10d032de0f37feb5108120c2bb5a
18 URL: https://rdflib.github.io/sparqlwrapper/
19 %{?with_doc:BuildRequires: epydoc}
20 BuildRequires: rpm-pythonprov
21 # for the py_build, py_install macros
22 BuildRequires: rpmbuild(macros) >= 1.714
24 BuildRequires: python-modules >= 1:2.5
25 BuildRequires: python-setuptools
27 BuildRequires: python-isodate
28 BuildRequires: python-keepalive >= 0.5
29 BuildRequires: python-rdflib >= 4.2.2
33 BuildRequires: python3-2to3 >= 1:3.2
34 BuildRequires: python3-modules >= 1:3.2
35 BuildRequires: python3-setuptools
37 BuildRequires: python3-isodate
38 BuildRequires: python3-keepalive >= 0.5
39 BuildRequires: python3-rdflib >= 4.2.2
42 Requires: python-modules >= 1:2.5
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 This is a wrapper around a SPARQL service. It helps in creating the
48 query URI and, possibly, convert the result into a more manageable
51 %description -l pl.UTF-8
52 Ten moduł to obudowanie usługi SPARQL, pomagające przy tworzeniu
53 URI zapytania oraz ewentualnie konwertujące wynik do bardziej
54 zarządzalnego formatu.
56 %package -n python3-SPARQLWrapper
57 Summary: SPARQL Endpoint interface to Python 3
58 Summary(pl.UTF-8): Interfejs SPARQL Endpoint do Pythona 3
59 Group: Libraries/Python
60 Requires: python3-modules >= 1:3.2
62 %description -n python3-SPARQLWrapper
63 This is a wrapper around a SPARQL service. It helps in creating the
64 query URI and, possibly, convert the result into a more manageable
67 %description -n python3-SPARQLWrapper -l pl.UTF-8
68 Ten moduł to obudowanie usługi SPARQL, pomagające przy tworzeniu
69 URI zapytania oraz ewentualnie konwertujące wynik do bardziej
70 zarządzalnego formatu.
73 Summary: API documentation for SPARQLWrapper module
74 Summary(pl.UTF-8): Dokumentacja API modułu SPARQLWrapper
78 API documentation for SPARQLWrapper module.
80 %description apidocs -l pl.UTF-8
81 Dokumentacja API modułu SPARQLWrapper.
84 %setup -q -n sparqlwrapper-%{version}
88 %py_build %{?with_tests:test}
92 %py3_build %{?with_tests:test}
100 rm -rf $RPM_BUILD_ROOT
113 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc AUTHORS.md ChangeLog.txt LICENSE.txt MANAGEMENT.md README.md
119 %{py_sitescriptdir}/SPARQLWrapper
120 %{py_sitescriptdir}/SPARQLWrapper-%{version}-py*.egg-info
124 %files -n python3-SPARQLWrapper
125 %defattr(644,root,root,755)
126 %doc AUTHORS.md ChangeLog.txt LICENSE.txt MANAGEMENT.md README.md
127 %{py3_sitescriptdir}/SPARQLWrapper
128 %{py3_sitescriptdir}/SPARQLWrapper-%{version}-py*.egg-info
133 %defattr(644,root,root,755)