Summary: Python's own image processing library
Name: python-%{module}
Version: 1.1.1
-Release: 1
+Release: 1
Copyright: distributable
Group: Development/Languages/Python
+Group(de): Entwicklung/Sprachen/Python
Group(pl): Programowanie/Jêzyki/Python
Source0: http://www.pythonware.com/downloads/%{module}-%{version}.tar.gz
-Patch0: Imaging-libver.patch
+Patch0: Imaging-libver.patch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: python >= 1.5
BuildRequires: python-devel >= 1.5
BuildRequires: libpng >= 1.0.8
%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.
+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.
%description -l pl
%build
cd libImaging
%configure
-%{__make} "OPT=$RPM_OPT_FLAGS"
+%{__make} "OPT=%{rpmcflags}"
cd ..
%{__make} -f Makefile.pre.in boot
%{__make}
END
%install
+rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}
install -d $RPM_BUILD_ROOT/%{_includedir}/%{python_dir}
echo %{module} > $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}.pth
rm -rf $RPM_BUILD_ROOT
%files
+%defattr(644,root,root,755)
%doc {README,FORMATS,CHANGES}.gz
%attr(644,root,root) %{python_sitepkgsdir}/%{module}/*
%{python_sitepkgsdir}/PIL