File libnscd.spec of Package libnscd

#
# spec file for package libnscd (Version 2.0.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libnscd
License:        LGPL v2.1 only
Group:          System/Libraries
AutoReqProv:    on
Version:        2.0.2
Release:        72
Summary:        Library to Allow Applications to Communicate with nscd
Source:         libnscd-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This library provides an interface for applications to NSCD (Name
Service Cache Daemon) and allowsthose applications, to flushthe cache
for special services, if they have the necessary permissions.



%package devel
License:        LGPL v2.1 or later
Summary:        Include Files and Libraries for Development.
Group:          Development/Libraries/C and C++
Requires:       libnscd = %{version}
AutoReqProv:    on

%description devel
This package contains all necessary include files and libraries needed
to develop applications that needs to communicate with a running nscd.



%prep
%setup

%build
%configure
make
make check

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/libnscd.la
mkdir -p $RPM_BUILD_ROOT/%{_lib}
mv -v $RPM_BUILD_ROOT%{_libdir}/libnscd.so.* $RPM_BUILD_ROOT/%{_lib}
ln -sf ../../%{_lib}/libnscd.so.1 $RPM_BUILD_ROOT%{_libdir}/libnscd.so

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING.LIB README NEWS
/%{_lib}/libnscd.so.*

%files devel
%defattr(-,root,root)
%{_prefix}/include/*.h
%{_libdir}/libnscd.a
%{_libdir}/libnscd.so
%{_mandir}/man3/nscd_flush_cache.3*

%changelog
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Wed Nov 29 2006 kukuk@suse.de
- Update to version 2.0.2 (fix memory leak)
* Thu Oct 05 2006 kukuk@suse.de
- Update to version 2.0.1 (Makefile fixes)
* Sat Jun 03 2006 kukuk@suse.de
- Update to version 2.0 (manual page, new nscd features)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Feb 22 2005 kukuk@suse.de
- libtool is crap
* Tue Feb 22 2005 kukuk@suse.de
- Update to libnscd 1.1 (fix interface to nscd) [#65748]
* Tue Sep 14 2004 kukuk@suse.de
- Initial release
openSUSE Build Service is sponsored by