Compare commits
No commits in common. "c9-beta" and "c8s" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/libpst-0.6.75.tar.gz
|
||||
/libpst-0.6.71.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
9edf3a611115c94472d831b6ac400fca3264d8f2 SOURCES/libpst-0.6.75.tar.gz
|
@ -1,241 +0,0 @@
|
||||
diff -up libpst-0.6.75/man/lspst.1 libpst-0.6.75/man/lspst
|
||||
diff -up libpst-0.6.75/man/pst2dii.1 libpst-0.6.75/man/pst2dii
|
||||
diff -up libpst-0.6.75/man/pst2ldif.1 libpst-0.6.75/man/pst2ldif
|
||||
diff -up libpst-0.6.75/man/readpst.1 libpst-0.6.75/man/readpst
|
||||
diff -up libpst-0.6.75/src/define.h.1 libpst-0.6.75/src/define.h
|
||||
--- libpst-0.6.75/src/define.h.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/define.h 2021-02-22 18:25:55.705347052 +0100
|
||||
@@ -60,6 +60,10 @@
|
||||
#ifdef _WIN32
|
||||
#include <direct.h>
|
||||
|
||||
+ #ifdef __cplusplus
|
||||
+ extern "C" {
|
||||
+ #endif
|
||||
+
|
||||
#define D_MKDIR(x) mkdir(x)
|
||||
#define chdir _chdir
|
||||
#define strcasecmp _stricmp
|
||||
@@ -83,10 +87,20 @@
|
||||
int __cdecl _fseeki64(FILE *, __int64, int);
|
||||
__int64 __cdecl _ftelli64(FILE *);
|
||||
|
||||
+ #ifdef __cplusplus
|
||||
+ }
|
||||
+ #endif
|
||||
+
|
||||
#ifdef __MINGW32__
|
||||
#include <getopt.h>
|
||||
#else
|
||||
+ #ifdef __cplusplus
|
||||
+ extern "C" {
|
||||
+ #endif
|
||||
#include "XGetopt.h"
|
||||
+ #ifdef __cplusplus
|
||||
+ }
|
||||
+ #endif
|
||||
#endif
|
||||
#include <process.h>
|
||||
#undef gmtime_r
|
||||
@@ -102,7 +116,15 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#else
|
||||
+ #ifdef __cplusplus
|
||||
+ extern "C" {
|
||||
+ #endif
|
||||
+
|
||||
#include "XGetopt.h"
|
||||
+
|
||||
+ #ifdef __cplusplus
|
||||
+ }
|
||||
+ #endif
|
||||
#endif
|
||||
#define D_MKDIR(x) mkdir(x, PERM_DIRS)
|
||||
#endif
|
||||
@@ -131,6 +153,9 @@
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
void pst_debug_lock();
|
||||
void pst_debug_unlock();
|
||||
@@ -258,4 +283,8 @@ void *pst_realloc(void *ptr, size_t size
|
||||
|
||||
#define MAXDATEFMTLEN 40
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+} /* extern "C" */
|
||||
+#endif
|
||||
+
|
||||
#endif //DEFINEH_H
|
||||
diff -up libpst-0.6.75/src/deltasearch.cpp.1 libpst-0.6.75/src/deltasearch.cpp
|
||||
--- libpst-0.6.75/src/deltasearch.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/deltasearch.cpp 2021-02-22 18:01:36.962177562 +0100
|
||||
@@ -1,6 +1,4 @@
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
-};
|
||||
+#include "define.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <iostream>
|
||||
diff -up libpst-0.6.75/src/libstrfunc.h.1 libpst-0.6.75/src/libstrfunc.h
|
||||
--- libpst-0.6.75/src/libstrfunc.h.1 2021-02-22 18:35:32.849905730 +0100
|
||||
+++ libpst-0.6.75/src/libstrfunc.h 2021-02-22 18:35:49.383893089 +0100
|
||||
@@ -4,9 +4,17 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
char *pst_base64_encode(void *data, size_t size);
|
||||
char *pst_base64_encode_single(void *data, size_t size);
|
||||
char *pst_base64_encode_multiple(void *data, size_t size, int *line_count);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
|
||||
diff -up libpst-0.6.75/src/lzfu.h.1 libpst-0.6.75/src/lzfu.h
|
||||
--- libpst-0.6.75/src/lzfu.h.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/lzfu.h 2021-02-22 18:01:36.962177562 +0100
|
||||
@@ -1,6 +1,10 @@
|
||||
#ifndef LZFU_H
|
||||
#define LZFU_H
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
/** decompress lz compressed rtf data. The initial lz dictionary is preloaded
|
||||
with rtf specific data.
|
||||
* @param rtfcomp pointer to the rtf compressed data
|
||||
@@ -11,4 +15,8 @@
|
||||
*/
|
||||
char* pst_lzfu_decompress (char* rtfcomp, uint32_t compsize, size_t *size);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
diff -up libpst-0.6.75/src/msg.cpp.1 libpst-0.6.75/src/msg.cpp
|
||||
--- libpst-0.6.75/src/msg.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/msg.cpp 2021-02-22 18:01:36.962177562 +0100
|
||||
@@ -1,16 +1,14 @@
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
- #include "msg.h"
|
||||
- #include <gsf/gsf-utils.h>
|
||||
+#include "define.h"
|
||||
+#include "msg.h"
|
||||
+#include <gsf/gsf-utils.h>
|
||||
|
||||
- #include <gsf/gsf-input-stdio.h>
|
||||
- #include <gsf/gsf-infile.h>
|
||||
- #include <gsf/gsf-infile-stdio.h>
|
||||
+#include <gsf/gsf-input-stdio.h>
|
||||
+#include <gsf/gsf-infile.h>
|
||||
+#include <gsf/gsf-infile-stdio.h>
|
||||
|
||||
- #include <gsf/gsf-output-stdio.h>
|
||||
- #include <gsf/gsf-outfile.h>
|
||||
- #include <gsf/gsf-outfile-msole.h>
|
||||
-}
|
||||
+#include <gsf/gsf-output-stdio.h>
|
||||
+#include <gsf/gsf-outfile.h>
|
||||
+#include <gsf/gsf-outfile-msole.h>
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
diff -up libpst-0.6.75/src/msg.h.1 libpst-0.6.75/src/msg.h
|
||||
--- libpst-0.6.75/src/msg.h.1 2021-02-22 18:21:59.812527452 +0100
|
||||
+++ libpst-0.6.75/src/msg.h 2021-02-22 18:22:17.689513780 +0100
|
||||
@@ -1,2 +1,10 @@
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
void write_msg_email(char *fname, pst_item* item, pst_file* pst);
|
||||
+
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
diff -up libpst-0.6.75/src/nick2ldif.cpp.1 libpst-0.6.75/src/nick2ldif.cpp
|
||||
--- libpst-0.6.75/src/nick2ldif.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/nick2ldif.cpp 2021-02-22 18:01:36.963177561 +0100
|
||||
@@ -8,9 +8,7 @@ http://www.fsf.org/licenses/gpl.txt
|
||||
|
||||
#include <iostream>
|
||||
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
-}
|
||||
+#include "define.h"
|
||||
|
||||
char *ldap_base = NULL;
|
||||
char *ldap_org = NULL;
|
||||
diff -up libpst-0.6.75/src/pst2dii.cpp.1 libpst-0.6.75/src/pst2dii.cpp
|
||||
--- libpst-0.6.75/src/pst2dii.cpp.1 2020-03-26 18:54:32.000000000 +0100
|
||||
+++ libpst-0.6.75/src/pst2dii.cpp 2021-02-22 18:01:36.963177561 +0100
|
||||
@@ -13,10 +13,8 @@ Based on readpst.c by David Smith
|
||||
|
||||
using namespace std;
|
||||
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
- #include "lzfu.h"
|
||||
-}
|
||||
+#include "define.h"
|
||||
+#include "lzfu.h"
|
||||
|
||||
struct file_ll {
|
||||
string name;
|
||||
diff -up libpst-0.6.75/src/pst2ldif.cpp.1 libpst-0.6.75/src/pst2ldif.cpp
|
||||
--- libpst-0.6.75/src/pst2ldif.cpp.1 2020-03-26 18:52:30.000000000 +0100
|
||||
+++ libpst-0.6.75/src/pst2ldif.cpp 2021-02-22 18:01:36.963177561 +0100
|
||||
@@ -15,10 +15,8 @@ using namespace std;
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
-extern "C" {
|
||||
- #include "define.h"
|
||||
- #include "lzfu.h"
|
||||
-}
|
||||
+#include "define.h"
|
||||
+#include "lzfu.h"
|
||||
|
||||
void usage(void);
|
||||
void version(void);
|
||||
diff -up libpst-0.6.75/src/vbuf.h.1 libpst-0.6.75/src/vbuf.h
|
||||
--- libpst-0.6.75/src/vbuf.h.1 2021-02-22 18:23:24.020463050 +0100
|
||||
+++ libpst-0.6.75/src/vbuf.h 2021-02-22 18:23:26.377461247 +0100
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
// Variable-length buffers
|
||||
struct pst_varbuf {
|
||||
@@ -25,5 +28,8 @@ size_t pst_vb_utf16to8(pst_vbuf *des
|
||||
size_t pst_vb_utf8to8bit(pst_vbuf *dest, const char *inbuf, int iblen, const char* charset);
|
||||
size_t pst_vb_8bit2utf8(pst_vbuf *dest, const char *inbuf, int iblen, const char* charset);
|
||||
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
|
||||
#endif
|
||||
diff -up libpst-0.6.75/src/XGetopt.h.1 libpst-0.6.75/src/XGetopt.h
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -1,63 +1,27 @@
|
||||
%if 0%{?fedora} > 27 || 0%{?rhel} >= 9
|
||||
%global use_python3 1
|
||||
%define __python %{__python3}
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} >= 9
|
||||
%global with_dii 0
|
||||
%else
|
||||
%global with_dii 1
|
||||
%endif
|
||||
%global python2_sybpackage 0
|
||||
|
||||
Summary: Utilities to convert Outlook .pst files to other formats
|
||||
Name: libpst
|
||||
Version: 0.6.75
|
||||
Release: 12%{?dist}
|
||||
Version: 0.6.71
|
||||
Release: 8%{?dist}
|
||||
License: GPLv2+
|
||||
Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
|
||||
URL: http://www.five-ten-sg.com/%{name}/
|
||||
Source: %{url}/packages/%{name}-%{version}.tar.gz
|
||||
Requires: libgsf
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
BuildRequires: libtool
|
||||
BuildRequires: gd-devel zlib-devel boost-devel libgsf-devel
|
||||
|
||||
Patch01: extern-c.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: libtool gcc-c++
|
||||
BuildRequires: gd-devel zlib-devel boost-devel libgsf-devel gettext-devel
|
||||
|
||||
%if 0%{with_dii}
|
||||
BuildRequires: ImageMagick
|
||||
%if %{python2_sybpackage}
|
||||
BuildRequires: python2-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?use_python3}
|
||||
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
||||
Requires: boost-python3
|
||||
%else
|
||||
BuildRequires: python-devel
|
||||
%endif
|
||||
|
||||
Requires: libgsf gettext
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%if 0%{with_dii}
|
||||
Requires: ImageMagick%{?_isa}
|
||||
%endif
|
||||
|
||||
%{!?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)")}
|
||||
|
||||
|
||||
%if 0%{with_dii}
|
||||
%description
|
||||
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.
|
||||
%else
|
||||
%description
|
||||
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.
|
||||
%endif
|
||||
|
||||
|
||||
%package libs
|
||||
@ -68,40 +32,27 @@ The libpst-libs package contains the shared library used by the pst
|
||||
utilities.
|
||||
|
||||
|
||||
%if 0%{?use_python3}
|
||||
%package -n python3-%{name}
|
||||
Requires: python3
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
%else
|
||||
%package python
|
||||
Requires: python
|
||||
%endif
|
||||
%if %{python2_sybpackage}
|
||||
|
||||
%package -n python2-libpst
|
||||
%{?python_provide:%python_provide python2-libpst}
|
||||
# Remove before F30
|
||||
Provides: %{name}-python2 = %{version}-%{release}
|
||||
Provides: %{name}-python2%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python2 < %{version}-%{release}
|
||||
Summary: Python bindings for libpst
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 9
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$
|
||||
%else
|
||||
%{?filter_setup:
|
||||
%filter_provides_in %{python_sitearch}/_.*\.so$
|
||||
%filter_setup
|
||||
}
|
||||
%endif
|
||||
|
||||
|
||||
%if 0%{?use_python3}
|
||||
%description -n python3-%{name}
|
||||
%else
|
||||
%description python
|
||||
%endif
|
||||
%description -n python2-libpst
|
||||
The libpst-python package allows you to use the libpst shared object
|
||||
from Python code.
|
||||
from python code.
|
||||
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: Library links and header files for libpst application development
|
||||
Requires: pkgconfig
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The libpst-devel package contains the library links and header files
|
||||
@ -131,46 +82,31 @@ libpst utilities.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch01 -p1 -b .1
|
||||
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --enable-libpst-shared \
|
||||
%if 0%{with_dii}
|
||||
--enable-dii \
|
||||
autoreconf -v -f -i
|
||||
%configure \
|
||||
%if %{python2_sybpackage}
|
||||
--enable-python \
|
||||
%else
|
||||
--disable-dii \
|
||||
--disable-python \
|
||||
%endif
|
||||
--with-boost-python=boost_python%{python3_version_nodots}
|
||||
%if 0%{?use_python3}
|
||||
--enable-libpst-shared
|
||||
%make_build
|
||||
%else
|
||||
make %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%if 0%{?use_python3}
|
||||
%make_install
|
||||
%else
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
%endif
|
||||
#Remove libtool archives.
|
||||
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
|
||||
mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{name}
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/libpst.la
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
|
||||
|
||||
# Remove pst2dii man page, when it's not built
|
||||
%if !0%{with_dii}
|
||||
rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
%endif
|
||||
|
||||
%if 0%{?use_python3}
|
||||
%ldconfig_scriptlets libs
|
||||
%else
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
@ -183,13 +119,13 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
%doc COPYING
|
||||
|
||||
|
||||
%if 0%{?use_python3}
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitearch}/_*.so
|
||||
%else
|
||||
%files python
|
||||
%{python_sitearch}/_*.so
|
||||
%if %{python2_sybpackage}
|
||||
|
||||
%files -n python2-libpst
|
||||
%{python2_sitearch}/_*.so
|
||||
%exclude %{python2_sitearch}/*.a
|
||||
%exclude %{python2_sitearch}/*.la
|
||||
|
||||
%endif
|
||||
|
||||
|
||||
@ -214,89 +150,11 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
* Mon Apr 09 2018 Milan Crha <mcrha@redhat.com> - 0.6.71-8
|
||||
- Remove dependency on ImageMagick
|
||||
|
||||
* Tue Apr 20 2021 Milan Crha <mcrha@redhat.com> - 0.6.75-11
|
||||
- Add patch to correct 'extern "C"' usage
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Tue Feb 02 2021 Milan Crha <mcrha@redhat.com> - 0.6.75-9
|
||||
- Resolves: #1913613 (Disable DII (and ImageMagic dependency) for RHEL 9)
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.75-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 0.6.75-7
|
||||
- Rebuilt for Boost 1.75
|
||||
|
||||
* Tue Jul 28 2020 Merlin Mathesius <mmathesi@redhat.com> - 0.6.75-6
|
||||
- FTBFS fix: %%{__python} must now be explicitly defined
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.75-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jul 16 2020 Merlin Mathesius <mmathesi@redhat.com> - 0.6.75-4
|
||||
- Cleanup conditionals for using python3
|
||||
|
||||
* Fri May 29 2020 Jonathan Wakely <jwakely@redhat.com> - 0.6.75-3
|
||||
- Rebuilt for Boost 1.73
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.75-2
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Sun Mar 22 2020 Carl Byington <carl@five-ten-sg.com> 0.6.75-1
|
||||
- Markus Schnalke - fix from Debian for vcard version format.
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.74-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sun Jan 12 2020 Carl Byington <carl@five-ten-sg.com> 0.6.74-1
|
||||
- Paul Wise - many changes for debian:
|
||||
- Add missing linking with zlib and libpthread/librt
|
||||
- Use PKG_CHECK_MODULES to find the gsf-1 library
|
||||
- Fix usage of indefinite articles
|
||||
- Fix a number of spelling mistakes
|
||||
- Use plain make when building from Mercurial
|
||||
- Add operator and quotes to the AX_PYTHON_DEVEL parameter
|
||||
- Remove files copied in by autotools
|
||||
- Add AM_GNU_GETTEXT macros
|
||||
- Rename configure.in to configure.ac
|
||||
- add extern "C" to header for use with C++ code
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.72-6
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Carl Byington <carl@five-ten-sg.com> 0.6.73-1
|
||||
- Tim Dufrane - fix segfault in pst_close()
|
||||
|
||||
* Sat Jun 08 2019 Leigh Scott <leigh123linux@googlemail.com> - 0.6.72-4
|
||||
- Add configure option for boost-python
|
||||
- Remove all old fedora conditionals
|
||||
- Update spec file to comply with packaging guidelines
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 0.6.72-2
|
||||
- Rebuilt for Boost 1.69
|
||||
|
||||
* Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1
|
||||
- allow all 7 days in bydays recurring appointment
|
||||
- update for Fedora Python packaging
|
||||
- Alfredo Esteban - add -l and -f options to lspst
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
* Wed Mar 28 2018 Milan Crha <mcrha@redhat.com> - 0.6.71-7
|
||||
- Disable python2 subpackage
|
||||
|
||||
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-6
|
||||
- Add Provides for the old name without %%_isa
|
||||
@ -316,7 +174,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Jul 21 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1
|
||||
- Fedora Python naming scheme changes
|
||||
- fedora python naming scheme changes
|
||||
- Zachary Travis - Add support for the OST 2013 format, and
|
||||
Content-Disposition filename key fix for outlook compatibility
|
||||
|
||||
@ -374,7 +232,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- Rebuilt for GCC 5 C++11 ABI change
|
||||
|
||||
* Mon Mar 09 2015 Carl Byington <carl@five-ten-sg.com> 0.6.64-1
|
||||
- fix line wrap on Python provides_exclude_from
|
||||
- fix line wrap on python provides_exclude_from
|
||||
- fix unchecked errors found by cppcheck
|
||||
- AJ Shankar fixes for attachment processing and body encodings
|
||||
that contain embedded null chars.
|
||||
@ -436,7 +294,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- merge -m .msg files code into main branch
|
||||
|
||||
* Thu Aug 09 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.55-2
|
||||
- rebuild for Python
|
||||
- rebuild for python
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.54-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
@ -453,7 +311,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Sat Dec 24 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.54-3
|
||||
- bump versions and prep for Fedora build
|
||||
- bump versions and prep for fedora build
|
||||
|
||||
* Wed Nov 30 2011 Petr Pisar <ppisar@redhat.com> - 0.6.53-3
|
||||
- Rebuild against boost-1.48
|
||||
@ -482,7 +340,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- fix for buffer overrun; attachment size from the secondary
|
||||
list of mapi elements overwrote proper size from the primary
|
||||
list of mapi elements.
|
||||
Fedora bugzilla 696263
|
||||
fedora bugzilla 696263
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.49-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
@ -499,7 +357,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
|
||||
* Mon Sep 13 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.49-1
|
||||
- fix to ignore embedded objects that are not email messages
|
||||
Fedora bugzilla 633498
|
||||
fedora bugzilla 633498
|
||||
|
||||
* Thu Sep 02 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.48-1
|
||||
- fix for broken internet headers from Outlook
|
||||
@ -508,10 +366,10 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- use no from quoting for output formats with single message per file
|
||||
|
||||
* Sat Jul 31 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.47-6
|
||||
- rebuild for Python dependencies
|
||||
- rebuild for python dependencies
|
||||
|
||||
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-4
|
||||
- hack up configure so that it looks for Python 2.7
|
||||
- hack up configure so that it looks for python 2.7
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
@ -554,17 +412,17 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
|
||||
* Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.41-1
|
||||
- fix ax_python detection - should not use locate command
|
||||
- checking for Fedora versions is not needed
|
||||
- checking for fedora versions is not needed
|
||||
|
||||
* Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.40-1
|
||||
- Fedora 11 has python2.6
|
||||
- fedora 11 has python2.6
|
||||
- remove pdf version of the man pages
|
||||
|
||||
* Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.39-1
|
||||
- Fedora > 10 moved to boost-python-devel
|
||||
- fedora > 10 moved to boost-python-devel
|
||||
|
||||
* Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.38-1
|
||||
- add Python interface to the shared library.
|
||||
- add python interface to the shared library.
|
||||
- bump soname to version 4 for many changes to the interface.
|
||||
- better decoding of recurrence data in appointments.
|
||||
- remove readpstlog since debug log files are now plain text.
|
||||
@ -595,7 +453,7 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- fix ppc64 compile error
|
||||
|
||||
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.31-1
|
||||
- bump version for Fedora cvs tagging mistake
|
||||
- bump version for fedora cvs tagging mistake
|
||||
|
||||
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.30-1
|
||||
- track character set individually for each mapi element.
|
||||
@ -670,13 +528,13 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
|
||||
- Fix for missing length on lz decompression, bug found by Chris White.
|
||||
|
||||
* Sun Jun 15 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.14-1
|
||||
- Fix my mistake in Debian packaging.
|
||||
- Fix my mistake in debian packaging.
|
||||
|
||||
* Fri Jun 13 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.13-1
|
||||
- Patch from Robert Simpson for encryption type 2.
|
||||
|
||||
* Tue Jun 10 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.12-1
|
||||
- Patch from Joachim Metz for Debian packaging and
|
||||
- Patch from Joachim Metz for debian packaging and
|
||||
- fix for incorrect length on lz decompression
|
||||
|
||||
* Tue Jun 03 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.11-1
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (libpst-0.6.71.tar.gz) = 7e03d8e7c37acdae3bd2fd9f3eca03de2c683146416d2a17ed4e673a69cb553dc59932fd8388a751de399e9063f559eaa8d2511f6d3407eebfa6b211763d83aa
|
BIN
tests/data.pst
Normal file
BIN
tests/data.pst
Normal file
Binary file not shown.
35
tests/runner.sh
Executable file
35
tests/runner.sh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "${1}" in
|
||||
("lspst_folders") test "`lspst data.pst | grep -c Folder`" = "5" ;;
|
||||
("lspst_mails") test "`lspst data.pst | grep -c Email`" = "3" ;;
|
||||
("lspst_contacts") test "`lspst data.pst | grep -c Contact`" = "4" ;;
|
||||
("lspst_events") test "`lspst data.pst | grep -c Appointment`" = "1" ;;
|
||||
("pst2ldif_run") test "`pst2ldif -b base -c class data.pst | grep -c no.where`" = "3" ;;
|
||||
("readpst_basic") test "`readpst data.pst -o /tmp | grep -c Folder`" = "13" ;;
|
||||
("readpst_contacts") readpst -tc -cv data.pst >/dev/null && test "`cat Contacts.contacts | grep -c BEGIN:VCARD`" = "3" ;;
|
||||
("readpst_contacts_emails") readpst -tc -cv -w data.pst >/dev/null && test "`cat Contacts.contacts | grep -c '@no.where'`" = "3" ;;
|
||||
("readpst_contacts_plain") readpst -tc -cl -w data.pst >/dev/null && test "`cat Contacts.contacts | wc -l`" = "3" ;;
|
||||
("readpst_contacts_plain_emails") readpst -tc -cl -w >/dev/null data.pst && test "`cat Contacts.contacts | grep -c '@no.where'`" = "3" ;;
|
||||
("readpst_events") readpst -ta data.pst >/dev/null && test "`cat Calendar.calendar | grep -c BEGIN:VEVENT`" = "1" ;;
|
||||
("readpst_events_summary") readpst -ta -w data.pst >/dev/null && test "`cat Calendar.calendar | grep -c 'SUMMARY:event on 2020-02-13'`" = "1" ;;
|
||||
("readpst_mails") readpst -te data.pst >/dev/null && test "`ls -l *.mbox | wc -l`" = "2" ;;
|
||||
("readpst_mails_inbox") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c 'From '`" = "2" ;;
|
||||
("readpst_mails_inbox_to") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c 'To: zyx@no.where'`" = "2" ;;
|
||||
("readpst_mails_inbox_cc") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c -i 'CC'`" = "0" ;;
|
||||
("readpst_mails_inbox_email") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c 'zyx@no.where'`" = "2" ;;
|
||||
("readpst_mails_inbox_subject") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c 'Subject: Plain text message'`" = "2" ;;
|
||||
("readpst_mails_inbox_subject_2") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c 'Subject: Plain text message \]\['`" = "1" ;;
|
||||
("readpst_mails_inbox_body") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep 'Plain text' | grep -c -v 'Subject:'`" = "1" ;;
|
||||
("readpst_mails_inbox_body_2") readpst -te -w data.pst >/dev/null && test "`cat Inbox.mbox | grep -c 'The second plain text'`" = "1" ;;
|
||||
("readpst_mails_drafts") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c 'From '`" = "1" ;;
|
||||
("readpst_mails_drafts_to") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c 'To: zyx@no.where'`" = "1" ;;
|
||||
("readpst_mails_drafts_cc") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c -i 'CC'`" = "0" ;;
|
||||
("readpst_mails_drafts_email") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c 'zyx@no.where'`" = "1" ;;
|
||||
("readpst_mails_drafts_subject") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c 'Subject: Plain text message'`" = "1" ;;
|
||||
("readpst_mails_drafts_subject_2") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c 'Subject: Plain text message \]\['`" = "1" ;;
|
||||
("readpst_mails_drafts_body") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep 'Plain text' | grep -c -v 'Subject:'`" = "0" ;;
|
||||
("readpst_mails_drafts_body_2") readpst -te -w data.pst >/dev/null && test "`cat Drafts.mbox | grep -c 'The second plain text'`" = "1" ;;
|
||||
("") echo "runner.sh: Requires one argument, a test name to run" >&2 ; exit 1 ;;
|
||||
(*) echo "runner.sh: Unknown test name '%{1}'" >&2 ; exit 1 ;;
|
||||
esac
|
105
tests/tests.yml
Normal file
105
tests/tests.yml
Normal file
@ -0,0 +1,105 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- atomic
|
||||
- classic
|
||||
required_packages:
|
||||
- libpst
|
||||
tests:
|
||||
- lspst_help:
|
||||
dir: .
|
||||
run: lspst -h >/dev/null
|
||||
- lspst_folders:
|
||||
dir: .
|
||||
run: ./runner.sh lspst_folders
|
||||
- lspst_mails:
|
||||
dir: .
|
||||
run: ./runner.sh lspst_mails
|
||||
- lspst_contacts:
|
||||
dir: .
|
||||
run: ./runner.sh lspst_contacts
|
||||
- lspst_events:
|
||||
dir: .
|
||||
run: ./runner.sh lspst_events
|
||||
- pst2ldif_help:
|
||||
dir: .
|
||||
run: pst2ldif -h >/dev/null
|
||||
- pst2ldif_run:
|
||||
dir: .
|
||||
run: ./runner.sh pst2ldif_run
|
||||
- readpst_help:
|
||||
dir: .
|
||||
run: readpst -h >/dev/null
|
||||
- readpst_basic:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_basic
|
||||
- readpst_contacts:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_contacts
|
||||
- readpst_contacts_emails:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_contacts_emails
|
||||
- readpst_contacts_plain:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_contacts_plain
|
||||
- readpst_contacts_plain_emails:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_contacts_plain_emails
|
||||
- readpst_events:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_events
|
||||
- readpst_events_summary:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_events_summary
|
||||
- readpst_mails:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails
|
||||
- readpst_mails_inbox:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox
|
||||
- readpst_mails_inbox_to:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_to
|
||||
- readpst_mails_inbox_cc:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_cc
|
||||
- readpst_mails_inbox_email:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_email
|
||||
- readpst_mails_inbox_subject:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_subject
|
||||
- readpst_mails_inbox_subject_2:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_subject_2
|
||||
- readpst_mails_inbox_body:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_body
|
||||
- readpst_mails_inbox_body_2:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_inbox_body_2
|
||||
- readpst_mails_drafts:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts
|
||||
- readpst_mails_drafts_to:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_to
|
||||
- readpst_mails_drafts_cc:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_cc
|
||||
- readpst_mails_drafts_email:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_email
|
||||
- readpst_mails_drafts_subject:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_subject
|
||||
- readpst_mails_drafts_subject_2:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_subject_2
|
||||
- readpst_mails_drafts_body:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_body
|
||||
- readpst_mails_drafts_body_2:
|
||||
dir: .
|
||||
run: ./runner.sh readpst_mails_drafts_body_2
|
Loading…
Reference in New Issue
Block a user