代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-pypng 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global modname pypng
Name: python-pypng
Version: 0.0.18
Release: 1
Summary: Pure Python PNG image encoder/decoder
License: MIT
URL: http://pypi.python.org/pypi/pypng
Source0: https://github.com/drj11/%{modname}/archive/%{modname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: /usr/bin/2to3
BuildRequires: python3-devel
BuildRequires: python3-nose
%global _description\
PyPNG allows PNG image files to be read and written using pure Python.\
\
It's available from github.com https://github.com/drj11/pypng\
\
Documentation is kindly hosted by PyPI http://pythonhosted.org/pypng/
%description %_description
%package -n python3-pypng
Summary: Pure Python PNG image encoder/decoder
%{?python_provide:%python_provide python3-pypng}
%description -n python3-pypng
PyPNG allows PNG image files to be read and written using pure Python.
It's available from github.com https://github.com/drj11/pypng
Documentation is kindly hosted by PyPI http://pythonhosted.org/pypng/
%prep
%setup -q -n %{modname}-%{modname}-%{version}
# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info
# Remove the shebang from the main lib
lib=code/png.py
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
touch -r $lib $lib.new &&
mv $lib.new $lib
2to3 --write --nobackups .
%build
%py3_build
%install
%py3_install
%check
nosetests-3 code/png.py
%files -n python3-pypng
%doc README.txt LICENCE
%{python3_sitelib}/png.py*
%{python3_sitelib}/__pycache__/png*
%{python3_sitelib}/%{modname}-%{version}-*
%changelog
* Tue Jul 6 2021 Like <like@kylinos.cn> - 0.0.18-1
- init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。