diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d5b7aec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pyswip-0.2.10.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index d078a6c..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -SWI Prolog (package pl) has been retired from Fedora, this package provided Python bindings for SWI Prolog. diff --git a/python-pyswip.spec b/python-pyswip.spec new file mode 100644 index 0000000..1f53c02 --- /dev/null +++ b/python-pyswip.spec @@ -0,0 +1,97 @@ +%global srcname pyswip + +Name: python-%{srcname} +Version: 0.2.10 +Release: 1%{?dist} +Summary: Python-SWI-Prolog bridge + +License: MIT +URL: https://github.com/yuce/pyswip +Source0: https://github.com/yuce/pyswip/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: pl-devel +BuildRequires: python3-devel +BuildRequires: python3-pytest + +%description +PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your +Python programs. It features an (incomplete) SWI-Prolog foreign language +interface, a utility class that makes it easy querying with Prolog and also a +Pythonic interface. + + +%package -n python3-%{srcname} +Summary: %summary +# we need to require pl-devel because pyswip uses the unversioned libswipl.so +Requires: pl-devel +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your +Python programs. It features an (incomplete) SWI-Prolog foreign language +interface, a utility class that makes it easy querying with Prolog and also a +Pythonic interface. + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +%py3_build + + +%install +%py3_install + + +#%check +#pytest-3 tests + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md CHANGELOG.md +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Thu Jan 07 2021 Christoph Karl - 0.2.10 +- Revive with version 0.2.10 + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Sep 24 2018 Till Hofmann - 0.2.7-4 +- Remove python2 subpackage + +* Sat Jul 14 2018 Fedora Release Engineering - 0.2.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro HronĨok - 0.2.7-2 +- Rebuilt for Python 3.7 + +* Sat Jun 09 2018 Till Hofmann - 0.2.7-1 +- Update to 0.2.7 + +* Mon Jun 04 2018 Till Hofmann - 0.2.6-1 +- Update to 0.2.6 + +* Fri May 25 2018 Till Hofmann - 0.2.5-1 +- Update to 0.2.5 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.2.3-5.git72771d9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Feb 09 2018 Igor Gnatenko - 0.2.3-4.git72771d9 +- Escape macros in %%changelog + +* Thu Jul 27 2017 Fedora Release Engineering - 0.2.3-3.git72771d9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Mar 13 2017 Till Hofmann - 0.2.3-2.git72771d9 +- Don't glob %%{python_sitelib}/* but add files separately instead + +* Sun Jan 15 2017 Till Hofmann - 0.2.3-1.git72771d9 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2adad85 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyswip-0.2.10.tar.gz) = 1732ca35960ce742a83e0191dfc38563f2773d933c0213adec87adc22c6071e51daa8dbf31705422bae9d0c8dc844180d79226b3271ceb0029910afb208c4af7