File krb5-plugin-preauth-pkinit-nss.spec of Package krb5-plugin-preauth-pkinit-nss

#
# spec file for package krb5-plugin-preauth-pkinit-nss (Version 0.7.8)
#
# 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/
#

# norootforbuild


Name:           krb5-plugin-preauth-pkinit-nss
Version:        0.7.8
Release:        10
BuildRequires:  keyutils-devel krb5-devel >= 1.6.1 mozilla-nss-devel >= 3.11.2 pkgconfig
Summary:        MIT Kerberos5 Implementation--PKINIT preauth Plugin
License:        LGPLv2.1+
Group:          Productivity/Networking/Security
Provides:       pkinit-nss
Obsoletes:      pkinit-nss
Conflicts:      krb5-plugin-preauth-pkinit
Source:         pkinit-nss-%{version}-1.tar.bz2
Patch0:         pkinit-nss-0.6.1-match-default-realms.patch
Patch1:         pkinit-nss-0.7.2-1-documentation.dif
Patch2:         support-1-8.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The pkinit-nss package implements the PKINIT standard for MIT Kerberos.
It does this, using the Mozilla NSS library.



Authors:
--------
    Nalin Dahyabhai <nalin@redhat.com>

%prep
%setup -q -n pkinit-nss-%{version}-1
%patch0
%patch1
%patch2 -p1

%build
#autoreconf -i -f
autoconf
%configure --disable-static --enable-gcc-warnings \
           --with-default-server-nss-dbdir=/var/lib/kerberos/krb5kdc/ \
           --with-default-client-nss-dbdir=/etc/ssl/nssdb
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/preauth/*.{a,la}
# installing docs
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples
cp doc/openssl/make-certs.sh $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/
cp ChangeLog doc/README doc/STANDARDS doc/TODO doc/CONFIGURATION $RPM_BUILD_ROOT/%{_docdir}/%{name}/
cp backport/*.patch $RPM_BUILD_ROOT/%{_docdir}/%{name}/

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir %{_docdir}/%{name}/examples
%{_docdir}/%name
%{_bindir}/pkinit-show-cert-guid
%{_bindir}/pkinit-get-san
%{_libdir}/krb5

%changelog
openSUSE Build Service is sponsored by