File ldapcpplib.spec of Package ldapcpplib

# spec file for package ldapcpplib (Version 0.2.1)
# Copyright (c) 2010 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

# norootforbuild

Name:           ldapcpplib
BuildRequires:  doxygen gcc-c++ openldap2-devel
License:        BSD3c(or similar) ; OpenLDAP Public License 2.7
Group:          Development/Libraries/C and C++
Summary:        C++ API for LDAPv3
Version:        0.2.1
Release:        1
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

C++ API for LDAPv3.

Documentation is in /usr/share/doc/packages/ldapcpplib/srcdoc.

    Ralf Haferkamp <>

%package -n libldapcpp1
License:        BSD3c(or similar) ; OpenLDAP Public License 2.7
Summary:        C++ API for LDAPv3
AutoReqProv:    on
Provides:       ldapcpplib = %{version}-%{release}
Obsoletes:      ldapcpplib <= 0.0.5 
Group:          Development/Libraries/C and C++

%description -n libldapcpp1
This package provides a C++ library for accessing LDAP (Version 3)

    Ralf Haferkamp <>

%package -n libldapcpp-devel
License:        BSD3c(or similar) ; OpenLDAP Public License 2.7
Summary:        Files for Developing libldapcpp Applications
AutoReqProv:    on
Provides:       ldapcpplib-devel = %{version}
Obsoletes:      ldapcpplib-devel <= 0.0.5
Requires:       libldapcpp1 = %{version} openldap2-devel libstdc++-devel
Group:          Development/Libraries/C and C++

%description -n libldapcpp-devel
This package contains files needed for development with the LDAP C++

    Ralf Haferkamp <>

%setup -q

%{?suse_update_config:%{suse_update_config -l -f build}}
autoreconf -fiv
%configure 	--disable-static --with-pic \
		  	--enable-shared --with-libldap=%{_libdir} \
make CXXFLAGS="$RPM_OPT_FLAGS" %{?jobs:-j%jobs}
rm -rf srcdoc/CVS
doxygen doxygen.rc

install -d $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/html
install -m644 srcdoc/html/* $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/html/
install -m644 LICENSE $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/LICENSE
install -m644 README $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/README
install -m644 COPYRIGHT $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/COPYRIGHT
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -n libldapcpp1 -p /sbin/ldconfig

%postun -n libldapcpp1 -p /sbin/ldconfig

%files -n libldapcpp1

%files -n libldapcpp-devel
%dir %{_defaultdocdir}/%{name}