|
|
@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
# Refer to the comment for Source0 below on how to obtain the source tarball
|
|
|
|
# Refer to the comment for Source0 below on how to obtain the source tarball
|
|
|
|
# The saved file has format python-pillow-Pillow-$version-$ahead-g$shortcommit.tar.gz
|
|
|
|
# The saved file has format python-pillow-Pillow-$version-$ahead-g$shortcommit.tar.gz
|
|
|
|
%global commit eb72bf86fb867841f8a9e192e43e511bf4618709
|
|
|
|
%global commit 344cb709ed0111adcc6ad47cc007507c3f5efeb3
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global ahead 0
|
|
|
|
%global ahead 0
|
|
|
|
|
|
|
|
|
|
|
@ -24,8 +24,8 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pillow
|
|
|
|
Name: python-pillow
|
|
|
|
Version: 3.1.1
|
|
|
|
Version: 3.2.0
|
|
|
|
Release: 3%{?snap}%{?dist}
|
|
|
|
Release: 1%{?snap}%{?dist}
|
|
|
|
Summary: Python image processing library
|
|
|
|
Summary: Python image processing library
|
|
|
|
|
|
|
|
|
|
|
|
# License: see http://www.pythonware.com/products/pil/license.htm
|
|
|
|
# License: see http://www.pythonware.com/products/pil/license.htm
|
|
|
@ -36,9 +36,6 @@ URL: http://python-pillow.github.io/
|
|
|
|
# wget --content-disposition https://github.com/python-pillow/Pillow/tarball/$commit
|
|
|
|
# wget --content-disposition https://github.com/python-pillow/Pillow/tarball/$commit
|
|
|
|
Source0: https://github.com/python-pillow/Pillow/tarball/%{commit}/python-pillow-Pillow-%{version}-%{ahead}-g%{shortcommit}.tar.gz
|
|
|
|
Source0: https://github.com/python-pillow/Pillow/tarball/%{commit}/python-pillow-Pillow-%{version}-%{ahead}-g%{shortcommit}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# Backport upstream commit to fix incorrect conditional
|
|
|
|
|
|
|
|
Patch0: 255a8b522022bfedf3d257fa4b3ff7259642cd01.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: tk-devel
|
|
|
|
BuildRequires: tk-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
@ -197,20 +194,10 @@ PIL image wrapper for Qt.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n python-pillow-Pillow-%{shortcommit}
|
|
|
|
%setup -q -n python-pillow-Pillow-%{shortcommit}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Strip shebang on non-executable file
|
|
|
|
# Strip shebang on non-executable file
|
|
|
|
sed -i 1d PIL/OleFileIO.py
|
|
|
|
sed -i 1d PIL/OleFileIO.py
|
|
|
|
|
|
|
|
|
|
|
|
# Fix file encoding
|
|
|
|
|
|
|
|
iconv --from=ISO-8859-1 --to=UTF-8 PIL/WalImageFile.py > PIL/WalImageFile.py.new && \
|
|
|
|
|
|
|
|
touch -r PIL/WalImageFile.py PIL/WalImageFile.py.new && \
|
|
|
|
|
|
|
|
mv PIL/WalImageFile.py.new PIL/WalImageFile.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make sample scripts non-executable
|
|
|
|
|
|
|
|
chmod -x Scripts/diffcover-run.sh
|
|
|
|
|
|
|
|
chmod -x Scripts/diffcover-install.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_python3}
|
|
|
|
%if %{with_python3}
|
|
|
|
# Create Python 3 source tree
|
|
|
|
# Create Python 3 source tree
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
rm -rf %{py3dir}
|
|
|
@ -357,6 +344,9 @@ popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Apr 01 2016 Sandro Mani <manisandro@gmail.com> - 3.2.0-1
|
|
|
|
|
|
|
|
- Update to 3.2.0
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 10 2016 Sandro Mani <manisandro@gmail.com> - 3.1.1-3
|
|
|
|
* Wed Feb 10 2016 Sandro Mani <manisandro@gmail.com> - 3.1.1-3
|
|
|
|
- Fix broken python3-pillow package description
|
|
|
|
- Fix broken python3-pillow package description
|
|
|
|
|
|
|
|
|
|
|
|