File libpst.spec of Package libpst

# spec file for package libpst (version 0.6.41)
#
# Copyright (c) 2008 Bharath Acharya
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to abharath@novell.com
#
# norootforbuild

BuildRequires: gcc-c++ gd-devel ImageMagick

%if %{defined suse_version}
BuildRequires: pkg-config
%endif

%if %{defined fedora_version}  
BuildRequires: redhat-rpm-config  
%endif

Name:         libpst
Version:      0.6.41
Release:      1
Summary:      Experimental builds for libpst
Group:        Development/Libraries/C and C++
License:      GPL v2 or later
Source0:      %{name}4-%{version}.tar.bz2
URL:          http://www.five-ten-sg.com/%{name}/
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Requires:       libpst4 = %{version}-%{release}
Autoreqprov:  on 

%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.

Authors:
--------
	Dave Smith <dave.s@earthcorp.com> (Original Author)
	Dave Smith <davesmith@users.sourceforge.net> 
	Carl Byington  <carl@five-ten-sg.com> (Current maintainer)
	Joseph Nahmias <joe@nahmias.net>
	Arne Ahrend <aahrend@web.de>
	Nigel Horne <njh@bandsman.co.uk>
	Chris Halls <halls@debian.org>
	Stevens Miller <smiller@novadatalabs.com>
	Brad Hards <bradh@frogmouth.net>
	Alexander Grau <alexandergrau@gmx.de>
	Antonio Palama <palama@inwind.it>
	Sean Loaring <sloaring@tec-man.com>
	James Woodcock
	Joachim Metz <joachim.metz@gmail.com>
	Robert Simpson <rsimpson@idiscoverglobal.com>
	Justin Greer <jgreer@nextpoint.com>


%package -n libpst4
License:        GPL v2 or later
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++

%description -n libpst4
This package contains all necessary include files and libraries needed to 
develop applications that require these.

%package devel
License:        GPL v2 or later
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
Requires:       libpst4 = %{version}-%{release}

%description devel
This package contains all necessary include files and libraries needed to 
develop applications that require these.

%package devel-doc
Summary:            Documentation for libpst.so for libpst application development
Group:              Documentation
Requires:           %{name}-doc = %{version}-%{release}

%description devel-doc
The libpst-devel-doc package contains the doxygen generated
documentation for the libpst.so shared library.

%prep
%setup -q -n %{name}4-%{version}

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

%install
make DESTDIR=$RPM_BUILD_ROOT install htmldir=%{_defaultdocdir}/%{name}

%post -n libpst4 -p /sbin/ldconfig

%postun -n libpst4 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

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

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

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

%files devel-doc
%defattr(-,root,root,-)
%dir %{_datadir}/doc/%{name}-%{version}/
%dir %{_datadir}/doc/%{name}-%{version}/devel
%{_datadir}/doc/%{name}-%{version}/devel/

%changelog


openSUSE Build Service is sponsored by