18110
|
1 |
#
|
|
2 |
# base spec file for package python-imaging
|
|
3 |
#
|
|
4 |
# Copyright 2010 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
%define owner liyuan
|
|
9 |
#
|
|
10 |
|
|
11 |
%define name python-%oname
|
|
12 |
|
|
13 |
%define OSR 8092:1.1.6
|
|
14 |
|
|
15 |
Name: python-imaging
|
|
16 |
Summary: Python's own image processing library
|
|
17 |
License: Historical Permission Notice and Disclaimer
|
|
18 |
#The link of the license: http://www.opensource.org/licenses/historical.html
|
|
19 |
Vendor: pythonware.org
|
|
20 |
URL: http://www.pythonware.com/products/pil/
|
|
21 |
Version: 1.1.7
|
|
22 |
Source: http://effbot.org/downloads/Imaging-%{version}.tar.gz
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Requires: Python
|
|
25 |
|
18269
|
26 |
%{?!pythonver:%define pythonver 2.6}
|
18110
|
27 |
|
|
28 |
%prep
|
|
29 |
%setup -n Imaging-%{version}
|
|
30 |
|
|
31 |
%build
|
|
32 |
perl -pi -e 'print "#!/usr/bin/python%{pythonver}\n" if ( $. == 1 )' Scripts/pilfont.py
|
|
33 |
python%{pythonver} setup.py build
|
|
34 |
|
|
35 |
%install
|
|
36 |
rm -rf $RPM_BUILD_ROOT
|
|
37 |
python%{pythonver} setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" --prefix="%{_prefix}"
|
|
38 |
|
|
39 |
# move to vendor-packages
|
|
40 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
41 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
42 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
43 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
44 |
|
|
45 |
echo deleting pyo files
|
|
46 |
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \;
|
|
47 |
|
|
48 |
%clean
|
|
49 |
rm -rf $RPM_BUILD_ROOT
|
|
50 |
|
|
51 |
%changelog
|
|
52 |
* Fri Jun 04 2010 - [email protected]
|
|
53 |
- Change license to Historical Permission Notice and Disclaimer.
|
|
54 |
* Tue May 25 2010 - [email protected]
|
|
55 |
- Bump to 1.1.7.
|
|
56 |
* Mon Nov 16 2009 - [email protected]
|
|
57 |
- Change owner to liyuan.
|
|
58 |
* Thu Nov 27 2008 - [email protected]
|
|
59 |
- Split from SUNWpython-imaging.spec
|
|
60 |
* Tue Sep 16 2008 - [email protected]
|
|
61 |
- Update copyright
|
|
62 |
* Wed May 14 2008 - [email protected]
|
|
63 |
- Add SUWNjpg dependency.
|
|
64 |
* Fri Feb 15 2008 - [email protected]
|
|
65 |
- remove *.pyo
|
|
66 |
* Tue Feb 12 2008 - [email protected]
|
|
67 |
- initial version
|