Mercurial > libpst
diff libpst.spec.in @ 196:ffd1503a7530
build proper python rpm subpackage
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 22 Apr 2009 13:52:18 -0700 |
parents | cf3df962f1e5 |
children | 7c60d6d1c681 |
line wrap: on
line diff
--- a/libpst.spec.in Mon Apr 20 19:39:26 2009 -0700 +++ b/libpst.spec.in Wed Apr 22 13:52:18 2009 -0700 @@ -9,7 +9,12 @@ URL: http://www.five-ten-sg.com/%{name}/ Requires: ImageMagick Requires: %{name}-libs = %{version}-%{release} -BuildRequires: ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel +BuildRequires: ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel python-devel + + +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + %description The Libpst utilities include readpst which can convert email messages @@ -28,6 +33,17 @@ utilities. +%package python +Summary: Python bindings for libpst +Group: Development/Libraries +Requires: python +Requires: %{name}-libs = %{version}-%{release} + +%description python +The libpst-python package allows you to use the libpst shared object +from python code. + + %package devel Summary: Library links and header files for libpst application development Group: Development/Libraries @@ -100,9 +116,11 @@ %{_libdir}/libpst.so.* -%files devel-doc +%files python %defattr(-,root,root,-) -%{_datadir}/doc/%{name}-%{version}/devel/ +%{python_sitearch}/_*.so +%exclude %{python_sitearch}/*.a +%exclude %{python_sitearch}/*.la %files devel @@ -112,6 +130,11 @@ %{_libdir}/pkgconfig/libpst.pc +%files devel-doc +%defattr(-,root,root,-) +%{_datadir}/doc/%{name}-%{version}/devel/ + + %files doc %defattr(-,root,root,-) %dir %{_datadir}/doc/%{name}-%{version}/ @@ -125,6 +148,9 @@ %changelog +* Mon Apr 20 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.38-1 +- add python interface to the shared library + * Fri Apr 17 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.37-1 - add pst_attach_to_mem() back into the shared library interface. - fix memory leak caught by valgrind.