[python-pygal] Initial import (#951777)
Ralph Bean ☃
ralph at fedoraproject.org
Tue Apr 16 19:56:43 UTC 2013
commit 84d9325b1116a3178eb4e862d53ff550dd8a0206
Author: Ralph Bean <rbean at redhat.com>
Date: Tue Apr 16 15:56:34 2013 -0400
Initial import (#951777)
.gitignore | 1 +
python-pygal.spec | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..347f000 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pygal-0.13.0.tar.gz
diff --git a/python-pygal.spec b/python-pygal.spec
new file mode 100644
index 0000000..80fd61d
--- /dev/null
+++ b/python-pygal.spec
@@ -0,0 +1,112 @@
+%if 0%{?fedora}
+# python3-pygal subpackage disabled for now.
+# There is a unicode error coming from setup.py in the build process
+# that doesn't occur when run by hand.
+%global with_python3 0
+%endif
+
+%global modname pygal
+
+Name: python-pygal
+Version: 0.13.0
+Release: 2%{?dist}
+Summary: A python svg graph plotting library
+
+Group: Development/Libraries
+License: LGPLv3+
+URL: http://pypi.python.org/pypi/pygal
+Source0: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-pyquery
+BuildRequires: python-flask
+BuildRequires: python-cairosvg
+BuildRequires: pytest
+BuildRequires: python-lxml
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+# We would need these, but there is no python3-flask, so, no tests for python3.
+#BuildRequires: python3-pyquery
+#BuildRequires: python3-flask
+#BuildRequires: python3-cairosvg
+#BuildRequires: python3-pytest
+BuildRequires: python3-lxml
+%endif
+
+Requires: python-lxml
+
+%description
+A python svg graph plotting library.
+
+%if 0%{?with_python3}
+%package -n python3-pygal
+Summary: A python svg graph plotting library
+Group: Development/Libraries
+
+Requires: python3-lxml
+
+%description -n python3-pygal
+A python svg graph plotting library
+%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
+# Tests would require python3-flask, which does not exist. Disabled for now.
+#%%if 0%%{?with_python3}
+#pushd %%{py3dir}
+#%%{__python3} setup.py test
+#popd
+#%%endif
+
+%files
+%doc README
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}*
+%{_bindir}/pygal_gen.py
+
+%if 0%{?with_python3}
+%files -n python3-pygal
+%doc README
+%{python3_sitelib}/%{modname}/
+%{python3_sitelib}/%{modname}-%{version}-*
+%endif
+
+%changelog
+* Tue Apr 16 2013 Ralph Bean <rbean at redhat.com> - 0.13.0-2
+- Updated license with clarification from usptream
+ https://github.com/Kozea/pygal/pull/32
+
+* Sat Apr 13 2013 Ralph Bean <rbean at redhat.com> - 0.13.0-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..8e7b7ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+81756a9ade6b7c2e1fbd2fa1221edac5 pygal-0.13.0.tar.gz
More information about the scm-commits
mailing list