File mingw64-libpst.spec of Package mingw64-libpst
#
# spec file for package mingw64-libpst
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: mingw64-libpst
Version: 0.6.63
Release: 0
Summary: Library and utilities to convert Outlook .pst files to other formats
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Url: http://www.five-ten-sg.com/%{name}/
Source: libpst-%{version}.tar.gz
Source1000: %{name}-rpmlintrc
Patch0: libpst-0.6.63-mingw.patch
Patch1: libpst-0.6.63-fix-gcc10.patch
Patch2: libpst-0.6.63-fix-gcc11.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libgnurx-devel
BuildRequires: mingw64-libgsf-devel
BuildRequires: mingw64-win_iconv-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
This package contains libpst, the shared library used by the pst
utilities.
%package -n mingw64-libpst4
Summary: Library and utilities to convert Outlook .pst files to other formats
Group: System/Libraries
Obsoletes: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
%description -n mingw64-libpst4
This package contains libpst, the shared library used by the pst
utilities.
%package tools
Summary: Utilities to convert Outlook .pst files to other formats
Group: Productivity/Networking/Email/Utilities
%description tools
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 devel
Summary: Import libraries and header files for libpst application
Group: Development/Libraries/C and C++
%description devel
The libpst-devel package contains the import libraries and header files
you'll need to develop applications using the libpst shared library.
You do not need to install it if you just want to use the libpst
utilities.
%_mingw64_debug_package
%prep
%autosetup -p1 -n libpst-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--enable-libpst-shared --disable-static-tools \
--disable-python
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libpst4
%defattr(644,root,root,755)
%{_mingw64_bindir}/libpst-4.dll
%files tools
%defattr(755,root,root,755)
%{_mingw64_bindir}/nick2ldif.exe
%{_mingw64_bindir}/pst2ldif.exe
%{_mingw64_bindir}/readpst.exe
%{_mingw64_bindir}/lspst.exe
%{_mingw64_mandir}/man1/*.1*
%files devel
%defattr(644,root,root,755)
%{_mingw64_libdir}/libpst.dll.a
%{_mingw64_libdir}/pkgconfig/libpst.pc
%{_mingw64_includedir}/libpst-4
%{_mingw64_docdir}/libpst-%{version}
%{_mingw64_mandir}/man5/outlook.pst.5*
%changelog