File libpst.spec of Package libpst

#
# spec file for package libpst
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/
#


Name:           libpst
Version:        0.6.67
Release:        0
Summary:        A library for reading PST files
License:        GPL-2.0+
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
BuildRequires:  gcc-c++
BuildRequires:  gd-devel
BuildRequires:  libgsf-devel
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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:        Shared library for libpst
Group:          System/Libraries

%description -n libpst4
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:        A library for reading PST files (devel package)
Group:          Development/Libraries/C and C++
Requires:       libpst4 = %{version}

%description devel
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 -q

%build
%{configure} \
        --disable-static \
        --enable-libpst-shared \
        --disable-python
make

%install
%make_install
find %{buildroot} -type f -name '*.la' -delete

%post -n libpst4 -p /sbin/ldconfig

%postun -n libpst4 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc %{_datadir}/doc/%{name}-%{version}
%doc %{_mandir}/man?/*
%{_bindir}/lspst
%{_bindir}/nick2ldif
%{_bindir}/pst2ldif
%{_bindir}/readpst

%files -n libpst4
%defattr(-,root,root)
%{_libdir}/libpst.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/libpst-4/
%{_libdir}/pkgconfig/libpst.pc
%{_libdir}/libpst.so

%changelog
openSUSE Build Service is sponsored by