Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37522755
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 mname imaging

%define Name Imaging
Name: python-module-%mname
Version: 1.1.6
Release: alt1.1
Summary: Python's own image processing library

License: %mit
Group: Development/Python
URL: http://www.pythonware.com/products/pil/
Source: http://www.pythonware.com/downloads/%Name-%version.tar.bz2

Provides: python-imaging
Obsoletes: python-imaging <= 1.1.4-alt6

# Automatically added by buildreq on Thu Apr 17 2008

BuildRequires: libfreetype-devel libsane-devel libtiff-devel python-devel python-modules-tkinter tk-devel
BuildRequires: rpm-build-licenses

%description
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
BuildArch: noarch

%description devel
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.
This package contains developers files for python-imaging.


%package doc
Summary: Documentation and examples for %Name
Group: Documentation
BuildArch: noarch

%description doc
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


%package -n python-module-sane
Summary: Python SANE module
Group: Development/Python
Requires: %name = %version-%release

%description -n python-module-sane
The SANE module provides an interface to the SANE scanner and frame
grabber interface for Linux.


%prep
%setup -n %Name-%version


%build
%add_optflags %optflags_shared
%__python setup.py build
cd Sane
%__python setup.py build


%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
pushd Sane
%__python setup.py install --root=%buildroot --optimize=2
popd

install -d -m 0755 %buildroot{%_sysconfdir/buildreqs/files/ignore.d,%_includedir/python%__python_version,%_docdir/%name-%version/{html,scripts}}
install -m 0644 libImaging/Im*.h %buildroot%_includedir/python%__python_version/
install -m 0644 Docs/* %buildroot%_docdir/%name-%version/html/
install -m 0644 Scripts/* %buildroot%_docdir/%name-%version/scripts/
install -m 0644 CHANGES README %buildroot%_docdir/%name-%version/
echo '^/usr/lib/python[^/]*/site-packages/PIL$' > %buildroot%_sysconfdir/buildreqs/files/ignore.d/%name

%add_python_lib_path %_libdir/python%__python_version/site-packages
%add_python_lib_path %_libdir/python%__python_version/site-packages/PIL


%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/CHANGES
%_docdir/%name-%version/README
%config %_sysconfdir/buildreqs/files/ignore.d/%name
%_bindir/*
%_libdir/python%__python_version/site-packages/PIL*
%exclude %_libdir/python%__python_version/site-packages/PIL/ImageGL.*


%files devel
%_includedir/python%__python_version/*.h


%files doc
%dir %_docdir/%name-%version
%_docdir/%name-%version/html
%_docdir/%name-%version/scripts


%files -n python-module-sane
%_libdir/python%__python_version/site-packages/*.so
%_libdir/python%__python_version/site-packages/sane.*
%_libdir/python%__python_version/site-packages/pysane*


%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