File krb5-doc.spec of Package krb5

#
# spec file for package krb5-doc (Version 1.6.3)
#
# Copyright (c) 2008 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-doc
BuildRequires:  ghostscript-library latex2html texlive
Version:        1.6.3
Release:        132
%define srcRoot krb5-1.6.3
Summary:        MIT Kerberos5 Implementation--Documentation
License:        X11/MIT
Url:            http://web.mit.edu/kerberos/www/
Group:          Documentation/Other
Source:         krb5-1.6.3.tar.bz2
Source1:        README.Source
Source2:        Makefile.kadm5
Source3:        %{name}-%{version}-rpmlintrc
Patch0:         krb5-1.3.5-perlfix.dif
Patch1:         krb5-1.6.3-texi2dvi-fix.dif
Patch2:         krb5-1.6.3-post.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description 
Kerberos V5 is a trusted-third-party network authentication
system,which can improve your network's security by eliminating the
insecurepractice of clear text passwords. This package includes
extended documentation for MIT Kerberos.



Authors:
--------
    The MIT Kerberos Team
    Sam Hartman <hartmans@mit.edu>
    Ken Raeburn <raeburn@mit.edu>
    Tom Yu <tlyu@mit.edu>

%prep
%setup -n %{srcRoot}
%patch0
%patch1
%patch2
cp %{_sourcedir}/Makefile.kadm5 %{_builddir}/%{srcRoot}/doc/kadm5/Makefile

%build

%install
cd doc
mkdir -p html
make
make implementor.ps
make -C api
make -C implement
make -C kadm5
cd api
latex2html -dir ../html/library -mkdir library.tex
latex2html -dir ../html/libdes -mkdir libdes.tex
cd ../implement
latex2html -dir ../html/implement -mkdir implement.tex
cd ..
#mv krb5-admin html/
#mv krb5-install html/
#mv krb5-user html/
#mv krb425 html/
mv *.html html/
cd ..
find . -type f -name '*.ps' -exec gzip -9 {} \;
chmod 644 doc/man2ps
chmod 644 doc/krb5-protocol/draft-jaganathan-rc4-hmac-03.txt
# cleanup
rm -f  %{buildroot}/usr/share/man/man1/tmac.doc*
rm -f  /usr/share/man/man1/tmac.doc*
rm -rf /usr/lib/mit/share
rm -rf %{buildroot}/usr/lib/mit/share
rm -f doc/html/*/WARNINGS
rm -f doc/html/*/images.aux
rm -f doc/html/*/labels.pl
# check for duplicate files and replace them with a link
cd doc/html/api-funcspec
if cmp --quiet api-funcspec.html index.html ; then
  rm -f index.html
  ln -s api-funcspec.html index.html
fi
cd ../library
if cmp --quiet library.html index.html ; then
  rm -f index.html
  ln -s library.html index.html
fi
cd ../api-server-design
if cmp --quiet api-server-design.html index.html ; then
  rm -f index.html
  ln -s api-server-design.html index.html
fi
cd ../adb-unit-test
if cmp --quiet adb-unit-test.html index.html ; then
  rm -f index.html
  ln -s adb-unit-test.html index.html
fi
cd ../api-unit-test
if cmp --quiet api-unit-test.html index.html ; then
  rm -f index.html
  ln -s api-unit-test.html index.html
fi
cd ../libdes
if cmp --quiet libdes.html index.html ; then
  rm -f index.html
  ln -s libdes.html index.html
fi
cd ../implement
if cmp --quiet implement.html index.html ; then
  rm -f index.html
  ln -s implement.html index.html
fi
cd ../..

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc doc/*.ps.gz doc/api/*.ps.gz doc/implement/*.ps.gz doc/kadm5/*.ps.gz
%doc doc/krb5-protocol doc/kadmin 
%doc doc/html

%changelog
* Tue Dec 09 2008 ro@suse.de
- remove ix86 from ifarch statement obsoleting 32bit package
* Fri Jul 25 2008 mc@suse.de
- add patches from SVN post 1.6.3
  * some fixes in the man pages
* Wed Jun 18 2008 mc@suse.de
- reduce rpmlint warnings
* Tue Oct 23 2007 mc@suse.de
- update to krb5 version 1.6.3
  * fix CVE-2007-3999, CVE-2007-4743 svc_auth_gss.c buffer overflow
  * fix CVE-2007-4000 modify_policy vulnerability
  * Add PKINIT support
- remove patches which are upstream now
- enhance init scripts and xinetd profiles
* Thu Jul 12 2007 mc@suse.de
- update to version 1.6.2
- remove krb5-1.6.1-post.dif all fixes are included in this release
* Wed Jun 13 2007 sschober@suse.de
- removed executable permission from doc file
* Mon Apr 23 2007 mc@suse.de
- update to final 1.6.1 version
- replace te_ams with texlive in BuildRequires
* Wed Apr 18 2007 mc@suse.de
- build implementor.ps
* Mon Apr 16 2007 mc@suse.de
- update to version 1.6.1 Beta1
- remove obsolete patches
  (krb5-1.6-post.dif, krb5-1.6-patchlevel.dif)
* Mon Feb 19 2007 mc@suse.de
- add krb5-1.6-post.dif
* Mon Jan 22 2007 mc@suse.de
- update to version 1.6
  * Major changes in 1.6 include
  * Partial client implementation to handle server name referrals.
  * Pre-authentication plug-in framework, donated by Red Hat.
  * LDAP KDB plug-in, donated by Novell.
* Thu Aug 24 2006 mc@suse.de
- update to version 1.5.1
- remove obsolete patches which are now included upstream
  * krb5-1.4.3-MITKRB5-SA-2006-001-setuid-return-checks.dif
  * trunk-fix-uninitialized-vars.dif
* Mon Jul 03 2006 mc@suse.de
- update to version 1.5
  * KDB abstraction layer, donated by Novell.
  * plug-in architecture, allowing for extension modules to be
  loaded at run-time.
  * multi-mechanism GSS-API implementation ("mechglue"),
  donated by Sun Microsystems
  * Simple and Protected GSS-API negotiation mechanism ("SPNEGO")
  implementation, donated by Sun Microsystems
- remove obsolete patches and add some new
* Mon Mar 13 2006 mc@suse.de
- set BuildArchitectures to noarch
- set norootforbuild
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Nov 18 2005 mc@suse.de
- update to version 1.4.3
- fix tex for kadm5 documentation (krb5-1.4.3-kadm5-tex.dif)
* Wed Oct 12 2005 mc@suse.de
- build kadm5 documentation
- build documentation also as html
- include the text only documentation
* Tue Oct 11 2005 mc@suse.de
- update to version 1.4.2
- remove some obsolet patches
* Mon Jun 27 2005 mc@suse.de
- update to version 1.4.1
- remove obsolet patches
  - krb5-1.4-VUL-0-telnet.dif
* Thu Feb 10 2005 ro@suse.de
- added libpng to neededforbuild (for tetex)
* Fri Feb 04 2005 mc@suse.de
- remove spx.c from tarball because of legal risk
- add README.Source which tell the user about this
  action.
* Fri Jan 28 2005 mc@suse.de
- update to version 1.4
* Mon Jan 10 2005 mc@suse.de
- update to version 1.3.6
* Tue Dec 14 2004 mc@suse.de
- initial release
openSUSE Build Service is sponsored by