[python-pyzolib] Initial package

Scott K Logan cottsay at fedoraproject.org
Thu Mar 6 19:09:43 UTC 2014


commit a6c6398854b0f7bf712304d9b19492f26ba4d64f
Author: Scott K Logan <logans at cottsay.net>
Date:   Thu Mar 6 12:09:27 2014 -0700

    Initial package

 .gitignore          |    1 +
 python-pyzolib.spec |   76 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..990badb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyzolib-0.2.8.tar.gz
diff --git a/python-pyzolib.spec b/python-pyzolib.spec
new file mode 100644
index 0000000..3710899
--- /dev/null
+++ b/python-pyzolib.spec
@@ -0,0 +1,76 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%endif
+
+Name:           python-pyzolib
+Version:        0.2.8
+Release:        1%{?dist}
+Summary:        Utilities for the Pyzo environment
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://www.pyzo.org
+Source0:        https://pypi.python.org/packages/source/p/pyzolib/pyzolib-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+%endif # if with_python3
+
+%description
+This package implements several small sub-modules and sub-packages that expose
+common functionality in a range of packages and applications in the Pyzo
+framework. 
+
+%if 0%{?with_python3}
+%package -n python3-pyzolib
+Summary:        Utilities for the Pyzo environment
+
+%description -n python3-pyzolib
+This package implements several small sub-modules and sub-packages that expose
+common functionality in a range of packages and applications in the Pyzo
+framework. 
+%endif # with_python3
+
+%prep
+%setup -qn pyzolib-%{version}
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%files
+%doc
+%{python2_sitelib}/pyzolib
+%{python2_sitelib}/pyzolib-%{version}-py?.?.egg-info
+
+%files -n python3-pyzolib
+%doc
+%{python3_sitelib}/pyzolib
+%{python3_sitelib}/pyzolib-%{version}-py?.?.egg-info
+
+%changelog
+* Wed Feb 12 2014 Scott K Logan <logans at cottsay.net> - 0.2.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..9645a07 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+da5574f4c00d6f9e89f02c3b4b23a038  pyzolib-0.2.8.tar.gz


More information about the scm-commits mailing list