From 9ed26af5b97f337052c86db53692e7bab464448e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:40:52 +0100 Subject: [PATCH] install headers and provide a devel package [release 2.5.3-2mamba;Fri Sep 26 2014] --- python-Pillow.spec | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/python-Pillow.spec b/python-Pillow.spec index 754d727..d849e07 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -1,6 +1,6 @@ Name: python-Pillow Version: 2.5.3 -Release: 1mamba +Release: 2mamba Summary: Python Imaging Library (Fork) Group: System/Libraries Vendor: openmamba @@ -36,6 +36,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. +%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}. + %prep %setup -q -n Pillow-%{version} @@ -54,6 +62,9 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist +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 cd Sane @@ -75,8 +86,16 @@ cd Sane %{python_sitearch}/_sane.so %{python_sitearch}/pysane-2.0-py2.7.egg-info %{python_sitearch}/sane.py* +%doc docs/COPYING docs/LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/python%{python_version}/*.h %changelog +* Fri Sep 26 2014 Silvan Calarco 2.5.3-2mamba +- install headers and provide a devel package + * Wed Aug 20 2014 Automatic Build System 2.5.3-1mamba - automatic update by autodist