181c876
Summary:   NSS library for MySQL
181c876
Name:      libnss-mysql
181c876
Version:   1.5
181c876
Release:   6%{?dist}
181c876
Source0:   http://prdownloads.sourceforge.net/libnss-mysql/libnss-mysql-%{version}.tar.gz
181c876
Patch1:    libnss-mysql-multiarch.patch
181c876
URL:       http://libnss-mysql.sourceforge.net
181c876
License:   GPLv2+
181c876
Group:     System Environment/Base
181c876
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
181c876
181c876
BuildRequires: mysql-devel, libtool, autoconf, automake
181c876
181c876
%description
181c876
Store your UNIX user accounts in MySQL. "libnss-mysql" enables the following:
181c876
181c876
* System-wide authentication and name service using a MySQL database.
181c876
  Applications do not need to be MySQL-aware or modified in any way.
181c876
181c876
* Storing authentication information in a database instead of text files.
181c876
181c876
* Creation of a single authentication database for multiple servers.
181c876
  This is often referred to as the "Single Sign-on" problem.
181c876
181c876
* Writing data-modification routines (IE self-management web interface).
181c876
181c876
libnss-mysql is similar to NIS or LDAP. It provides the same centralized
181c876
authentication service through a database. What does this mean? Username,
181c876
uid, gid, password, etc comes from a MySQL database instead of
181c876
/etc/password, /etc/shadow, and /etc/group. A user configured in MySQL will
181c876
look and behave just like a user configured in /etc/passwd. Your
181c876
applications such as ls, finger, sendmail, qmail, exim, postfix, proftpd,
181c876
X, sshd, etc. will all 'see' these users!
181c876
181c876
%prep
181c876
%setup -q -a 0
181c876
%patch1 -p1
181c876
181c876
%build
181c876
autoreconf
181c876
%configure
181c876
make %{?_smp_mflags}
181c876
# remove non linux samples
181c876
rm -rf sample/freebsd sample/solaris
181c876
181c876
%install
181c876
rm -rf $RPM_BUILD_ROOT
181c876
mkdir -p $RPM_BUILD_ROOT/{etc,lib}
181c876
make DESTDIR=$RPM_BUILD_ROOT install
181c876
181c876
%clean
181c876
rm -rf $RPM_BUILD_ROOT
181c876
181c876
%post -p /sbin/ldconfig
181c876
%postun -p /sbin/ldconfig
181c876
181c876
%files
181c876
%defattr(-,root,root)
181c876
%exclude %{_libdir}/libnss_mysql.la
181c876
%exclude %{_libdir}/*.so
181c876
%{_libdir}/*.so.*
181c876
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libnss-mysql.cfg
181c876
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/libnss-mysql-root.cfg
181c876
%doc README ChangeLog AUTHORS THANKS NEWS COPYING FAQ DEBUGGING UPGRADING TODO
181c876
%doc sample
181c876
181c876
%changelog
181c876
* Tue Nov 27 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-6
181c876
- updated buildroot according to packaging guidelines
181c876
- removed comment before ldconfig
181c876
- removed provides libnss_mysql (compatibility with my old packages)
181c876
- autoreconf used
181c876
- description bullets updated
181c876
181c876
* Sun Nov 18 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-5
181c876
- added a patch to build on x86_64 and may be other
181c876
- regenerated autoconf to use added patch
181c876
- provides cleanup
181c876
181c876
* Sun Nov 18 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-4
181c876
- buildroot changed
181c876
181c876
* Sat Nov 17 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-3
181c876
- removed devel files
181c876
- removed non-linux documentation
181c876
- added buildrequires
181c876
181c876
* Fri Aug 31 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.5-2
181c876
- Fedora updates
181c876
181c876
* Sat Sep 3 2005 Ben Goodwin <cinergi@users.sourceforge.net> - 1.5-1
181c876
- Update to 1.4
181c876
181c876
* Sat Apr 10 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.4-1
181c876
- Update to 1.4
181c876
181c876
* Sat Apr 10 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.3-1
181c876
- Update to 1.3
181c876
- Remove manual static re-link (1.3 relieves the need for this)
181c876
- doc += TODO
181c876
181c876
* Sun Mar 28 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.2-1
181c876
- Update to 1.2
181c876
181c876
* Tue Mar 02 2004 Ben Goodwin <cinergi@users.sourceforge.net> - 1.1-1
181c876
- s#exports.linux#.libs/libnss_mysql.ver#
181c876
- Oops, libs/*.o not *.lo
181c876
181c876
* Sat Jul 12 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 1.0-2
181c876
- Link with version script
181c876
181c876
* Sat Jul 12 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 1.0-1
181c876
- Update to 1.0
181c876
- Use *.lo instead of individual .lo names in re-link
181c876
- Removed -Bgroup and --allow-shlib-undefined linker options
181c876
181c876
* Thu Jun 19 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 0.9-2
181c876
- Added ugly hack to relink some libraries static.  It will probably
181c876
  break rpm builds on some hosts ...
181c876
181c876
* Wed Jun 18 2003 Ben Goodwin <cinergi@users.sourceforge.net> - 0.9-1
181c876
- Update to 0.9
181c876
181c876
* Sun Dec 29 2002 Ben Goodwin <cinergi@users.sourceforge.net> - 0.8-1
181c876
- Initial version