2006-12-19 00:16:55 +01:00
|
|
|
#
|
|
|
|
# spec file for package libnscd (Version 2.0.2)
|
|
|
|
#
|
2009-01-08 18:39:36 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:55 +01:00
|
|
|
#
|
2009-01-08 18:39:36 +01:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:16:55 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:31:27 +02:00
|
|
|
|
2006-12-19 00:16:55 +01:00
|
|
|
Name: libnscd
|
2009-12-26 12:18:35 +01:00
|
|
|
License: LGPLv2.1
|
2006-12-19 00:16:55 +01:00
|
|
|
Group: System/Libraries
|
2008-04-10 14:31:27 +02:00
|
|
|
AutoReqProv: on
|
2009-01-08 18:39:36 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libnscd-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:16:55 +01:00
|
|
|
Version: 2.0.2
|
2009-12-26 12:18:35 +01:00
|
|
|
Release: 109
|
2006-12-19 00:16:55 +01:00
|
|
|
Summary: Library to Allow Applications to Communicate with nscd
|
|
|
|
Source: libnscd-%{version}.tar.bz2
|
2009-12-26 12:18:35 +01:00
|
|
|
Source2: baselibs.conf
|
2006-12-19 00:16:55 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides an interface for applications to NSCD (Name
|
2008-04-10 14:31:27 +02:00
|
|
|
Service Cache Daemon) and allowsthose applications, to flushthe cache
|
|
|
|
for special services, if they have the necessary permissions.
|
2006-12-19 00:16:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2009-12-26 12:18:35 +01:00
|
|
|
License: LGPLv2.1+
|
2006-12-19 00:16:55 +01:00
|
|
|
Summary: Include Files and Libraries for Development.
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libnscd = %{version}
|
2008-04-10 14:31:27 +02:00
|
|
|
AutoReqProv: on
|
2009-01-08 18:39:36 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libnscd-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:16:55 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that needs to communicate with a running nscd.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-05-15 21:34:27 +02:00
|
|
|
%setup -q
|
2006-12-19 00:16:55 +01:00
|
|
|
|
|
|
|
%build
|
2009-05-15 21:34:27 +02:00
|
|
|
%configure --libdir=/%{_lib} --disable-static --with-pic
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%check
|
2006-12-19 00:16:55 +01:00
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2009-05-15 21:34:27 +02:00
|
|
|
%{__mkdir_p} %{buildroot}%{_libdir}
|
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/%{name}.{so,la}
|
2006-12-19 00:16:55 +01:00
|
|
|
|
|
|
|
%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)
|
2009-05-15 21:34:27 +02:00
|
|
|
%{_includedir}/*.h
|
2006-12-19 00:16:55 +01:00
|
|
|
%{_libdir}/libnscd.so
|
|
|
|
%{_mandir}/man3/nscd_flush_cache.3*
|
|
|
|
|
2008-04-10 14:31:27 +02:00
|
|
|
%changelog
|