File novell-ldapext.spec of Package novell-ldapext

#
# spec file for package novell-ldapext (Version 0.0.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           novell-ldapext
BuildRequires:  krb5-devel openldap2-devel
Url:            http://developer.novell.com/ndk
License:        BSD 3-Clause
Group:          Productivity/Networking/LDAP/Clients
AutoReqProv:    on
Summary:        Novell LDAP Add-Ons
Version:        0.0.1
Release:        32
Source:         %{name}.tar.bz2
Patch:          %{name}.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains Novell LDAP extensions, interactive ssl, and SASL
support, which are not present in OpenLDAP package. These are specific
to Novell eDirectory.



%package      devel
License:        BSD 3-Clause
Summary:        Novell LDAP Add-Ons
Requires:       %{name} = %{version}, openldap2-devel
AutoReqProv:    on
Group:          Development/Languages/C and C++

%description devel
This devel package contains the link files and header files for Novell
LDAP extensions, interactive ssl, SASL support. These are specific to
Novell eDirectory.



%prep
%setup -q -n novell
%patch0 -p1

%build
#%{?suse_update_config:%{suse_update_config -f build}}
cd extensions/src
make CFLAGS="-c -fPIC $RPM_OPT_FLAGS -DLDAP_DEPRECATED"
cd ../../ssl/src
make CFLAGS="-c -fPIC $RPM_OPT_FLAGS -DLDAP_DEPRECATED"
cd ../../sasl/src
make CFLAGS="-c -fPIC $RPM_OPT_FLAGS -DLDAP_DEPRECATED"

%install
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
mkdir -p $RPM_BUILD_ROOT/usr/include
install -m 755 extensions/src/libldapext.so.0.0 $RPM_BUILD_ROOT/%{_libdir}
install -m 755 ssl/src/libldapssl.so.0.0 $RPM_BUILD_ROOT/%{_libdir}
install -m 755 sasl/src/libldapsdk.so.0.0 $RPM_BUILD_ROOT/%{_libdir}
install -m 644 extensions/inc/ldapx.h $RPM_BUILD_ROOT/usr/include/
install -m 644 ssl/include/ldap_ssl.h $RPM_BUILD_ROOT/usr/include/
install -m 644 sasl/include/ldap_sasl.h $RPM_BUILD_ROOT/usr/include/
ln -fs ../../%{_libdir}/libldapext.so.0.0 $RPM_BUILD_ROOT/%{_libdir}/libldapext.so
ln -fs ../../%{_libdir}/libldapext.so.0.0 $RPM_BUILD_ROOT/%{_libdir}/libldapext.so.0
ln -fs ../../%{_libdir}/libldapssl.so.0.0 $RPM_BUILD_ROOT/%{_libdir}/libldapssl.so
ln -fs ../../%{_libdir}/libldapssl.so.0.0 $RPM_BUILD_ROOT/%{_libdir}/libldapssl.so.0
ln -fs ../../%{_libdir}/libldapsdk.so.0.0 $RPM_BUILD_ROOT/%{_libdir}/libldapsdk.so
ln -fs ../../%{_libdir}/libldapsdk.so.0.0 $RPM_BUILD_ROOT/%{_libdir}/libldapsdk.so.0

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig 

%files
%defattr(-,root,root)
%{_libdir}/libldapext.so.0.0
%{_libdir}/libldapssl.so.0.0
%{_libdir}/libldapsdk.so.0.0
%{_libdir}/libldapext.so.0
%{_libdir}/libldapssl.so.0
%{_libdir}/libldapsdk.so.0

%files devel
%defattr(-,root,root)
%{_libdir}/libldapext.so
%{_libdir}/libldapssl.so
%{_libdir}/libldapsdk.so
/usr/include/*.h

%changelog
* Wed Aug 20 2008 ro@suse.de
- added baselibs.conf file
* Tue May 13 2008 cgardner@novell.com
- Package updates for CODE11; no code changes.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 14 2005 ro@suse.de
- added -DLDAP_DEPRECATED to CFLAGS
- remove empty pre/post scripts
- sort specfile sections
* Fri Jun 10 2005 meissner@suse.de
- Use RPM_OPT_FLAGS.
- fixed 4 bugs (found = 1) -> (found == 1), -DFOO-DBLA
- added missing headers for prototypes.
* Mon Nov 22 2004 nkamal@suse.de
- Removed few files and making use of openssl
* Thu Nov 18 2004 kukuk@suse.de
- Move all *.so.0 links from -devel to main package
* Thu Nov 18 2004 nkamal@suse.de
- Modified all the files with proper Copyright information
* Thu Nov 04 2004 nkamal@suse.de
- Initial version
openSUSE Build Service is sponsored by