2024-01-06 10:40:52 +01:00
|
|
|
Name: python-Pillow
|
2024-01-06 10:40:52 +01:00
|
|
|
Version: 2.6.1
|
2024-01-06 10:40:52 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 10:40:52 +01:00
|
|
|
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
|
2024-01-06 10:40:52 +01:00
|
|
|
BuildRequires: libopenjpeg-devel >= 2.1.0-1mamba
|
2024-01-06 10:40:52 +01:00
|
|
|
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}.
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
%if "%{?with_pyver}"
|
|
|
|
%pyver_package
|
|
|
|
|
|
|
|
%package %{pyappend}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}-%{pyappend} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description %{pyappend}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_includedir}/python%{python_version}
|
|
|
|
cp -a libImaging/*.h %{buildroot}%{_includedir}/python%{python_version}/
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
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
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-06 10:40:52 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:40:52 +01:00
|
|
|
%{python_sitearch}/PIL/_imagingcms*.so
|
|
|
|
%{python_sitearch}/PIL/_imagingft*.so
|
|
|
|
%{python_sitearch}/PIL/_imagingmath*.so
|
|
|
|
%{python_sitearch}/PIL/_imagingmorph*.so
|
|
|
|
%if "%{?pyappend}" == ""
|
|
|
|
%{python_sitearch}/PIL/_imagingtk*.so
|
|
|
|
%else
|
|
|
|
%{python_sitearch}/__pycache__/sane.cpython-*.py*
|
|
|
|
%endif
|
|
|
|
%{python_sitearch}/PIL/_webp*.so
|
|
|
|
%{python_sitearch}/_sane*.so
|
|
|
|
%{python_sitearch}/pysane-2.0-py*.egg-info
|
2024-01-06 10:40:52 +01:00
|
|
|
%{python_sitearch}/sane.py*
|
2024-01-06 10:40:52 +01:00
|
|
|
%doc docs/COPYING docs/LICENSE
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
%files %{?pyappend:%pyappend-}devel
|
2024-01-06 10:40:52 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/python%{python_version}/*.h
|
2024-01-06 10:40:52 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:40:52 +01:00
|
|
|
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-2mamba
|
|
|
|
- added python3 subpackage
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
* Wed Oct 15 2014 Automatic Build System <autodist@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
* Fri Sep 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.3-2mamba
|
|
|
|
- install headers and provide a devel package
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
* Wed Aug 20 2014 Automatic Build System <autodist@mambasoft.it> 2.5.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
* Sun Jul 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: libopenjpeg-devel>=2.1.0-1mamba
|
|
|
|
|
2024-01-06 10:40:52 +01:00
|
|
|
* 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
|