From fb1b12e4409bb6f852bea585057d7d3d849343e4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:40:52 +0100 Subject: [PATCH] added python3 subpackage [release 2.6.1-2mamba;Sat May 16 2015] --- python-Pillow.spec | 41 ++++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/python-Pillow.spec b/python-Pillow.spec index ab873de..f56f452 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -1,6 +1,6 @@ Name: python-Pillow Version: 2.6.1 -Release: 1mamba +Release: 2mamba Summary: Python Imaging Library (Fork) Group: System/Libraries Vendor: openmamba @@ -36,6 +36,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. +%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 + %package devel Group: Development/Libraries Summary: Development files for %{name} @@ -75,24 +87,31 @@ cd Sane --install-lib=%{python_sitearch} \ --record=%{name}.filelist -%files -f %{name}.filelist +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{python_sitearch}/PIL/_imagingcms.so -%{python_sitearch}/PIL/_imagingft.so -%{python_sitearch}/PIL/_imagingmath.so -%{python_sitearch}/PIL/_imagingmorph.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}/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 -%files devel +%files %{?pyappend:%pyappend-}devel %defattr(-,root,root) %{_includedir}/python%{python_version}/*.h %changelog +* Sat May 16 2015 Silvan Calarco 2.6.1-2mamba +- added python3 subpackage + * Wed Oct 15 2014 Automatic Build System 2.6.1-1mamba - automatic update by autodist