SHA256
10
0
forked from pool/libpst

Accepting request 1000318 from GNOME:Next

- Update to version 0.6.76:
  + Fix rfc2231 encoding when saving messages to .eml and .msg
    formats.
- Package COPYING with license macro in shared library package.
- Drop libpst-glib-2.68.patch: No longer needed.
- Split out doc sub-package and add a Suggests in main package.
- Use ldconfig_scriptlets macro for post(un) handling.

OBS-URL: https://build.opensuse.org/request/show/1000318
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libpst?expand=0&rev=75
This commit is contained in:
2022-08-31 14:30:31 +00:00
committed by Git OBS Bridge
parent 8a5532f715
commit 6290b8e1a2
5 changed files with 33 additions and 248 deletions
+11
View File
@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Aug 30 15:41:52 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 0.6.76:
+ Fix rfc2231 encoding when saving messages to .eml and .msg
formats.
- Package COPYING with license macro in shared library package.
- Drop libpst-glib-2.68.patch: No longer needed.
- Split out doc sub-package and add a Suggests in main package.
- Use ldconfig_scriptlets macro for post(un) handling.
-------------------------------------------------------------------
Fri Mar 19 14:08:14 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
+19 -8
View File
@@ -1,7 +1,7 @@
#
# spec file for package libpst
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2008 Bharath Acharya
#
# All modifications and additions to the file contributed by third parties
@@ -18,20 +18,20 @@
Name: libpst
Version: 0.6.75
Version: 0.6.76
Release: 0
Summary: Library and utilities for reading Personal Storage Table files
License: GPL-2.0-or-later
Group: Productivity/Networking/Email/Utilities
URL: http://www.gnome.org/projects/evolution/
Source0: http://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM libpst-glib-2.68.patch dimstar@opensuse.org -- Fix build against glib 2.68
Patch0: libpst-glib-2.68.patch
BuildRequires: gcc-c++
BuildRequires: gd-devel
BuildRequires: libgsf-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(zlib)
Suggests: %{name}-doc
%description
The libpst utilities include readpst, which can convert email messages
@@ -60,6 +60,15 @@ libpst is a library that can decode the email messages stored in a
This subpackage contains the header files for developing
applications that want to make use of libpst.
%package doc
Summary: Documentation for the pst utilities in html format
BuildArch: noarch
%description doc
The libpst-doc package contains the html documentation for the pst
utilities. You do not need to install it if you just want to use
the libpst utilities.
%prep
%autosetup -p1
@@ -68,17 +77,15 @@ applications that want to make use of libpst.
--disable-static \
--enable-libpst-shared \
--disable-python
make %{?_smp_mflags}
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libpst4 -p /sbin/ldconfig
%postun -n libpst4 -p /sbin/ldconfig
%ldconfig_scriptlets -n libpst4
%files
%doc %{_datadir}/doc/%{name}-%{version}
%{_mandir}/man?/*
%{_bindir}/lspst
%{_bindir}/nick2ldif
@@ -86,6 +93,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/readpst
%files -n libpst4
%license COPYING
%{_libdir}/libpst.so.*
%files devel
@@ -93,4 +101,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_libdir}/pkgconfig/libpst.pc
%{_libdir}/libpst.so
%files doc
%doc %{_datadir}/doc/%{name}-%{version}
%changelog
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f9ddc4727af8e058e07bcedfa108e4555a9519405a47a1fce01e6420dc90c88
size 12895159
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42
size 12886768
-237
View File
@@ -1,237 +0,0 @@
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