comparison 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
comparison
equal deleted inserted replaced
195:320cfcba8058 196:ffd1503a7530
7 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz 7 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
8 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 8 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
9 URL: http://www.five-ten-sg.com/%{name}/ 9 URL: http://www.five-ten-sg.com/%{name}/
10 Requires: ImageMagick 10 Requires: ImageMagick
11 Requires: %{name}-libs = %{version}-%{release} 11 Requires: %{name}-libs = %{version}-%{release}
12 BuildRequires: ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel 12 BuildRequires: ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel python-devel
13
14
15 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
16 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
17
13 18
14 %description 19 %description
15 The Libpst utilities include readpst which can convert email messages 20 The Libpst utilities include readpst which can convert email messages
16 to both mbox and MH mailbox formats, pst2ldif which can convert the 21 to both mbox and MH mailbox formats, pst2ldif which can convert the
17 contacts to .ldif format for import into ldap databases, and pst2dii 22 contacts to .ldif format for import into ldap databases, and pst2dii
26 %description libs 31 %description libs
27 The libpst-libs package contains the shared library used by the pst 32 The libpst-libs package contains the shared library used by the pst
28 utilities. 33 utilities.
29 34
30 35
36 %package python
37 Summary: Python bindings for libpst
38 Group: Development/Libraries
39 Requires: python
40 Requires: %{name}-libs = %{version}-%{release}
41
42 %description python
43 The libpst-python package allows you to use the libpst shared object
44 from python code.
45
46
31 %package devel 47 %package devel
32 Summary: Library links and header files for libpst application development 48 Summary: Library links and header files for libpst application development
33 Group: Development/Libraries 49 Group: Development/Libraries
34 Requires: pkgconfig 50 Requires: pkgconfig
35 Requires: %{name}-libs = %{version}-%{release} 51 Requires: %{name}-libs = %{version}-%{release}
98 %files libs 114 %files libs
99 %defattr(-,root,root,-) 115 %defattr(-,root,root,-)
100 %{_libdir}/libpst.so.* 116 %{_libdir}/libpst.so.*
101 117
102 118
103 %files devel-doc 119 %files python
104 %defattr(-,root,root,-) 120 %defattr(-,root,root,-)
105 %{_datadir}/doc/%{name}-%{version}/devel/ 121 %{python_sitearch}/_*.so
122 %exclude %{python_sitearch}/*.a
123 %exclude %{python_sitearch}/*.la
106 124
107 125
108 %files devel 126 %files devel
109 %defattr(-,root,root,-) 127 %defattr(-,root,root,-)
110 %{_libdir}/libpst.so 128 %{_libdir}/libpst.so
111 %{_includedir}/%{name}-@LIBPST_SO_MAJOR@/ 129 %{_includedir}/%{name}-@LIBPST_SO_MAJOR@/
112 %{_libdir}/pkgconfig/libpst.pc 130 %{_libdir}/pkgconfig/libpst.pc
131
132
133 %files devel-doc
134 %defattr(-,root,root,-)
135 %{_datadir}/doc/%{name}-%{version}/devel/
113 136
114 137
115 %files doc 138 %files doc
116 %defattr(-,root,root,-) 139 %defattr(-,root,root,-)
117 %dir %{_datadir}/doc/%{name}-%{version}/ 140 %dir %{_datadir}/doc/%{name}-%{version}/
123 %{_datadir}/doc/%{name}-%{version}/NEWS 146 %{_datadir}/doc/%{name}-%{version}/NEWS
124 %{_datadir}/doc/%{name}-%{version}/README 147 %{_datadir}/doc/%{name}-%{version}/README
125 148
126 149
127 %changelog 150 %changelog
151 * Mon Apr 20 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.38-1
152 - add python interface to the shared library
153
128 * Fri Apr 17 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.37-1 154 * Fri Apr 17 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.37-1
129 - add pst_attach_to_mem() back into the shared library interface. 155 - add pst_attach_to_mem() back into the shared library interface.
130 - fix memory leak caught by valgrind. 156 - fix memory leak caught by valgrind.
131 157
132 * Tue Apr 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.36-1 158 * Tue Apr 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.36-1