install headers and provide a devel package [release 2.5.3-2mamba;Fri Sep 26 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 10:40:52 +01:00
parent 9bec4266f7
commit 9ed26af5b9

View File

@ -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 <silvan.calarco@mambasoft.it> 2.5.3-2mamba
- install headers and provide a devel package
* Wed Aug 20 2014 Automatic Build System <autodist@mambasoft.it> 2.5.3-1mamba
- automatic update by autodist