File libpst.spec of Package libpst

#
# spec file for package libpst (Version 0.6.44)
#
# Copyright (c) 2009 SUSE LINUX Products 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/
#

# norootforbuild


Name:           libpst
Version:        0.6.44
Release:        1
Summary:        A library for reading PST files
Group:          Productivity/Networking/Email/Utilities
License:        GPL v2 or later
Source0:        %{name}-%{version}.tar.bz2
Url:            http://www.gnome.org/projects/evolution/
BuildRequires:  gcc-c++
BuildRequires:  gd-devel
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libpst4 = %{version}

%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
License:        GPL v2 or later
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
License:        GPL v2 or later
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
# disable as-needed to fix build
export SUSE_ASNEEDED=0
%{configure} \
        --disable-static \
        --enable-libpst-shared \
        --disable-python
make

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

%post -n libpst4 -p /sbin/ldconfig

%postun -n libpst4 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%doc %{_datadir}/doc/%{name}-%{version} 
%doc %{_mandir}/man?/* 
%{_bindir}/lspst
%{_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