[python-Bottleneck/f18] Initial import (#999563)

Björn Esser besser82 at fedoraproject.org
Thu Aug 22 14:02:32 UTC 2013


commit 8c1528b56e603020a9320cab97df41e25b32f821
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Thu Aug 22 16:01:02 2013 +0200

    Initial import (#999563)

 .gitignore             |    4 ++
 python-Bottleneck.spec |  129 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 134 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4a406bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*~
+*.rpm
+*.tar*
+results_*/
diff --git a/python-Bottleneck.spec b/python-Bottleneck.spec
new file mode 100644
index 0000000..7dcfb91
--- /dev/null
+++ b/python-Bottleneck.spec
@@ -0,0 +1,129 @@
+%global __provides_exclude_from ^%{python_sitearch}/.*\\.so
+%global upname Bottleneck
+
+Name:		python-%{upname}
+Version:	0.6.0
+Release:	1%{?dist}
+Summary:	Collection of fast NumPy array functions written in Cython
+
+License:	BSD
+URL:		http://berkeleyanalytics.com/bottleneck
+Source0:	https://pypi.python.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
+
+BuildRequires:	numpy
+BuildRequires:	python-nose
+%{?!fc18:BuildRequires:	python-numpydoc}
+BuildRequires:	python-setuptools
+BuildRequires:	python-sphinx
+BuildRequires:	python2-devel
+BuildRequires:	python3-devel
+BuildRequires:	python3-nose
+BuildRequires:	python3-numpy
+BuildRequires:	python3-scipy
+BuildRequires:	python3-setuptools
+BuildRequires:	scipy
+
+Requires:	numpy%{?_isa}
+Requires:	scipy%{?_isa}
+
+%description
+%{name} is a collection of fast NumPy array functions
+written in Cython.
+
+
+%package doc
+Summary:	Documentation files for %{name}
+
+BuildArch:	noarch
+Provides:	python3-%{upname}-doc = %{version}-%{release}
+
+%description doc
+This package contains the HTML-docs for %{name}.
+
+
+%package -n python3-%{upname}
+Summary:	Collection of fast NumPy array functions written in Cython
+
+Requires:	python3-numpy%{?_isa}
+Requires:	python3-scipy%{?_isa}
+
+%description -n python3-%{upname}
+python3-%{upname} is a collection of fast NumPy array functions
+written in Cython.
+
+
+%prep
+%setup -qn %{upname}-%{version}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+
+
+%build
+# export compiler-flags
+%configure ||:
+
+# build
+%{__python} setup.py build
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+
+# build autodocs
+export PYTHONPATH="`pwd`/`find . -depth -type d -name lib.linux*`"
+pushd doc
+mkdir -p source/_static
+make html
+
+# clean unneeded stuff from docs
+rm -rf build/html/.buildinfo \
+	build/html/_sources
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root `pwd`/test_install
+
+# clean unneeded stuff
+rm -rf test_install/%{python_sitearch}/bottleneck/src \
+	test_install/%{python_sitearch}/bottleneck/LICENSE
+
+# install into buildroot
+cp -a test_install/* %{buildroot}
+
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root `pwd`/test_install
+
+# clean unneeded stuff
+rm -rf test_install/%{python3_sitearch}/bottleneck/src \
+	test_install/%{python3_sitearch}/bottleneck/LICENSE
+
+# install into buildroot
+cp -a test_install/* %{buildroot}
+popd
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+pushd `find . -depth -type d -name lib.linux*`
+%{__python} -c 'import bottleneck as bn; bn.test()'
+popd
+pushd `find %{py3dir} -depth -type d -name lib.linux*`
+%{__python3} -c 'import bottleneck as bn; bn.test()'
+popd
+
+
+%files
+%doc bottleneck/LICENSE
+%{python_sitearch}/*
+
+%files doc
+%doc README* RELEASE* bottleneck/LICENSE doc/build/html
+
+%files -n python3-%{upname}
+%doc bottleneck/LICENSE
+%{python3_sitearch}/*
+
+
+%changelog
+* Wed Aug 21 2013 Björn Esser <bjoern.esser at gmail.com> - 0.6.0-1
+- Initial rpm release (#999563)
diff --git a/sources b/sources
index e69de29..2a49cee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+44ede1261fae49445b695ac861e48cb9  Bottleneck-0.6.0.tar.gz


More information about the scm-commits mailing list