diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 17:21:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 17:21:05 +0000 |
commit | fbd68cb0c6217e4205d4061510c7f8dff5a082bd (patch) | |
tree | bc96eabfe2efb85aa6acd9c799794125bf5c8e27 | |
parent | e47a1fb2be8ce9d7c2b4817132289595e26b26b3 (diff) |
automatic import of python-svg-path
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-svg-path.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/svg.path-6.2.tar.gz diff --git a/python-svg-path.spec b/python-svg-path.spec new file mode 100644 index 0000000..a9a5abb --- /dev/null +++ b/python-svg-path.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-svg.path +Version: 6.2 +Release: 1 +Summary: SVG path objects and parser +License: MIT +URL: https://github.com/regebro/svg.path +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/01/56/32f5483faf385e8c3b382159af10ee08414c7f1be1b6da96a1821e7cc431/svg.path-6.2.tar.gz +BuildArch: noarch + +Requires: python3-Pillow +Requires: python3-pytest +Requires: python3-pytest-cov + +%description +svg.path is a collection of objects that implement the different path +commands in SVG, and a parser for SVG path definitions. + +%package -n python3-svg.path +Summary: SVG path objects and parser +Provides: python-svg.path +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-svg.path +svg.path is a collection of objects that implement the different path +commands in SVG, and a parser for SVG path definitions. + +%package help +Summary: Development documents and examples for svg.path +Provides: python3-svg.path-doc +%description help +svg.path is a collection of objects that implement the different path +commands in SVG, and a parser for SVG path definitions. + +%prep +%autosetup -n svg.path-6.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-svg.path -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 6.2-1 +- Package Spec generated @@ -0,0 +1 @@ +af97a9dc030f92a6f58367a06c84a87d svg.path-6.2.tar.gz |