Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
python-imaging
python-imaging.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-imaging.spec of Package python-imaging
# # spec file for package python-imaging (Version 1.1.6) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: python-imaging BuildRequires: freetype2-devel giflib-devel libgphoto2-devel libpng-devel libtiff-devel netpbm python-devel python-tk sane tix tk-devel xorg-x11-devel Url: http://www.pythonware.com/products/pil/index.htm %define pyver %(python -c 'import sys; print sys.version[:3]') Version: 1.1.6 Release: 213 License: Python License .. ; MIT License (or similar) Group: Development/Libraries/Python Provides: _imaging.so _imagingtk.so python_imaging_lib pyimglib Requires: python >= %pyver, python < %{pyver}.99 Requires: python-tk tk tix Obsoletes: pyimglib AutoReqProv: on Summary: The Python Imaging Library - PIL Source: Imaging-%{version}.tar.bz2 Source1: pil-handbook.pdf Patch1: Imaging-1.1.5-test.patch Patch2: Imaging-1.1.5-64bit.patch Patch3: Imaging-1.1.6-ssize.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Python Imaging Library adds fairly powerful image processing capabilities to the Python interpreter and provides extensive file format support, and efficient internal representation. Authors: -------- image-sig@python.org %package sane License: Python License .. ; MIT License (or similar) Provides: python_imaging_sane Summary: Python SANE module Group: Development/Libraries/Python AutoReqProv: on %description sane The SANE module provides an interface to the SANE scanner and frame grabber interface for Linux. It is a part of the Python Imaging Library. Authors: -------- Andrew Kuchling Ralph Heinkel <rheinkel@email.de> %prep %setup -n Imaging-%{version} %patch1 %patch2 %patch3 cp %{S:1} . %build # # Change python files header for f in `find . -type f -exec grep -l /usr/local/bin/python \{\} \;` ; do rm -f tmp sed -e "s:^#!.*/usr/local/bin/python:#!/usr/bin/env python:g" $f > tmp cp -f tmp $f done # # Build sane lib cd Sane python setup.py build cd .. # # Build python things export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" python setup.py build_ext -i python selftest.py %install python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES install -d -m 755 $RPM_BUILD_ROOT/usr/include/python%pyver install -m 644 libImaging/Imaging.h \ libImaging/ImPlatform.h \ $RPM_BUILD_ROOT/usr/include/python%pyver cd Sane python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=../INSTALLED_FILES_SANE #cat INSTALLED_FILES >> ../INSTALLED_FILES cd .. %clean rm -rf ${RPM_BUILD_ROOT} %files -f INSTALLED_FILES %defattr(-,root,root) %doc CHANGES README Docs Scripts Images pil-handbook.pdf /usr/include/python%pyver/* %files sane -f INSTALLED_FILES_SANE %defattr(-,root,root) %doc Sane/sanedoc.txt Sane/README Sane/CHANGES %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor