Ai
5 Star 0 Fork 2

src-openEuler/python-svgwrite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python-svgwrite.spec 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
温志伟 提交于 2022-08-04 10:08 +08:00 . update to 1.4.3
%global pypi_name svgwrite
Name: python-%{pypi_name}
Version: 1.4.3
Release: 1
Summary: Python library to create SVG drawings
License: MIT
URL: https://github.com/mozman/svgwrite
Source0: %{pypi_name}-%{version}.tar.gz
Patch0: 0001-Skip-test-that-needs-internet-connection.patch
BuildArch: noarch
%description
Python library to create SVG drawings.
%package -n python3-%{pypi_name}
Summary: Python 3 library to create SVG drawings
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pyparsing
BuildRequires: python3-pytest
Requires: python3-setuptools
Requires: python3-pyparsing
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Python 3 library to create SVG drawings.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%py3_build
%install
%py3_install
# Remove shebang
for lib in %{buildroot}%{python3_sitelib}/%{pypi_name}/{,*/}/*.py; do
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
touch -r $lib $lib.new &&
mv $lib.new $lib
done
%check
%{__python3} -m unittest discover -s tests
%files -n python3-%{pypi_name}
%license LICENSE.TXT
%doc NEWS.rst README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{pypi_name}/
%changelog
* Thu Aug 4 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 1.4.3-1
- Update to 1.4.3
* Fri Jun 25 2021 liufeng <liufeng@kylinos.cn> - 1.4.1-1
- Package Init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-svgwrite.git
git@gitee.com:src-openeuler/python-svgwrite.git
src-openeuler
python-svgwrite
python-svgwrite
master

搜索帮助