Репозитории ALT
D: | 1.1.6-alt1.1 |
5.1: | 1.1.6-alt3 |
4.1: | 1.1.4-alt11.1 |
4.0: | 1.1.4-alt11 |
3.0: | 1.1.4-alt11 |
Группа :: Разработка/Python
Пакет: python-module-imaging
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Version: 1.1.6
Release: alt3
%setup_python_module imaging
Summary: Python's own image processing library
Name: python-module-imaging
Source0: http://www.pythonware.com/downloads/%modulename-%version.tar.gz
# wget -r -np -nH http://effbot.org/imagingbook/index.html
Source1: imaging-doc.tar
Packager: Fr. Br. George <george at altlinux.ru>
License: Distributable
Group: Development/Python
Url: http://www.pythonware.com/products/pil/
Icon: linux-python-paint-icon.xpm
Patch0: python-imaging-tk.patch
Patch1: python-imaging-1.1.4-ft.patch
Requires: libjpeg >= 6b, zlib >= 1.1.2, libpng >= 1.0.1
BuildPreReq: libjpeg-devel >= 6b, zlib-devel >= 1.1.2, libpng-devel >= 1.0.1
BuildRequires: python%__python_package_version-modules-tkinter
BuildRequires: freetype2-devel
BuildRequires: xorg-x11-devel db1 libjpeg-devel tcl tk zlib-devel tk-devel tcl-devel
Provides: python-imaging
Obsoletes: python-imaging <= 1.1.4-alt6
%description
Python Imaging Library version %version
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter.
This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.
%package devel
Summary: Developers files for python-imaging
Group: Development/Python
%description devel
Python Imaging Library version %version
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter.
This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.
Developers files for python-imaging
%package doc
Summary: Documentation and examples for python-imaging
AutoReqProv: nopython
Group: Development/Python
%description doc
Python Imaging Library version %version
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter.
This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.
Documentation and examples for python-imaging
%prep
%setup -q -n %modulename-%version -a1
# %patch -p0
# %patch1 -p1
find -type f |xargs fgrep -l /usr/local |
xargs -r perl -pi -e 's|/usr/local|/usr|g'
rm PIL/ImageGL.py
%build
python setup.py build_ext -i
python selftest.py
#python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d \
$RPM_BUILD_ROOT%_includedir/python%__python_version
install -p libImaging/Im*.h $RPM_BUILD_ROOT%_includedir/python%__python_version
install -p -m644 PIL.pth $RPM_BUILD_ROOT%_libdir/python%__python_version/site-packages
cat > $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d/%name << EOF
^/usr/lib/python[^/]*/site-packages/PIL$
EOF
%add_python_lib_path %_libdir/python%__python_version/site-packages/PIL
%files -f INSTALLED_FILES
%doc CHANGES CONTENTS
%config %_sysconfdir/buildreqs/files/ignore.d/%name
%files devel
%_includedir/python%__python_version/Im*.h
%files doc
%doc imagingbook Scripts Images Sane Docs
%changelog
…
Полный changelog можно просмотреть здесь
Release: alt3
%setup_python_module imaging
Summary: Python's own image processing library
Name: python-module-imaging
Source0: http://www.pythonware.com/downloads/%modulename-%version.tar.gz
# wget -r -np -nH http://effbot.org/imagingbook/index.html
Source1: imaging-doc.tar
Packager: Fr. Br. George <george at altlinux.ru>
License: Distributable
Group: Development/Python
Url: http://www.pythonware.com/products/pil/
Icon: linux-python-paint-icon.xpm
Patch0: python-imaging-tk.patch
Patch1: python-imaging-1.1.4-ft.patch
Requires: libjpeg >= 6b, zlib >= 1.1.2, libpng >= 1.0.1
BuildPreReq: libjpeg-devel >= 6b, zlib-devel >= 1.1.2, libpng-devel >= 1.0.1
BuildRequires: python%__python_package_version-modules-tkinter
BuildRequires: freetype2-devel
BuildRequires: xorg-x11-devel db1 libjpeg-devel tcl tk zlib-devel tk-devel tcl-devel
Provides: python-imaging
Obsoletes: python-imaging <= 1.1.4-alt6
%description
Python Imaging Library version %version
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter.
This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.
%package devel
Summary: Developers files for python-imaging
Group: Development/Python
%description devel
Python Imaging Library version %version
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter.
This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.
Developers files for python-imaging
%package doc
Summary: Documentation and examples for python-imaging
AutoReqProv: nopython
Group: Development/Python
%description doc
Python Imaging Library version %version
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter.
This library provides extensive file format support, an efficient
internal representation, and powerful image processing capabilities.
Documentation and examples for python-imaging
%prep
%setup -q -n %modulename-%version -a1
# %patch -p0
# %patch1 -p1
find -type f |xargs fgrep -l /usr/local |
xargs -r perl -pi -e 's|/usr/local|/usr|g'
rm PIL/ImageGL.py
%build
python setup.py build_ext -i
python selftest.py
#python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES
mkdir -p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d \
$RPM_BUILD_ROOT%_includedir/python%__python_version
install -p libImaging/Im*.h $RPM_BUILD_ROOT%_includedir/python%__python_version
install -p -m644 PIL.pth $RPM_BUILD_ROOT%_libdir/python%__python_version/site-packages
cat > $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d/%name << EOF
^/usr/lib/python[^/]*/site-packages/PIL$
EOF
%add_python_lib_path %_libdir/python%__python_version/site-packages/PIL
%files -f INSTALLED_FILES
%doc CHANGES CONTENTS
%config %_sysconfdir/buildreqs/files/ignore.d/%name
%files devel
%_includedir/python%__python_version/Im*.h
%files doc
%doc imagingbook Scripts Images Sane Docs
%changelog
…
Полный changelog можно просмотреть здесь