Modify the install way to provides python3dist module
This commit is contained in:
parent
2313876591
commit
0e33a833f3
@ -1,7 +1,7 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-wrapt
|
Name: python-wrapt
|
||||||
Version: 1.14.0
|
Version: 1.14.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Python module for decorators, wrappers and monkey patching
|
Summary: A Python module for decorators, wrappers and monkey patching
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/GrahamDumpleton/wrapt
|
URL: https://github.com/GrahamDumpleton/wrapt
|
||||||
@ -45,44 +45,24 @@ far more scenarios than typical decorators and provide more predictable and cons
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
pushd docs
|
||||||
|
sphinx-build -b html -d build/doctrees . build/html
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
%files -n python3-wrapt
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
%doc README.rst LICENSE
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
%{python3_sitearch}/{wrapt,wrapt-%{version}-py*.egg-info}
|
||||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc docs/build/html
|
||||||
%files -n python3-wrapt -f filelist.lst
|
|
||||||
|
|
||||||
%files help -f doclist.lst
|
|
||||||
%{_docdir}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 13 2022 caodongxia <caodongxia@h-partners.com> - 1.14.0-2
|
||||||
|
- Modify the install way to provides python3dist module
|
||||||
|
|
||||||
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.14.0-1
|
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.14.0-1
|
||||||
- Upgrade to version 1.14.0
|
- Upgrade to version 1.14.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user