diff --git a/python-Pillow.spec b/python-Pillow.spec index f56f452..d810de4 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -1,13 +1,14 @@ Name: python-Pillow -Version: 2.6.1 -Release: 2mamba +Version: 3.4.2 +Release: 1mamba Summary: Python Imaging Library (Fork) Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://pypi.python.org/pypi/Pillow -Source: https://pypi.python.org/packages/source/P/Pillow/Pillow-%{version}.zip +Source: http://pypi.debian.net/Pillow/Pillow-%{version}.tar.gz +#Source: https://pypi.debian.org/Pillow/Pillow-%{version}.zip License: Standard PIL License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -46,6 +47,14 @@ Requires: %{name}-%{pyappend} = %{?epoch:%epoch:}%{version}-%{release} %description %{pyappend}-devel This package contains libraries and header files for developing applications that use %{name}. + +%package %{pyappend}-tools +Group: System tools +Summary: Tools for %{name} +Requires: %{name}-%{pyappend} = %{?epoch:%epoch:}%{version}-%{release} + +%description %{pyappend}-tools +This package contains tools that use %{name}. %endif %package devel @@ -56,14 +65,22 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. +%package tools +Group: System/Tools +Summary: Tools for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains tools that use %{name}. + %prep %setup -q -n Pillow-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build -cd Sane -CFLAGS="%{optflags}" %{__python} setup.py build +#cd Sane +#CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -77,38 +94,42 @@ CFLAGS="%{optflags}" %{__python} setup.py build install -d -m0755 %{buildroot}%{_includedir}/python%{python_version} cp -a libImaging/*.h %{buildroot}%{_includedir}/python%{python_version}/ -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{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 +#cd Sane +#%{__python} setup.py install \ +# -O1 --skip-build \ +# --root="%{buildroot}" \ +# --install-headers=%{_includedir}/python \ +# --install-lib=%{python_sitearch} \ +# --record=%{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%exclude %{_bindir}/* %{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 -%{python_sitearch}/sane.py* -%doc docs/COPYING docs/LICENSE +#%{python_sitearch}/_sane*.so +#%{python_sitearch}/pysane-2.0-py*.egg-info +#%{python_sitearch}/sane.py* +%doc docs/COPYING %files %{?pyappend:%pyappend-}devel %defattr(-,root,root) %{_includedir}/python%{python_version}/*.h +%files %{?pyappend:%pyappend-}tools +%defattr(-,root,root) +%{_bindir}/*.py + %changelog +* Tue Dec 13 2016 Silvan Calarco 3.4.2-1mamba +- update to 3.4.2 + * Sat May 16 2015 Silvan Calarco 2.6.1-2mamba - added python3 subpackage