1 Star 0 Fork 5

like/python-pypng

forked from src-openEuler/python-pypng 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pypng.spec 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
like 提交于 2021-07-06 15:31 . 添加python-pypng-0.0.18-1
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pangzihapipangzi/python-pypng.git
git@gitee.com:pangzihapipangzi/python-pypng.git
pangzihapipangzi
python-pypng
python-pypng
master

搜索帮助