d28e2ce
%{?python_enable_dependency_generator}
79cfa74
%define modname pywt
79cfa74
%define pkgname PyWavelets
79cfa74
79cfa74
Name:           python-%{modname}
f8519fc
Version:        1.1.1
0e634fc
Release:        6%{?dist}
79cfa74
Summary:        PyWavelets, wavelet transform module
79cfa74
License:        MIT
d28e2ce
URL:            https://pywavelets.readthedocs.io/en/latest
79cfa74
Source0:        https://github.com/PyWavelets/pywt/archive/v%{version}/%{pkgname}-%{version}.tar.gz
79cfa74
8202b74
BuildRequires:  make
79cfa74
BuildRequires:  gcc
d28e2ce
BuildRequires:  xorg-x11-server-Xvfb
79cfa74
79cfa74
%description
79cfa74
PyWavelets is a Python wavelet transforms module that can do:
79cfa74
79cfa74
* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
79cfa74
* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
79cfa74
* 1D and 2D Wavelet Packet decomposition and reconstruction
79cfa74
* Computing Approximations of wavelet and scaling functions
79cfa74
* Over seventy built-in wavelet filters and support for custom wavelets
79cfa74
* Single and double precision calculations
79cfa74
* Results compatibility with Matlab Wavelet Toolbox
79cfa74
79cfa74
%package doc
79cfa74
Summary:        Documentation for %{name}
d28e2ce
BuildRequires:  python3-sphinx
d28e2ce
BuildRequires:  python3-numpydoc
d28e2ce
BuildRequires:  python3-matplotlib
79cfa74
79cfa74
%description doc
d28e2ce
Documentation for %{name}.
79cfa74
79cfa74
%package -n python3-%{modname}
79cfa74
Summary:        %{summary}
79cfa74
%{?python_provide:%python_provide python3-%{modname}}
d28e2ce
BuildRequires:  python3-devel
d28e2ce
BuildRequires:  python3-setuptools
d28e2ce
BuildRequires:  python3-Cython
d28e2ce
BuildRequires:  python3dist(numpy) >= 1.9.1
f8519fc
BuildRequires:  python3-pytest
79cfa74
79cfa74
%description -n python3-%{modname}
79cfa74
PyWavelets is a Python wavelet transforms module that can do:
79cfa74
79cfa74
* 1D and 2D Forward and Inverse Discrete Wavelet Transform (DWT and IDWT)
79cfa74
* 1D and 2D Stationary Wavelet Transform (Undecimated Wavelet Transform)
79cfa74
* 1D and 2D Wavelet Packet decomposition and reconstruction
79cfa74
* Computing Approximations of wavelet and scaling functions
79cfa74
* Over seventy built-in wavelet filters and support for custom wavelets
79cfa74
* Single and double precision calculations
79cfa74
* Results compatibility with Matlab Wavelet Toolbox
79cfa74
79cfa74
Python 3 version.
79cfa74
79cfa74
%prep
Sergio Pascual 9e75bca
%autosetup -n %{modname}-%{version} -p1
79cfa74
Sergio Pascual eb5040e
sed -i '1{\@^#!/usr/bin/env python@d}' %{modname}/tests/*.py 
79cfa74
79cfa74
%build
d28e2ce
%py3_build -- --force
79cfa74
79cfa74
pushd doc
79cfa74
  export PYTHONPATH=`readlink -f ../build/lib.*-%{python3_version}`
4bdc649
  make html SPHINXBUILD=sphinx-build-3
79cfa74
  find -name '.buildinfo' -delete
79cfa74
popd
79cfa74
79cfa74
%install
79cfa74
%py3_install
79cfa74
79cfa74
%check
Sergio Pascual e5c6eb4
mkdir -p matplotlib
Sergio Pascual e5c6eb4
touch matplotlib/matplotlibrc
Sergio Pascual e5c6eb4
export XDG_CONFIG_HOME=`pwd`
Sergio Pascual e5c6eb4
pushd %{buildroot}/%{python3_sitearch}
f8519fc
  xvfb-run -a pytest-%{python3_version} pywt/tests --verbose -p no:cacheprovider \
7268678
%ifarch ppc64le
f8519fc
  -k 'not test_cwt_complex and not test_cwt_method_fft'
7268678
  # see https://github.com/PyWavelets/pywt/issues/508
7268678
%endif
4f6b67c
Sergio Pascual e5c6eb4
popd
79cfa74
79cfa74
%files doc
79cfa74
%doc doc/build/html
79cfa74
79cfa74
%files -n python3-%{modname}
d28e2ce
%license LICENSE
d28e2ce
%doc README.rst
79cfa74
%{python3_sitearch}/%{modname}/
79cfa74
%{python3_sitearch}/%{pkgname}*.egg-info
79cfa74
79cfa74
%changelog
0e634fc
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
0e634fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0e634fc
7980b61
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
7980b61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7980b61
8cb82a2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.1-4
8cb82a2
- Rebuilt for Python 3.10
8cb82a2
2dd8e03
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
2dd8e03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2dd8e03
452ea6b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
452ea6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
452ea6b
f8519fc
* Sun May 31 2020 Orion Poplawski <orion@nwra.com> - 1.1.1-1
f8519fc
- Update to 1.1.1
f8519fc
d6cf53e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-3
d6cf53e
- Rebuilt for Python 3.9
d6cf53e
42fcd0e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
42fcd0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
42fcd0e
23225fc
* Thu Sep  5 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-1
23225fc
- Update to latest version (#1683032)
23225fc
df9262c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-5
df9262c
- Rebuilt for Python 3.8
df9262c
cbcc143
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
cbcc143
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cbcc143
e805750
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
e805750
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e805750
4bdc649
* Fri Oct 05 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-2
4bdc649
- Remove python2 subpackage
4bdc649
d28e2ce
* Tue Sep 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-1
d28e2ce
- Update to 1.0.1
d28e2ce
b6e33f4
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-9
b6e33f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b6e33f4
596efda
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-8
596efda
- Rebuilt for Python 3.7
8bab694
- Invoke xvfb-run with -a to avoid random failures with the latter one
596efda
c1dc04f
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.2-7
c1dc04f
- Update Python 2 dependency declarations to new packaging standards
c1dc04f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c1dc04f
c447dc7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-6
c447dc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c447dc7
73e0432
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-5
73e0432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
73e0432
c5f4ee5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-4
c5f4ee5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c5f4ee5
Sergio Pascual 9e75bca
* Tue Jun 20 2017 Sergio Pascual  <sergiopr@fedoraproject.org> - 0.5.2-3
Sergio Pascual 9e75bca
- Tolerance error in tests fixed upstream github.com/PyWavelets/pywt/issues/316
Sergio Pascual 9e75bca
Sergio Pascual eb5040e
* Wed May 31 2017 Sergio Pascual  <sergiopr@fedoraproject.org> - 0.5.2-2
Sergio Pascual eb5040e
- Skip tolerance error en tests (for ppc64le aarch64 ppc64 s390x)
Sergio Pascual eb5040e
Sergio Pascual e5c6eb4
* Wed May 31 2017 Sergio Pascual  <sergiopr@fedoraproject.org> - 0.5.2-1
Sergio Pascual e5c6eb4
- New upstream source (0.5.2)
Sergio Pascual e5c6eb4
- Run tests with matplotlib under xvfb-run
Sergio Pascual e5c6eb4
89d1fc5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
89d1fc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
89d1fc5
c808ac1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-5
c808ac1
- Rebuild for Python 3.6
c808ac1
ce5121c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
ce5121c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ce5121c
3443e9d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
3443e9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3443e9d
79cfa74
* Sat Nov 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.0-2
79cfa74
- One doc subpkg
79cfa74
- Drop shebangs from tests
79cfa74
79cfa74
* Fri Nov 06 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.0-1
79cfa74
- Initial package