%global _empty_manifest_terminate_build 0Name: python-bitmathVersion: 1.3.3.1Release: 2Summary: Pythonic module for representing and manipulating file sizes with different prefix notations (file size unit conversion)License: MITURL: https://github.com/tbielawa/bitmathSource0: https://files.pythonhosted.org/packages/source/b/bitmath/bitmath-%{version}.tar.gzBuildArch: noarch%descriptionsimplifies many facets of interacting with file sizes in various units.%package -n python3-bitmathSummary: Pythonic module for representing and manipulating file sizes with different prefix notations (file size unit conversion)Provides: python-bitmath# Base build requiresBuildRequires: python3-develBuildRequires: python3-setuptoolsBuildRequires: python3-pbrBuildRequires: python3-pipBuildRequires: python3-wheel%description -n python3-bitmathsimplifies many facets of interacting with file sizes in various units.%package helpSummary: Pythonic module for representing and manipulating file sizes with different prefix notations (file size unit conversion)Provides: python3-bitmath-doc%description helpsimplifies many facets of interacting with file sizes in various units.%prep%autosetup -n bitmath-%{version} -p1%build%py3_build%install%py3_installinstall -d -m755 %{buildroot}/%{_pkgdocdir}if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fiif [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fiif [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fiif [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fipushd %{buildroot}if [ -d usr/lib ]; thenfind usr/lib -type f -printf "/%h/%f\n" >> filelist.lstfiif [ -d usr/lib64 ]; thenfind usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lstfiif [ -d usr/bin ]; thenfind usr/bin -type f -printf "/%h/%f\n" >> filelist.lstfiif [ -d usr/sbin ]; thenfind usr/sbin -type f -printf "/%h/%f\n" >> filelist.lstfitouch doclist.lstif [ -d usr/share/man ]; thenfind usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lstfipopdmv %{buildroot}/filelist.lst .mv %{buildroot}/doclist.lst .%files -n python3-bitmath -f filelist.lst%dir %{python3_sitelib}/*%files help -f doclist.lst%{_docdir}/*%changelog* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.3.3.1-2- DESC: delete -S git from %autosetup* Thu Jul 15 2021 OpenStack_SIG <openstack@openeuler.org> - 1.3.3.1-1- Package Spec generate
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型