[python-svg-path] Initial import (#952343)

Ralph Bean ☃ ralph at fedoraproject.org
Mon Apr 22 23:23:14 UTC 2013


commit 00e5974bf21ac124389722f015ba5e5ec17a06c1
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Apr 22 19:23:06 2013 -0400

    Initial import (#952343)

 .gitignore           |    1 +
 python-svg-path.spec |   92 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1a4e355 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/svg.path-1.0b1.tar.gz
diff --git a/python-svg-path.spec b/python-svg-path.spec
new file mode 100644
index 0000000..8d5c004
--- /dev/null
+++ b/python-svg-path.spec
@@ -0,0 +1,92 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
+%global modname svg.path
+
+Name:               python-svg-path
+Version:            1.0b1
+Release:            1%{?dist}
+Summary:            SVG path objects and parser
+
+Group:              Development/Libraries
+License:            CC0
+URL:                http://pypi.python.org/pypi/svg.path
+Source0:            http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch:          noarch
+
+BuildRequires:      python2-devel
+BuildRequires:      python-setuptools
+
+Requires:           python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires:      python3-devel
+BuildRequires:      python3-setuptools
+%endif
+
+%description
+svg.path is a collection of objects that implement the different path
+commands in SVG, and a parser for SVG path definitions.
+
+%if 0%{?with_python3}
+%package -n python3-svg-path
+Summary:            SVG path objects and parser
+Group:              Development/Libraries
+
+Requires:           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.
+%endif
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+# Remove bundled egg-info in case it exists rm -rf %%{modname}.egg-info
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+%check
+%{__python} setup.py test
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+popd
+%endif
+
+%files
+%doc README.rst CHANGES.txt CONTRIBUTORS.txt
+%{python_sitelib}/svg/
+%{python_sitelib}/%{modname}-%{version}*
+
+%if 0%{?with_python3}
+%files -n python3-svg-path
+%doc README.rst CHANGES.txt CONTRIBUTORS.txt
+%{python3_sitelib}/svg/
+%{python3_sitelib}/%{modname}-%{version}-*
+%endif
+
+%changelog
+* Mon Apr 15 2013 Ralph Bean <rbean at redhat.com> - 1.0b1-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..65218cd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e9c8fdc2ec1213b389c23daa10ee055e  svg.path-1.0b1.tar.gz


More information about the scm-commits mailing list