Package init
This commit is contained in:
parent
99151fcdca
commit
9270a1c2b0
BIN
py-filelock-3.0.12.tar.gz
Normal file
BIN
py-filelock-3.0.12.tar.gz
Normal file
Binary file not shown.
70
python-filelock.spec
Normal file
70
python-filelock.spec
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
Name: python-filelock
|
||||||
|
Version: 3.0.12
|
||||||
|
Release: 1
|
||||||
|
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/python3.7/site-packages/filelock.py
|
||||||
|
%_prefix/lib/python3.7/site-packages/filelock-%{version}-py3.7.egg-info
|
||||||
|
%_prefix/lib/python3.7/site-packages/__pycache__/filelock*.py[co]
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.md
|
||||||
|
%{_mandir}/man1/py-filelock.1.gz
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 3.0.12-6
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user