provide/obsolete python-Imaging [release 2.4.0-2mamba;Sun May 25 2014]
This commit is contained in:
parent
5a009ab71c
commit
147d4d6019
83
python-Pillow.spec
Normal file
83
python-Pillow.spec
Normal file
@ -0,0 +1,83 @@
|
||||
Name: python-Pillow
|
||||
Version: 2.4.0
|
||||
Release: 2mamba
|
||||
Summary: Python Imaging Library (Fork)
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://pypi.python.org/pypi/Pillow
|
||||
Source: https://pypi.python.org/packages/source/P/Pillow/Pillow-%{version}.zip
|
||||
License: Standard PIL License
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libfreetype-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: liblcms2-devel
|
||||
BuildRequires: libpython-devel
|
||||
BuildRequires: libpython27-devel
|
||||
BuildRequires: libtcl-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libtk-devel
|
||||
BuildRequires: libwebp-devel
|
||||
BuildRequires: libz-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libopenjpeg-devel
|
||||
BuildRequires: python27-tk
|
||||
Provides: python-Imaging
|
||||
Obsoletes: python-Imaging
|
||||
Provides: python-Imaging-tk
|
||||
Obsoletes: python-Imaging-tk
|
||||
Provides: python-Imaging-sane
|
||||
Obsoletes: python-Imaging-sane
|
||||
Requires: python >= %python_version
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n Pillow-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
|
||||
cd Sane
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{_includedir}/python \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
|
||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||
|
||||
cd Sane
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{_includedir}/python \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
|
||||
%files -f %{name}.filelist
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/PIL/_imagingcms.so
|
||||
%{python_sitearch}/PIL/_imagingft.so
|
||||
%{python_sitearch}/PIL/_imagingmath.so
|
||||
%{python_sitearch}/PIL/_imagingtk.so
|
||||
%{python_sitearch}/PIL/_webp.so
|
||||
%{python_sitearch}/_sane.so
|
||||
%{python_sitearch}/pysane-2.0-py2.7.egg-info
|
||||
%{python_sitearch}/sane.py*
|
||||
|
||||
%changelog
|
||||
* Sun May 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-2mamba
|
||||
- provide/obsolete python-Imaging
|
||||
|
||||
* Wed May 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
|
||||
- package created by silvan using the webbuild interface
|
Loading…
Reference in New Issue
Block a user