1 Star 0 Fork 20

桐小哥/python-filelock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-filelock.spec 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
shirely16 提交于 2020-06-18 15:18 +08:00 . fix python can not find file
Name: python-filelock
Version: 3.0.12
Release: 2
Summary: A platform independent file lock
License: Unlicense
URL: https://github.com/benediktschmitt/py-filelock
Source0: https://github.com/benediktschmitt/py-filelock/archive/v%{version}/py-filelock-%{version}.tar.gz
BuildArch: noarch
%description
This package contains a single module, which implements a platform
independent file locking mechanism for Python.
%package doc
Summary: Documentation for filelock, A platform independent file lock
BuildRequires: python3-sphinx python3-sphinx-theme-alabaster
%description doc
Documentation for filelock, A platform independent file lock
%package -n python3-filelock
Summary: A platform independent file lock
BuildRequires: python3-devel python3-setuptools
%{?python_provide:%python_provide python3-filelock}
Suggests: %{name}-doc
%description -n python3-filelock
This package contains a single module, which implements a platform
independent file locking mechanism for Python.
%package_help
%prep
%autosetup -p1 -n py-filelock-%{version}
%build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%make_build -C docs html man SPHINXBUILD=sphinx-build-%{python3_version}
rm docs/build/html/.buildinfo
%install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
install -p -m0644 -D docs/build/man/py-filelock.1 \
%{buildroot}%{_mandir}/man1/py-filelock.1
%check
%{__python3} test.py
%files doc
%defattr(-,root,root)
%license LICENSE
%doc docs/build/html
%files -n python3-filelock
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python%{python3_version}/site-packages/filelock.py
%_prefix/lib/python%{python3_version}/site-packages/filelock-%{version}-py3.*.egg-info
%_prefix/lib/python%{python3_version}/site-packages/__pycache__/filelock*.py[co]
%files help
%defattr(-,root,root)
%doc README.md
%{_mandir}/man1/py-filelock.1.gz
%changelog
* Thu Jun 18 2020 hanhui<hanhui15@huawei.com> - 3.0.12-2
- bugfix
- fix python can not find file
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 3.0.12-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tong_1001/python-filelock.git
git@gitee.com:tong_1001/python-filelock.git
tong_1001
python-filelock
python-filelock
master

搜索帮助