diff --git a/python-svg.path.spec b/python-svg.path.spec new file mode 100644 index 0000000000000000000000000000000000000000..cc463a78a1c9a57a07a9d9059c392fc0a898202f --- /dev/null +++ b/python-svg.path.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-svg.path +Version: 4.1 +Release: 1 +Summary: SVG path objects and parser +License: MIT +URL: https://github.com/regebro/svg.path +Source0: https://files.pythonhosted.org/packages/2e/62/b13cfccfe2de368169d1f0a13ec205a670122fa75e6be9de66cebaff690c/svg.path-4.1.tar.gz +BuildArch: noarch + + +%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 +%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-4.1 + +%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 +* Mon Oct 11 2021 Python_Bot <Python_Bot@openeuler.org> - 4.1-1 +- Package Init diff --git a/svg.path-4.1.tar.gz b/svg.path-4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ecf2d65bf3ae91ce12b9088eb1884e93cd07c861 Binary files /dev/null and b/svg.path-4.1.tar.gz differ