base-specs/python-imaging.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 18269 5218a1567988
child 21210 9b7271cbedaf
permissions -rw-r--r--
update tags

#
# base spec file for package python-imaging
#
# Copyright 2010 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner liyuan
#

%define name python-%oname

%define OSR 8092:1.1.6

Name:                    python-imaging
Summary:                 Python's own image processing library
License:                 Historical Permission Notice and Disclaimer
#The link of the license: http://www.opensource.org/licenses/historical.html
Vendor:                  pythonware.org
URL:                     http://www.pythonware.com/products/pil/
Version:                 1.1.7
Source:                  http://effbot.org/downloads/Imaging-%{version}.tar.gz
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
Requires:                Python

%{?!pythonver:%define pythonver 2.6}

%prep
%setup -n Imaging-%{version}

%build
perl -pi -e 'print "#!/usr/bin/python%{pythonver}\n" if ( $. == 1 )' Scripts/pilfont.py
python%{pythonver} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python%{pythonver} setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" --prefix="%{_prefix}"

# move to vendor-packages
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
   $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages

echo deleting pyo files
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \;

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Fri Jun 04 2010 - [email protected]
- Change license to Historical Permission Notice and Disclaimer.
* Tue May 25 2010 - [email protected]
- Bump to 1.1.7.
* Mon Nov 16 2009 - [email protected]
- Change owner to liyuan.
* Thu Nov 27 2008 - [email protected]
- Split from SUNWpython-imaging.spec
* Tue Sep 16 2008 - [email protected]
- Update copyright
* Wed May 14 2008 - [email protected]
- Add SUWNjpg dependency.
* Fri Feb 15 2008 - [email protected]
- remove *.pyo
* Tue Feb 12 2008 - [email protected]
- initial version