Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37401342
en ru br
ALT Linux repositórios
D:1.1.6-alt1.1
5.0: 1.1.6-alt2
4.1: 1.1.4-alt11.1
4.0: 1.1.4-alt11
3.0: 1.1.4-alt11

Group :: Desenvolvimento/Python
RPM: python-module-imaging

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define version 1.1.4
%define release alt11
%setup_python_module imaging

Summary: Python's own image processing library
Name: %{packagename}
Version: %{version}
Release: %{release}
Source0: http://www.pythonware.com/downloads/%{modulename}-%{version}.tar.gz
Source1: %{modulename}-doc.tar.bz2

Copyright: Distributable
Group: Development/Python
Prefix: %{_prefix}
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'

%build
pushd libImaging
%add_optflags %optflags_shared
%configure
%make_build OPT="$RPM_OPT_FLAGS"
popd


%__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-114 CONTENTS
%config %_sysconfdir/buildreqs/files/ignore.d/%name

%files devel
%_includedir/python%__python_version/Im*.h
%_libdir/python%__python_version/site-packages/PIL.pth

%files doc
%doc notes handbook Scripts Images Sane

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009