f635cc
Summary:            Utilities to convert Outlook .pst files to other formats
f635cc
Name:               libpst
f635cc
Version:            0.6.59
31ccb1
Release:            4%{?dist}
f635cc
License:            GPLv2+
f635cc
Group:              Applications/Productivity
f635cc
Source:             http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
f635cc
BuildRoot:          %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
f635cc
URL:                http://www.five-ten-sg.com/%{name}/
f635cc
Requires:           ImageMagick libgsf
f635cc
Requires:           %{name}-libs = %{version}-%{release}
f635cc
BuildRequires:      libtool
f635cc
BuildRequires:      ImageMagick gd-devel zlib-devel python-devel boost-devel libgsf-devel
f635cc
f635cc
%{!?python_sitelib:  %global python_sitelib  %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
f635cc
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
f635cc
f635cc
f635cc
%description
f635cc
The Libpst utilities include readpst which can convert email messages
f635cc
to both mbox and MH mailbox formats, pst2ldif which can convert the
f635cc
contacts to .ldif format for import into ldap databases, and pst2dii
f635cc
which can convert email messages to the DII load file format used by
f635cc
Summation.
f635cc
f635cc
f635cc
%package libs
f635cc
Summary:            Shared library used by the pst utilities
f635cc
Group:              Development/Libraries
f635cc
f635cc
%description libs
f635cc
The libpst-libs package contains the shared library used by the pst
f635cc
utilities.
f635cc
f635cc
f635cc
%package python
f635cc
Summary:            Python bindings for libpst
f635cc
Group:              Development/Libraries
f635cc
Requires:           python
f635cc
Requires:           %{name}-libs = %{version}-%{release}
f635cc
f635cc
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$
f635cc
f635cc
%description python
f635cc
The libpst-python package allows you to use the libpst shared object
f635cc
from python code.
f635cc
f635cc
f635cc
%package devel
f635cc
Summary:            Library links and header files for libpst application development
f635cc
Group:              Development/Libraries
f635cc
Requires:           pkgconfig
f635cc
Requires:           %{name}-libs = %{version}-%{release}
f635cc
f635cc
%description devel
f635cc
The libpst-devel package contains the library links and header files
f635cc
you'll need to develop applications using the libpst shared library.
f635cc
You do not need to install it if you just want to use the libpst
f635cc
utilities.
f635cc
f635cc
f635cc
%package devel-doc
f635cc
Summary:            Documentation for libpst.so for libpst application development
f635cc
Group:              Documentation
f635cc
Requires:           %{name}-doc = %{version}-%{release}
f635cc
f635cc
%description devel-doc
f635cc
The libpst-devel-doc package contains the doxygen generated
f635cc
documentation for the libpst.so shared library.
f635cc
f635cc
f635cc
%package doc
f635cc
Summary:            Documentation for the pst utilities in html format
f635cc
Group:              Documentation
f635cc
f635cc
%description doc
f635cc
The libpst-doc package contains the html documentation for the pst
f635cc
utilities.  You do not need to install it if you just want to use the
f635cc
libpst utilities.
f635cc
f635cc
f635cc
f635cc
%prep
f635cc
%setup -q
f635cc
f635cc
f635cc
%build
f635cc
autoreconf -v -f -i
f635cc
%configure --enable-libpst-shared
f635cc
make %{?_smp_mflags}
f635cc
f635cc
f635cc
%install
f635cc
rm -rf $RPM_BUILD_ROOT
f635cc
make DESTDIR=$RPM_BUILD_ROOT install
f635cc
rm $RPM_BUILD_ROOT%{_libdir}/libpst.la
f635cc
rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
f635cc
f635cc
f635cc
%clean
f635cc
rm -rf $RPM_BUILD_ROOT
f635cc
f635cc
f635cc
%post libs -p /sbin/ldconfig
f635cc
f635cc
f635cc
%postun libs -p /sbin/ldconfig
f635cc
f635cc
f635cc
%files
f635cc
%defattr(-,root,root,-)
f635cc
%{_bindir}/*
f635cc
%{_mandir}/man1/*
f635cc
%{_mandir}/man5/*
f635cc
f635cc
f635cc
%files libs
f635cc
%defattr(-,root,root,-)
f635cc
%{_libdir}/libpst.so.*
f635cc
%doc COPYING
f635cc
f635cc
f635cc
%files python
f635cc
%defattr(-,root,root,-)
f635cc
%{python_sitearch}/_*.so
f635cc
%exclude %{python_sitearch}/*.a
f635cc
%exclude %{python_sitearch}/*.la
f635cc
f635cc
f635cc
%files devel
f635cc
%defattr(-,root,root,-)
f635cc
%{_libdir}/libpst.so
f635cc
%{_includedir}/%{name}-4/
f635cc
%{_libdir}/pkgconfig/libpst.pc
f635cc
f635cc
f635cc
%files devel-doc
f635cc
%defattr(-,root,root,-)
f635cc
%{_datadir}/doc/%{name}-%{version}/devel/
f635cc
f635cc
f635cc
%files doc
f635cc
%defattr(-,root,root,-)
f635cc
%dir %{_datadir}/doc/%{name}-%{version}/
f635cc
%{_datadir}/doc/%{name}-%{version}/*.html
f635cc
%{_datadir}/doc/%{name}-%{version}/AUTHORS
f635cc
%{_datadir}/doc/%{name}-%{version}/COPYING
f635cc
%{_datadir}/doc/%{name}-%{version}/ChangeLog
f635cc
%{_datadir}/doc/%{name}-%{version}/NEWS
f635cc
%{_datadir}/doc/%{name}-%{version}/README
f635cc
f635cc
f635cc
%changelog
31ccb1
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.6.59-4
31ccb1
- Mass rebuild 2014-01-24
31ccb1
31ccb1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6.59-3
31ccb1
- Mass rebuild 2013-12-27
31ccb1
f635cc
* Thu Oct 31 2013 Petr Pisar <ppisar@redhat.com> - 0.6.59-2
f635cc
- Correct package changelog entry (bug #1025251)
f635cc
f635cc
* Thu Jul 11 2013 Petr Pisar <ppisar@redhat.com> - 0.6.59-1%{?dist}.1
f635cc
- Use modern dependency filter to preserve file color (bug #983596)
f635cc
f635cc
* Fri May 17 2013 Carl Byington <carl@five-ten-sg.com> 0.6.59-1
f635cc
- add autoconf checking for libgsf
f635cc
f635cc
* Fri Mar 29 2013 Carl Byington <carl@five-ten-sg.com> 0.6.58-4
f635cc
- add autoreconf for aarch64
f635cc
f635cc
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.6.58-3
f635cc
- Rebuild for Boost-1.53.0
f635cc
f635cc
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.6.58-2
f635cc
- Rebuild for Boost-1.53.0
f635cc
f635cc
* Fri Dec 28 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.58-1
f635cc
- fix From quoting on embedded rfc/822 messages
f635cc
f635cc
* Wed Dec 26 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.57-1
f635cc
- bugzilla 852414, remove unnecessary dependencies
f635cc
f635cc
* Mon Dec 24 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.56-1
f635cc
- filter private provides from rpm
f635cc
- merge -m .msg files code into main branch
f635cc
f635cc
* Thu Aug 09 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.55-2
f635cc
- rebuild for python
f635cc
f635cc
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.54-6
f635cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f635cc
f635cc
* Tue May 08 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.55-1
f635cc
- preserve bcc headers
f635cc
- document -C switch to set default character set
f635cc
- space after colon is not required in header fields
f635cc
f635cc
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.54-5
f635cc
- Rebuilt for c++ ABI breakage
f635cc
f635cc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.54-4
f635cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f635cc
f635cc
* Sat Dec 24 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.54-3
f635cc
- bump versions and prep for fedora build
f635cc
f635cc
* Wed Nov 30 2011 Petr Pisar <ppisar@redhat.com> - 0.6.53-3
f635cc
- Rebuild against boost-1.48
f635cc
f635cc
* Mon Nov 14 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.54-2
f635cc
- failed to bump version number
f635cc
f635cc
* Fri Nov 04 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.54-1
f635cc
- embedded rfc822 messages might contain rtf encoded bodies
f635cc
f635cc
* Fri Sep 02 2011 Petr Pisar <ppisar@redhat.com> - 0.6.53-2
f635cc
- Rebuild against boost-1.47
f635cc
f635cc
* Sun Jul 10 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.53-1
f635cc
- add Status: header in output
f635cc
- allow fork for parallel processing of individual email folders
f635cc
  in separate mode
f635cc
- proper handling of --with-boost-python option
f635cc
f635cc
* Sun May 22 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.52-1
f635cc
- fix dangling freed pointer in embedded rfc822 message processing
f635cc
- allow broken outlook internet header field - it sometimes contains
f635cc
  fragments of the message body rather than headers
f635cc
f635cc
* Sun Apr 17 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.51-1
f635cc
- fix for buffer overrun; attachment size from the secondary
f635cc
  list of mapi elements overwrote proper size from the primary
f635cc
  list of mapi elements.
f635cc
  fedora bugzilla 696263
f635cc
f635cc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.49-4
f635cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f635cc
f635cc
* Mon Feb 07 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.6.49-3
f635cc
- rebuild for new boost
f635cc
f635cc
* Fri Dec 24 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.50-1
f635cc
- rfc2047 and rfc2231 encoding for non-ascii headers and
f635cc
  attachment filenames.
f635cc
f635cc
* Wed Sep 29 2010 jkeating - 0.6.49-2
f635cc
- Rebuilt for gcc bug 634757
f635cc
f635cc
* Mon Sep 13 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.49-1
f635cc
- fix to ignore embedded objects that are not email messages
f635cc
  fedora bugzilla 633498
f635cc
f635cc
* Thu Sep 02 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.48-1
f635cc
- fix for broken internet headers from Outlook
f635cc
- fix ax_python.m4 to look for python2.7
f635cc
- use mboxrd from quoting for output formats with multiple messages per file
f635cc
- use no from quoting for output formats with single message per file
f635cc
f635cc
* Sat Jul 31 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.47-6
f635cc
- rebuild for python dependencies
f635cc
f635cc
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-4
f635cc
- hack up configure so that it looks for python 2.7
f635cc
f635cc
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-3
f635cc
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f635cc
f635cc
* Wed Jul 07 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.47-2
f635cc
- Subpackage Licensing, add COPYING to -libs.
f635cc
- patches from Kenneth Berland for solaris
f635cc
f635cc
* Fri May 07 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.47-1
f635cc
- patches from Kenneth Berland for solaris
f635cc
f635cc
* Thu Jan 21 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.46-1
f635cc
- prefer libpthread over librt for finding sem_init function.
f635cc
f635cc
* Thu Jan 21 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.45-2
f635cc
- rebuild for new boost package
f635cc
f635cc
* Wed Nov 18 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.45-1
f635cc
- patch from Hugo DesRosiers to export categories and notes into vcards.
f635cc
- extend that patch to export categories into vcalendar appointments also.
f635cc
f635cc
* Sun Sep 20 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.44-1
f635cc
- patch from Lee Ayres to add file name extensions in separate mode.
f635cc
- allow mixed items types in a folder in separate mode.
f635cc
f635cc
* Sat Sep 12 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.43-1
f635cc
- decode more of the pst format, some minor bug fixes
f635cc
- add support for code pages 1200 and 1201.
f635cc
- add readpst -t option to select output item types, which can
f635cc
  now be used to process folders containing mixed item types.
f635cc
- fix segfault with embedded appointments
f635cc
- add readpst -u option for Thunderbird mode .size and .type files
f635cc
- better detection of embedded rfc822 message attachments
f635cc
f635cc
* Thu Sep 03 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.42-1
f635cc
- patch from Fridrich Strba to build with DJGPP DOS cross-compiler.
f635cc
f635cc
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.41-2
f635cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f635cc
f635cc
* Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.41-1
f635cc
- fix ax_python detection - should not use locate command
f635cc
- checking for fedora versions is not needed
f635cc
f635cc
* Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.40-1
f635cc
- fedora 11 has python2.6
f635cc
- remove pdf version of the man pages
f635cc
f635cc
* Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.39-1
f635cc
- fedora > 10 moved to boost-python-devel
f635cc
f635cc
* Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.38-1
f635cc
- add python interface to the shared library.
f635cc
- bump soname to version 4 for many changes to the interface.
f635cc
- better decoding of recurrence data in appointments.
f635cc
- remove readpstlog since debug log files are now plain text.
f635cc
- add readpst -j option for parallel jobs for each folder.
f635cc
- make nested mime multipart/alternative to hold the text/html parts.
f635cc
f635cc
* Fri Apr 17 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.37-1
f635cc
- add pst_attach_to_mem() back into the shared library interface.
f635cc
- fix memory leak caught by valgrind.
f635cc
f635cc
* Tue Apr 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.36-1
f635cc
- build separate -doc and -devel-doc subpackages.
f635cc
- other spec file cleanup
f635cc
f635cc
* Wed Apr 08 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.35-1
f635cc
- properly add trailing mime boundary in all modes.
f635cc
- build separate libpst, libpst-libs, libpst-devel rpms.
f635cc
f635cc
* Thu Mar 19 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.34-1
f635cc
- avoid putting mixed item types into the same output folder.
f635cc
f635cc
* Tue Mar 17 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.33-1
f635cc
- compensate for iconv conversion to utf-7 that produces strings that
f635cc
  are not null terminated.
f635cc
- don't produce empty attachment files in separate mode.
f635cc
f635cc
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.32-1
f635cc
- fix ppc64 compile error
f635cc
f635cc
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.31-1
f635cc
- bump version for fedora cvs tagging mistake
f635cc
f635cc
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.30-1
f635cc
- track character set individually for each mapi element.
f635cc
- remove charset option from pst2ldif since we get that from each
f635cc
  object now.
f635cc
- avoid emitting bogus empty email messages into contacts and
f635cc
  calendar files.
f635cc
f635cc
* Tue Feb 24 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.29-1
f635cc
- fix for 64bit on Fedora 11
f635cc
f635cc
* Tue Feb 24 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.28-1
f635cc
- improve decoding of multipart/report and message/rfc822 mime types.
f635cc
- improve character set handling.
f635cc
- fix embedded rfc822 messages with attachments.
f635cc
f635cc
* Sat Feb 07 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.27-1
f635cc
- fix for const correctness on Fedora 11
f635cc
f635cc
* Sat Feb 07 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.26-1
f635cc
- patch from Fridrich Strba for building on mingw and general
f635cc
- cleanup of autoconf files.
f635cc
- add processing for pst files of type 0x0f.
f635cc
- strip and regenerate all MIME headers to avoid duplicates.
f635cc
- do a better job of making unique MIME boundaries.
f635cc
- only use base64 coding when strictly necessary.
f635cc
f635cc
* Fri Jan 16 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.25-1
f635cc
- improve handling of content-type charset values in mime parts
f635cc
f635cc
* Thu Dec 11 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.24-1
f635cc
- patch from Chris Eagle to build on cygwin
f635cc
f635cc
* Thu Dec 04 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.23-1
f635cc
- bump version to avoid cvs tagging mistake in fedora
f635cc
f635cc
* Fri Nov 28 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.22-1
f635cc
- patch from David Cuadrado to process emails with type PST_TYPE_OTHER
f635cc
- base64_encode_multiple() may insert newline, needs larger malloc
f635cc
- subject lines shorter than 2 bytes could segfault
f635cc
f635cc
* Tue Oct 21 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.21-1
f635cc
- fix title bug with old schema in pst2ldif.
f635cc
- also escape commas in distinguished names per rfc4514.
f635cc
f635cc
* Thu Oct 09 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.20-1
f635cc
- add configure option --enable-dii=no to remove dependency on libgd.
f635cc
- many fixes in pst2ldif by Robert Harris.
f635cc
- add -D option to include deleted items, from Justin Greer
f635cc
- fix from Justin Greer to add missing email headers
f635cc
- fix from Justin Greer for my_stristr()
f635cc
- fix for orphan children when building descriptor tree
f635cc
- avoid writing uninitialized data to debug log file
f635cc
- remove unreachable code
f635cc
- create dummy top-of-folder descriptor if needed for corrupt pst files
f635cc
f635cc
* Sun Sep 14 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.19-1
f635cc
- Fix base64 encoding that could create long lines.
f635cc
- Initial work on a .so shared library from Bharath Acharya.
f635cc
f635cc
* Thu Aug 28 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.18-1
f635cc
- Fixes for iconv on Mac from Justin Greer.
f635cc
f635cc
* Tue Aug 05 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.17-1
f635cc
- More fixes for 32/64 bit portability on big endian ppc.
f635cc
f635cc
* Tue Aug 05 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.16-1
f635cc
- Use inttypes.h for portable printing of 64 bit items.
f635cc
f635cc
* Wed Jul 30 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.15-1
f635cc
- Patch from Robert Simpson for file handle leak in error case.
f635cc
- Fix for missing length on lz decompression, bug found by Chris White.
f635cc
f635cc
* Sun Jun 15 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.14-1
f635cc
- Fix my mistake in debian packaging.
f635cc
f635cc
* Fri Jun 13 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.13-1
f635cc
- Patch from Robert Simpson for encryption type 2.
f635cc
f635cc
* Tue Jun 10 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.12-1
f635cc
- Patch from Joachim Metz for debian packaging and
f635cc
- fix for incorrect length on lz decompression
f635cc
f635cc
* Tue Jun 03 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.11-1
f635cc
- Use ftello/fseeko to properly handle large files.
f635cc
- Document and properly use datasize field in b5 blocks.
f635cc
- Fix some MSVC compile issues and collect MSVC dependencies into one place.
f635cc
f635cc
* Thu May 29 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.10-1
f635cc
- Patch from Robert Simpson for doubly-linked list code and arrays of unicode strings.
f635cc
f635cc
* Fri May 16 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.9
f635cc
- Patch from Joachim Metz for 64 bit compile.
f635cc
- Fix pst format documentation for 8 byte backpointers.
f635cc
f635cc
* Wed Mar 05 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.8
f635cc
- Initial version of pst2dii to convert to Summation dii load file format
f635cc
- changes for Fedora packaging guidelines (#434727)
f635cc
f635cc
* Tue Jul 10 2007 Carl Byington <carl@five-ten-sg.com> - 0.5.5
f635cc
- merge changes from Joe Nahmias version
f635cc
f635cc
* Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3
f635cc
- initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
f635cc