lifted from fedora. - Replace gcc-c++ generic c++_compiler BuildRequires. - Replace libgsf-devel with pkgconfig(libgsf-1) BuildRequires: Align with what configure checks for. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libpst?expand=0&rev=79
112 lines
3.3 KiB
RPMSpec
112 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package libpst
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
# Copyright (c) 2008 Bharath Acharya
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libpst
|
|
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-0dfabdc07bf3.patch -- Fix 'incompatible pointer types' warning on i686
|
|
Patch1: libpst-0dfabdc07bf3.patch
|
|
# PATCH-FIX-UPSTREAM 0003-gcc-c23-changes.patch -- Fix build with gcc 15
|
|
Patch2: 0003-gcc-c23-changes.patch
|
|
|
|
BuildRequires: c++_compiler
|
|
BuildRequires: gd-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(libgsf-1)
|
|
BuildRequires: pkgconfig(zlib)
|
|
Suggests: %{name}-doc
|
|
|
|
%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.
|
|
|
|
%package -n libpst4
|
|
Summary: A library for reading Personal Storage Table files
|
|
Group: System/Libraries
|
|
|
|
%description -n libpst4
|
|
libpst is a library that can decode the email messages stored in a
|
|
.pst (Personal Storage Table) file as created by Outlook.
|
|
|
|
%package devel
|
|
Summary: Development files for libpst, a .pst file reader
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libpst4 = %{version}
|
|
|
|
%description devel
|
|
libpst is a library that can decode the email messages stored in a
|
|
"PST" file as created by Outlook.
|
|
|
|
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
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static \
|
|
--enable-libpst-shared \
|
|
--disable-python
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%ldconfig_scriptlets -n libpst4
|
|
|
|
%files
|
|
%{_mandir}/man?/*
|
|
%{_bindir}/lspst
|
|
%{_bindir}/nick2ldif
|
|
%{_bindir}/pst2ldif
|
|
%{_bindir}/readpst
|
|
|
|
%files -n libpst4
|
|
%license COPYING
|
|
%{_libdir}/libpst.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/libpst-4/
|
|
%{_libdir}/pkgconfig/libpst.pc
|
|
%{_libdir}/libpst.so
|
|
|
|
%files doc
|
|
%doc %{_datadir}/doc/%{name}-%{version}
|
|
|
|
%changelog
|