File libnss-mysql2.spec of Package libnss-mysql2

#
# spec file for package libnss_mysql2 (Version 1.6)
#
# 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 http://bugs.opensuse.org/
#


Name:           libnss_mysql2
Version:        1.6
Release:        0
License:        GPL
Summary:        MySQL Name Service Switch Module
Url:            http://libnss-mysql.sourceforge.net
Group:          System/Libraries
Source:         libnss-mysql-%{version}.tar.bz2
BuildRequires:  automake
BuildRequires:  libmysqlclient-devel
BuildRequires:  libtool
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
NSS MySQL is a NSS library for MySQL. It features full groups, passwd
and shadow support.


%prep
%setup -q -n libnss-mysql-%{version}

%build
./setup.sh
export MYSQL_LIB_DIR=%{_libdir}
%configure
%{__make} %{?jobs:-j %jobs}

%install
%makeinstall
find %{buildroot}%{_libdir} -name \*.la -delete


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%files
%defattr(-,root,root)
%attr(0755,root,root) %{_libdir}/*.so*
%attr(0644,root,root) %config(noreplace) /etc/libnss-mysql.cfg
%attr(0600,root,root) %config(noreplace) /etc/libnss-mysql-root.cfg
%doc README ChangeLog AUTHORS THANKS NEWS COPYING FAQ DEBUGGING UPGRADING TODO
%doc sample