Mercurial > libpst
changeset 64:2c6040b6e8f8
packaging for Fedora (#434727)
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 26 Feb 2008 17:06:33 -0800 |
parents | cfd6175f9334 |
children | 800c6fde1cf6 |
files | ChangeLog NEWS libpst.spec.in src/pst2dii.cpp.in xml/libpst.in |
diffstat | 5 files changed, 42 insertions(+), 56 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Feb 23 14:36:17 2008 -0800 +++ b/ChangeLog Tue Feb 26 17:06:33 2008 -0800 @@ -1,6 +1,7 @@ LibPST 0.6.8 (2008-xx-xx) =============================== - * Start work on pst2dii to convert to Summation dii load file format. + * Initial version of pst2dii to convert to Summation dii load file format. + * Changes for Fedora packaging (#434727) LibPST 0.6.7 (2008-02-16) ===============================
--- a/NEWS Sat Feb 23 14:36:17 2008 -0800 +++ b/NEWS Tue Feb 26 17:06:33 2008 -0800 @@ -1,4 +1,4 @@ -0.6.8 2008-xx-xx Start work on pst2dii to convert to Summation dii load file format. +0.6.8 2008-02-26 Initial version of pst2dii to convert to Summation dii load file format. 0.6.7 2008-02-16 Ignore unknown attachments on some read messages; autoconf cleanup. 0.6.6 2008-01-31 Code cleanup, switch from cvs to mercurial source control. 0.6.5 2008-01-22 Code cleanup, rpm group Applications/Productivity.
--- a/libpst.spec.in Sat Feb 23 14:36:17 2008 -0800 +++ b/libpst.spec.in Tue Feb 26 17:06:33 2008 -0800 @@ -1,75 +1,57 @@ %define localstatedir /var/lib -Summary: @PACKAGE@ Libpst utilities +Summary: Utilities to convert Outlook .pst files to other formats Name: @PACKAGE@ Version: @VERSION@ -Release: %{?custom_release}%{!?custom_release:1} -License: GPL version 2 or later +Release: 1%{?dist} +License: GPLv2+ Group: Applications/Productivity -Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot -URL: http://www.five-ten-sg.com/@PACKAGE@/ -Vendor: Libpst team -Packager: 510 Software Group -AutoReqProv: no +Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +URL: http://www.five-ten-sg.com/%{name}/ +Requires: freetype gd libpng libjpeg zlib glibc libgcc libstdc++ +BuildRequires: freetype-devel gd-devel libjpeg-devel zlib-devel + %description -The Libpst utilities include readpst which can extract mail messages from an Outlook .pst file, and pst2ldif which can convert the contacts to .ldif format for import into ldap databases. +The Libpst utilities include readpst which can convert email messages +to both mbox and MH mailbox formats, pst2ldif which can convert the +contacts to .ldif format for import into ldap databases, and pst2dii +which can convert email messages to the DII load file format used by +Summation. %prep - - -%setup - +%setup -q %build -./configure --prefix=%{_prefix} \ - --bindir=%{_bindir} --mandir=%{_mandir} \ - --localstatedir=%{localstatedir} --libdir=%{_libdir} \ - --datadir=%{_datadir} --includedir=%{_includedir} \ - --sysconfdir=%{_sysconfdir} -make - +%configure +make %{?_smp_mflags} %install -if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then - echo sorry, you probably do not want me to delete the old buildroot at $RPM_BUILD_ROOT - exit 1 -fi rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \ - mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \ - localstatedir=$RPM_BUILD_ROOT%{localstatedir} \ - datadir=$RPM_BUILD_ROOT%{_datadir} \ - includedir=$RPM_BUILD_ROOT%{_includedir} \ - sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install -mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@ -mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@ +make DESTDIR=$RPM_BUILD_ROOT install -%pre - -%post - -%preun - -%postun - %clean +rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) +%defattr(-,root,root,-) %{_bindir}/* -%doc %{_mandir}/* -%docdir %{_datadir}/doc/@PACKAGE@-@VERSION@ -%{_datadir}/doc/@PACKAGE@-@VERSION@ +%{_mandir}/man1/* +%{_mandir}/man5/* +%doc AUTHORS COPYING ChangeLog NEWS README %changelog -* Tue Jul 10 2007 Carl Byington 0.5.5 +* Tue Feb 26 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.8 +- Initial version of pst2dii to convert to Summation dii load file format +- changes for Fedora packaging guidelines (#434727) + +* Tue Jul 10 2007 Carl Byington <carl@five-ten-sg.com> - 0.5.5 - merge changes from Joe Nahmias version -* Sun Feb 19 2006 Carl Byington 0.5.3 +* Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
--- a/src/pst2dii.cpp.in Sat Feb 23 14:36:17 2008 -0800 +++ b/src/pst2dii.cpp.in Tue Feb 26 17:06:33 2008 -0800 @@ -35,11 +35,10 @@ stored_count = 0; email_count = 0; skip_count = 0; - type - 0; + type = 0; }; }; - // global settings char* convert = "@CONVERT@"; // fully qualified path of the convert program from image magick char* prog_name = NULL; // our arg0 name @@ -483,17 +482,17 @@ if (item->email->sent_date) { time_t t = fileTimeToUnixTime(item->email->sent_date, NULL); char c_time[C_TIME_SIZE]; - strftime(c_time, C_TIME_SIZE, "%F +0000", gmtime(&t)); + strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t)); write_simple("DATESENT", c_time); - strftime(c_time, C_TIME_SIZE, "%T +0000", gmtime(&t)); + strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t)); write_simple("TIMESENT", c_time); } if (item->email->arrival_date) { time_t t = fileTimeToUnixTime(item->email->arrival_date, NULL); char c_time[C_TIME_SIZE]; - strftime(c_time, C_TIME_SIZE, "%F +0000", gmtime(&t)); + strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t)); write_simple("DATERCVD", c_time); - strftime(c_time, C_TIME_SIZE, "%T +0000", gmtime(&t)); + strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t)); write_simple("TIMERCVD", c_time); } if (item->email->subject) {
--- a/xml/libpst.in Sat Feb 23 14:36:17 2008 -0800 +++ b/xml/libpst.in Tue Feb 26 17:06:33 2008 -0800 @@ -21,7 +21,11 @@ </para> <para>This version can now convert both 32 bit Outlook files (pre 2003), and the - 64 bit Outlook 2003 pst files. + 64 bit Outlook 2003 pst files. Utilities are supplied to convert email messages + to both mbox and MH mailbox formats, and to DII load file format for use with + many of the <ulink url="http://www.ctsummation.com">CT Summation</ulink> products. + Contacts can be converted to a simple list, to vcard format, or to ldif format + for import to an LDAP server. </para> </partintro>