From 79cfa74a61af0e972516215bc0a4f932dbcac32d Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain(a)gmail.com>
Date: Tue, 1 Dec 2015 08:24:35 +0100
Subject: Unretire
Signed-off-by: Igor Gnatenko <i.gnatenko.brain(a)gmail.com>
---
.gitignore | 1 +
dead.package | 1 -
python-pywt.spec | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 121 insertions(+), 1 deletion(-)
delete mode 100644 dead.package
create mode 100644 python-pywt.spec
create mode 100644 sources
diff --git a/.gitignore b/.gitignore
index 6b739b4..cef6c9b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/PyWavelets-0.2.0.tar.bz2
+/PyWavelets-0.3.0.tar.gz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index 4ddbba7..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-This package was retired on 2012-08-06 due to failure to build for multiple releases.
diff --git a/python-pywt.spec b/python-pywt.spec
new file mode 100644
index 0000000..e568a35
--- /dev/null
+++ b/python-pywt.spec
@@ -0,0 +1,119 @@
+%define modname pywt
+%define pkgname PyWavelets
+
+Name: python-%{modname}
+Version: 0.3.0
+Release: 2%{?dist}
+Summary: PyWavelets, wavelet transform module
+License: MIT
+URL:
http://pywavelets.readthedocs.org/
+Source0:
https://github.com/PyWavelets/pywt/archive/v%{version}/%{pkgname}-%{versi...
+
+BuildRequires: gcc
+
+%description
+PyWavelets is a Python wavelet transforms module that can do:
+
+* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
+* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
+* 1D and 2D Wavelet Packet decomposition and reconstruction
+* Computing Approximations of wavelet and scaling functions
+* Over seventy built-in wavelet filters and support for custom wavelets
+* Single and double precision calculations
+* Results compatibility with Matlab Wavelet Toolbox
+
+%package doc
+Summary: Documentation for %{name}
+
+%description doc
+Documentation for %{name}
+
+%package -n python2-%{modname}
+Summary: %{summary}
+%{?python_provide:%python_provide python2-%{modname}}
+BuildRequires: python2-devel Cython
+BuildRequires: numpy
+BuildRequires: python2-nose
+BuildRequires: python-sphinx
+Requires: numpy
+
+%description -n python2-%{modname}
+PyWavelets is a Python wavelet transforms module that can do:
+
+* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
+* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
+* 1D and 2D Wavelet Packet decomposition and reconstruction
+* Computing Approximations of wavelet and scaling functions
+* Over seventy built-in wavelet filters and support for custom wavelets
+* Single and double precision calculations
+* Results compatibility with Matlab Wavelet Toolbox
+
+Python 2 version.
+
+%package -n python3-%{modname}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{modname}}
+BuildRequires: python3-devel python3-Cython
+BuildRequires: python3-numpy
+BuildRequires: python3-nose
+BuildRequires: python3-sphinx
+Requires: python3-numpy
+
+%description -n python3-%{modname}
+PyWavelets is a Python wavelet transforms module that can do:
+
+* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
+* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
+* 1D and 2D Wavelet Packet decomposition and reconstruction
+* Computing Approximations of wavelet and scaling functions
+* Over seventy built-in wavelet filters and support for custom wavelets
+* Single and double precision calculations
+* Results compatibility with Matlab Wavelet Toolbox
+
+Python 3 version.
+
+%prep
+%autosetup -n %{modname}-%{version}
+
+sed '1{\@^#!/usr/bin/env python@d}' %{modname}/tests/*.py
+
+%build
+%py2_build
+%py3_build
+
+pushd doc
+ export PYTHONPATH=`readlink -f ../build/lib.*-%{python3_version}`
+ make html SPHINXBUILD=sphinx-build-%{python3_version}
+ find -name '.buildinfo' -delete
+popd
+
+%install
+%py2_install
+%py3_install
+
+%check
+%{__python2} runtests.py --pythonpath %{buildroot}%{python2_sitearch} --verbose
--no-build
+%{__python3} runtests.py --pythonpath %{buildroot}%{python3_sitearch} --verbose
--no-build
+
+%files doc
+%doc doc/build/html
+
+%files -n python2-%{modname}
+%license COPYING.txt
+%doc README.rst THANKS.txt
+%{python2_sitearch}/%{modname}/
+%{python2_sitearch}/%{pkgname}*.egg-info
+
+%files -n python3-%{modname}
+%license COPYING.txt
+%doc README.rst THANKS.txt
+%{python3_sitearch}/%{modname}/
+%{python3_sitearch}/%{pkgname}*.egg-info
+
+%changelog
+* Sat Nov 28 2015 Igor Gnatenko <i.gnatenko.brain(a)gmail.com> - 0.3.0-2
+- One doc subpkg
+- Drop shebangs from tests
+
+* Fri Nov 06 2015 Igor Gnatenko <i.gnatenko.brain(a)gmail.com> - 0.3.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..ef7ad95
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e0d3b87a46cc8e3304dd1396a9c9fcfa PyWavelets-0.3.0.tar.gz
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/python-pywt.git/commit/?h=f23&id=7...