4 Star 0 Fork 1

OpenCloudOS Stream/python-pycosat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pycosat.spec 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
abushwang 提交于 2023-12-11 14:49 . init build
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/python-pycosat.git
git@gitee.com:opencloudos-stream/python-pycosat.git
opencloudos-stream
python-pycosat
python-pycosat
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891