Blame python-pypillowfight.spec

e019f0
%global srcname pypillowfight
e019f0
e019f0
Name:           python-%{srcname}
5b5182
Version:        0.2.4
0527f1
Release:        6%{?dist}
e019f0
Summary:        Various image processing algorithms
e019f0
e019f0
License:        GPLv2+
428d91
URL:            https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight
e019f0
# PyPI tarball does not include tests.
e019f0
#Source0:        https://files.pythonhosted.org/packages/source/p/%%{srcname}/%%{srcname}-%%{version}.tar.gz
e019f0
Source0:        https://github.com/openpaperwork/libpillowfight/archive/%{version}/%{srcname}-%{version}.tar.gz
5b5182
# https://github.com/openpaperwork/libpillowfight/issues/15
5b5182
Source1:        images.tar.xz
5b5182
# Because Fedora 32-bit does not necessarily support SSE2.
5b5182
Patch0001:      0001-Do-not-override-compile-args.patch
e019f0
e019f0
%global _description \
e019f0
Library containing various image processing algorithms: Automatic Color \
e019f0
Equalization, Unpaper's algorithms, Stroke Width Transformation, etc.
e019f0
e019f0
%description %{_description}
e019f0
e019f0
%package -n     python3-%{srcname}
e019f0
Summary:        %{summary}
e019f0
%{?python_provide:%python_provide python3-%{srcname}}
e019f0
8f8b10
BuildRequires:  gcc
e019f0
BuildRequires:  python3-devel
e019f0
BuildRequires:  python3-setuptools
e019f0
BuildRequires:  python3-nose >= 1.0
e019f0
BuildRequires:  python3-pillow
e019f0
e019f0
Requires:       python3-pillow%{?_isa}
e019f0
e019f0
%description -n python3-%{srcname} %{_description}
e019f0
e019f0
e019f0
%prep
e019f0
%autosetup -n libpillowfight-%{version} -p1
5b5182
%setup -D -T -n libpillowfight-%{version} -q -a 1
e019f0
e019f0
# Remove bundled egg-info
e019f0
rm -rf %{srcname}.egg-info
e019f0
5b5182
echo "#define INTERNAL_PILLOWFIGHT_VERSION \"%{version}\"" > src/pillowfight/_version.h
5b5182
e019f0
e019f0
%build
e019f0
%py3_build
e019f0
e019f0
e019f0
%install
e019f0
%py3_install
e019f0
e019f0
e019f0
%check
e019f0
# https://github.com/openpaperwork/libpillowfight/issues/11
e019f0
%ifarch i686
e019f0
PYTHONPATH=%{buildroot}%{python3_sitearch} \
e019f0
    nosetests-3 -v -P tests -e test_swt2
e019f0
%else
e081fb
%ifarch aarch64 ppc64le
e019f0
PYTHONPATH=%{buildroot}%{python3_sitearch} \
e019f0
    nosetests-3 -v -P tests -I 'tests_swt.py' -I 'tests_canny.py'
e019f0
%else
e019f0
PYTHONPATH=%{buildroot}%{python3_sitearch} \
e019f0
    nosetests-3 -v -P tests
e019f0
%endif
e019f0
%endif
e019f0
e019f0
e019f0
%files -n python3-%{srcname}
e019f0
%license LICENSE
e019f0
%doc README.md
e019f0
%{python3_sitearch}/pillowfight
e019f0
%{python3_sitearch}/%{srcname}-%{version}-py?.?.egg-info
e019f0
e019f0
e019f0
%changelog
0527f1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-6
0527f1
- Rebuilt for Python 3.8
0527f1
b250e5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-5
b250e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b250e5
88abcb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-4
88abcb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
88abcb
671721
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3
671721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
671721
b1232c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-2
b1232c
- Rebuilt for Python 3.7
b1232c
5b5182
* Tue Apr 10 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.4-1
5b5182
- New upstream release.
5b5182
1f09c9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
1f09c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1f09c9
e019f0
* Sun Dec 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.2-2
e019f0
- Fix license and requires.
e019f0
e019f0
* Wed Dec 27 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.2-1
e019f0
- Initial package.