同步操作将从 src-openEuler/python-pathtools 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global upname pathtoolsName: python-%{upname}Version: 0.1.2Release: 1Summary: Pattern matching and various utilities for file systems pathsLicense: MITURL: https://github.com/gorakhargosh/%{upname}Source0: %{pypi_source %{upname}}# This is hacky, but I don't feel like writing a real fix for this# silly upstream approach. imp is retired in python 3.12, so we need# to not use it. This replaces the use of it with a marker string# we'll sub out with the real version in %prep# not upstreamable, upstream would need to do the mess recommended at# https://docs.python.org/3.12/whatsnew/3.12.html#removed , or just# use a less silly way of getting version numbers into setup.py...Patch: pathtools-0.1.2-version_imp.patchBuildArch: noarchBuildRequires: makeBuildRequires: python3-develBuildRequires: python3-setuptoolsBuildRequires: python3-sphinx%global _description\%{name} is a Python API library for common path\and pattern functionality.\%description %_description%package -n python3-%{upname}Summary: %summary%{?python_provide:%python_provide python3-%{upname}}%description -n python3-%{upname} %_description%prep%autosetup -n %{upname}-%{version} -p1# remove hashbang from lib's filessed -i -e '/#!\//d' pathtools/*.py# Use the default sphinx theme# python-flask-sphinx-themes is orphanedsed -i "s/html_theme = 'flask'/html_theme = 'default'/" ./docs/source/conf.py# replace the marker from the imp-removal patch with the real versionsed -i -e "s,||VERSION||,'%{version}',g" setup.py%build%py3_buildpushd docsmake SPHINXBUILD=sphinx-build-3 htmlrm -rf build/html/.build*popd%install%py3_install%files -n python3-%{upname}%license LICENSE%doc AUTHORS LICENSE README%doc docs/build/html%{python3_sitelib}/pathtools*/%changelog* Sun Apr 14 2024 Han Jinpeng <hanjinpeng@kylinos.cn> - 0.1.2-1- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。