diff libpst.spec.in @ 176:ac6e22c8a9cf

build separate libpst, libpst-libs, libpst-devel rpms. remove many functions from the interface by making them static.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Apr 2009 14:13:06 -0700
parents c1a2fd06ffe6
children 83cb32e41f80
line wrap: on
line diff
--- a/libpst.spec.in	Tue Apr 07 13:48:25 2009 -0700
+++ b/libpst.spec.in	Wed Apr 08 14:13:06 2009 -0700
@@ -8,9 +8,9 @@
 BuildRoot:          %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 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
 
-
 %description
 The Libpst utilities include readpst which can convert email messages
 to both mbox and MH mailbox formats, pst2ldif which can convert the
@@ -19,24 +19,54 @@
 Summation.
 
 
+%package libs
+Summary:            Shared library used by the pst utilities
+Group:              Development/Libraries
+
+%description libs
+libpst-libs contains the shared library used by the pst utilities.
+
+
+%package devel
+Summary:            Library links and header files for libpst application development
+Group:              Development/Libraries
+Requires:           pkgconfig freetype-devel gd-devel libjpeg-devel zlib-devel
+Requires:           %{name}-libs = %{version}-%{release}
+
+%description devel
+libpst-devel contains the library links and header fles you'll
+need to develop applications using the libpst shared library.
+You do not need to install it if you just want to use the libpst
+utilities.
+
+
+
 %prep
 %setup -q
 
 
 %build
-%configure
+%configure --enable-libpst-shared
 make %{?_smp_mflags}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
+rm $RPM_BUILD_ROOT%{_libdir}/libpst.la
+rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
+%post libs -p /sbin/ldconfig
+
+
+%postun libs -p /sbin/ldconfig
+
+
 %files
 %defattr(-,root,root,-)
 %{_bindir}/*
@@ -46,7 +76,22 @@
 %{_datadir}/doc/%{name}-%{version}
 
 
+%files libs
+%{_libdir}/libpst.so.*
+
+
+%files devel
+%{_libdir}/libpst.so
+%dir %{_includedir}/%{name}-@LIBPST_SO_MAJOR@
+%{_includedir}/%{name}-@LIBPST_SO_MAJOR@/*
+%{_libdir}/pkgconfig/libpst.pc
+
+
 %changelog
+* Wed Apr 08 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.35-1
+- properly add trailing mime boundary in all modes.
+- build separate libpst, libpst-libs, libpst-devel rpms.
+
 * Thu Mar 19 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.34-1
 - avoid putting mixed item types into the same output folder.