代码拉取完成,页面将自动刷新
%global srcname pycosat
Summary: Python bindings to picosat (a SAT solver)
Name: python-%{srcname}
Version: 0.6.6
Release: 1%{?dist}
License: MIT
URL: https://github.com/ContinuumIO/%{srcname}
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildRequires: gcc picosat-devel
%description
PicoSAT is a popular SAT solver written by Armin Biere in pure C. This package
provides efficient Python bindings to picosat on the C level, i.e. when
importing pycosat, the picosat solver becomes part of the Python process itself.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: Python bindings to picosat (a SAT solver)
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools python%{python3_pkgversion}-pytest
%description -n python%{python3_pkgversion}-%{srcname}
PicoSAT is a popular SAT solver written by Armin Biere in pure C. This package
provides efficient Python bindings to picosat on the C level, i.e. when
importing pycosat, the picosat solver becomes part of the Python process itself.
%prep
%autosetup -n %{srcname}-%{version}
sed -i -e s/distutils.core/setuptools/ setup.py
rm -f picosat.*
sed -i "s/if .--inplace. in sys.argv:/if True:/" setup.py
%build
%py3_build
%install
%py3_install
%check
PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -vv
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc AUTHORS.md CHANGELOG.md README.rst
%{python3_sitearch}/*
%changelog
* Mon Dec 11 2023 Shuo Wang <abushwang@tencent.com> - 0.6.6-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。