71436ff
%global srcname pyswip
71436ff
71436ff
Name:           python-%{srcname}
71436ff
Version:        0.2.7
71436ff
Release:        5%{?dist}
71436ff
Summary:        Python-SWI-Prolog bridge
71436ff
71436ff
License:        MIT
71436ff
URL:            https://github.com/yuce/pyswip
71436ff
Source0:        https://github.com/yuce/pyswip/archive/v%{version}/%{srcname}-%{version}.tar.gz
71436ff
71436ff
BuildArch:      noarch
71436ff
BuildRequires:  pl-devel
71436ff
BuildRequires:  python3-devel
71436ff
BuildRequires:  python3-pytest
71436ff
71436ff
%description
71436ff
PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your
71436ff
Python programs. It features an (incomplete) SWI-Prolog foreign language
71436ff
interface, a utility class that makes it easy querying with Prolog and also a
71436ff
Pythonic interface.
71436ff
71436ff
71436ff
%package     -n python3-%{srcname}
71436ff
Summary:        %summary
71436ff
# we need to require pl-devel because pyswip uses the unversioned libswipl.so
71436ff
Requires:       pl-devel
71436ff
%{?python_provide:%python_provide python3-%{srcname}}
71436ff
71436ff
%description -n python3-%{srcname}
71436ff
PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your
71436ff
Python programs. It features an (incomplete) SWI-Prolog foreign language
71436ff
interface, a utility class that makes it easy querying with Prolog and also a
71436ff
Pythonic interface.
71436ff
71436ff
71436ff
%prep
71436ff
%autosetup -n %{srcname}-%{version}
71436ff
71436ff
71436ff
%build
71436ff
%py3_build
71436ff
71436ff
71436ff
%install
71436ff
%py3_install
71436ff
71436ff
71436ff
%check
71436ff
pytest-3 tests
71436ff
71436ff
%files -n python3-%{srcname}
71436ff
%license LICENSE
71436ff
%doc README.md CHANGELOG.md
71436ff
%{python3_sitelib}/%{srcname}
71436ff
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
71436ff
71436ff
71436ff
%changelog
71436ff
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-5
71436ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
71436ff
71436ff
* Mon Sep 24 2018 Till Hofmann <thofmann@fedoraproject.org> - 0.2.7-4
71436ff
- Remove python2 subpackage
71436ff
71436ff
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-3
71436ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
71436ff
71436ff
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 0.2.7-2
71436ff
- Rebuilt for Python 3.7
71436ff
71436ff
* Sat Jun 09 2018 Till Hofmann <thofmann@fedoraproject.org> - 0.2.7-1
71436ff
- Update to 0.2.7
71436ff
71436ff
* Mon Jun 04 2018 Till Hofmann <thofmann@fedoraproject.org> - 0.2.6-1
71436ff
- Update to 0.2.6
71436ff
71436ff
* Fri May 25 2018 Till Hofmann <thofmann@fedoraproject.org> - 0.2.5-1
71436ff
- Update to 0.2.5
71436ff
71436ff
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-5.git72771d9
71436ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
71436ff
71436ff
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-4.git72771d9
71436ff
- Escape macros in %%changelog
71436ff
71436ff
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-3.git72771d9
71436ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
71436ff
71436ff
* Mon Mar 13 2017 Till Hofmann <till.hofmann@posteo.de> - 0.2.3-2.git72771d9
71436ff
- Don't glob %%{python_sitelib}/* but add files separately instead
71436ff
71436ff
* Sun Jan 15 2017 Till Hofmann <till.hofmann@posteo.de> - 0.2.3-1.git72771d9
71436ff
- Initial package