osc copypac from project:openSUSE:Factory package:krb5 revision:87, using keep-link
OBS-URL: https://build.opensuse.org/package/show/network/krb5?expand=0&rev=84
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
%define build_mini 1
|
||||
%define srcRoot krb5-1.11
|
||||
%define srcRoot krb5-1.10.2
|
||||
%define vendorFiles %{_builddir}/%{srcRoot}/vendor-files/
|
||||
%define krb5docdir %{_defaultdocdir}/krb5
|
||||
|
||||
@@ -25,13 +25,12 @@ Name: krb5-mini
|
||||
Url: http://web.mit.edu/kerberos/www/
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: bison
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: keyutils
|
||||
BuildRequires: keyutils-devel
|
||||
BuildRequires: libcom_err-devel
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: ncurses-devel
|
||||
Version: 1.11
|
||||
Version: 1.10.2
|
||||
Release: 0
|
||||
Summary: MIT Kerberos5 Implementation--Libraries
|
||||
License: MIT
|
||||
@@ -40,10 +39,6 @@ Group: Productivity/Networking/Security
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: openldap2-devel
|
||||
BuildRequires: pam-devel
|
||||
BuildRequires: python-Cheetah
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-libxml2
|
||||
BuildRequires: python-lxml
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
%endif
|
||||
@@ -57,16 +52,20 @@ Source: krb5-%{version}.tar.bz2
|
||||
Source1: vendor-files.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
Source5: krb5-rpmlintrc
|
||||
Patch1: krb5-1.8-pam.patch
|
||||
Patch2: krb5-1.9-manpaths.dif
|
||||
Patch3: krb5-1.10-buildconf.patch
|
||||
Patch4: krb5-1.6.3-gssapi_improve_errormessages.dif
|
||||
Patch5: krb5-1.10-kpasswd_tcp.patch
|
||||
Patch6: krb5-1.6.3-ktutil-manpage.dif
|
||||
Patch7: krb5-1.7-doublelog.patch
|
||||
Patch8: krb5-1.8-api.patch
|
||||
Patch9: krb5-1.9-kprop-mktemp.patch
|
||||
Patch10: krb5-1.9-ksu-path.patch
|
||||
Source10: krb5-1.8-manpaths.txt
|
||||
Patch1: krb5-1.10-buildconf.patch
|
||||
Patch3: krb5-1.9-manpaths.dif
|
||||
Patch5: krb5-1.6.3-gssapi_improve_errormessages.dif
|
||||
Patch6: krb5-1.10-kpasswd_tcp.patch
|
||||
Patch7: krb5-1.6.3-ktutil-manpage.dif
|
||||
Patch10: krb5-1.7-doublelog.patch
|
||||
Patch12: krb5-1.8-api.patch
|
||||
Patch13: krb5-1.8-pam.patch
|
||||
Patch18: krb5-1.9-kprop-mktemp.patch
|
||||
Patch19: krb5-1.9-ksu-path.patch
|
||||
Patch20: krb5-1.10-gcc47.patch
|
||||
Patch21: krb5-1.10-selinux-label.patch
|
||||
Patch22: krb5-1.10-spin-loop.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: mktemp, grep, /bin/touch, coreutils
|
||||
PreReq: %insserv_prereq %fillup_prereq
|
||||
@@ -123,16 +122,6 @@ Kerberos V5 is a trusted-third-party network authentication system,
|
||||
which can improve your network's security by eliminating the insecure
|
||||
practice of cleartext passwords. This package includes a PKINIT plugin.
|
||||
|
||||
%package doc
|
||||
Summary: MIT Kerberos5 Implementation--Documentation
|
||||
Group: Documentation/Other
|
||||
|
||||
%description doc
|
||||
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.
|
||||
|
||||
%endif #! build_mini
|
||||
|
||||
%package devel
|
||||
@@ -159,16 +148,25 @@ Include Files for Development
|
||||
%prep
|
||||
%setup -q -n %{srcRoot}
|
||||
%setup -a 1 -T -D -n %{srcRoot}
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch13 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch21 -p1
|
||||
%patch1 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
%patch12 -p1
|
||||
%patch18 -p1
|
||||
%patch19 -p1
|
||||
%patch20
|
||||
%patch22 -p1
|
||||
# Rename the man pages so that they'll get generated correctly.
|
||||
pushd src
|
||||
cat %{SOURCE10} | while read manpage ; do
|
||||
mv "$manpage" "$manpage".in
|
||||
done
|
||||
popd
|
||||
|
||||
%build
|
||||
# needs to be re-generated
|
||||
@@ -194,19 +192,14 @@ CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fno-strict-aliasing -D_GNU_SOURCE -fPI
|
||||
--with-ldap \
|
||||
--with-pam \
|
||||
--enable-pkinit \
|
||||
--with-selinux \
|
||||
%else
|
||||
--disable-pkinit \
|
||||
--without-pam \
|
||||
%endif
|
||||
--with-system-et \
|
||||
--with-system-ss
|
||||
make %{?jobs:-j%jobs}
|
||||
%if ! 0%{?build_mini}
|
||||
cd doc
|
||||
make %{?jobs:-j%jobs} substhtml
|
||||
cp -a html_subst ../../html
|
||||
cd ..
|
||||
%endif
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
cd src
|
||||
@@ -282,9 +275,8 @@ install -m 644 %{_builddir}/%{srcRoot}/src/plugins/kdb/ldap/libkdb_ldap/kerberos
|
||||
# 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/examples
|
||||
rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
rm -rf /usr/lib/mit/share
|
||||
rm -rf %{buildroot}/usr/lib/mit/share
|
||||
|
||||
#####################################################
|
||||
# krb5(-mini) pre/post/postun
|
||||
@@ -292,8 +284,7 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%if ! %{build_mini}
|
||||
|
||||
@@ -335,8 +326,7 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
|
||||
%post plugin-kdb-ldap -p /sbin/ldconfig
|
||||
|
||||
%postun plugin-kdb-ldap
|
||||
/sbin/ldconfig
|
||||
%postun plugin-kdb-ldap -p /sbin/ldconfig
|
||||
|
||||
%endif
|
||||
|
||||
@@ -349,7 +339,6 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%dir /usr/lib/mit
|
||||
%dir /usr/lib/mit/bin
|
||||
%dir /usr/lib/mit/sbin
|
||||
%dir /usr/lib/mit/share
|
||||
%dir %{_datadir}/aclocal
|
||||
%{_libdir}/libgssrpc.so
|
||||
%{_libdir}/libk5crypto.so
|
||||
@@ -361,11 +350,12 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%{_libdir}/libkrb5.so
|
||||
%{_libdir}/libkrb5support.so
|
||||
%{_libdir}/libverto.so
|
||||
%{_libdir}/libverto-k5ev.so
|
||||
%{_includedir}/*
|
||||
/usr/lib/mit/bin/krb5-config
|
||||
/usr/lib/mit/sbin/krb5-send-pr
|
||||
/usr/lib/mit/share/gnats
|
||||
%{_mandir}/man1/krb5-send-pr.1*
|
||||
%{_mandir}/man1/krb5-config.1*
|
||||
%{_datadir}/aclocal/ac_check_krb5.m4
|
||||
|
||||
%if %{build_mini}
|
||||
@@ -404,6 +394,7 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%{_libdir}/libkrb5.so.*
|
||||
%{_libdir}/libkrb5support.so.*
|
||||
%{_libdir}/libverto.so.*
|
||||
%{_libdir}/libverto-k5ev.so.*
|
||||
%{_libdir}/krb5/plugins/kdb/*
|
||||
#/usr/lib/mit/sbin/*
|
||||
/usr/lib/mit/sbin/kadmin.local
|
||||
@@ -440,6 +431,7 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%{_mandir}/man1/kdestroy.1*
|
||||
%{_mandir}/man1/kpasswd.1*
|
||||
%{_mandir}/man1/klist.1*
|
||||
%{_mandir}/man1/kerberos.1*
|
||||
%{_mandir}/man1/ksu.1*
|
||||
%{_mandir}/man1/sclient.1*
|
||||
%{_mandir}/man1/kadmin.1*
|
||||
@@ -475,6 +467,7 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%{_libdir}/libkrb5.so.*
|
||||
%{_libdir}/libkrb5support.so.*
|
||||
%{_libdir}/libverto.so.*
|
||||
%{_libdir}/libverto-k5ev.so.*
|
||||
|
||||
%files server
|
||||
%defattr(-,root,root)
|
||||
@@ -514,7 +507,6 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
/usr/lib/mit/sbin/uuserver
|
||||
%{_libdir}/krb5/plugins/kdb/db2.so
|
||||
%{_mandir}/man5/kdc.conf.5*
|
||||
%{_mandir}/man5/kadm5.acl.5*
|
||||
%{_mandir}/man8/kadmind.8*
|
||||
%{_mandir}/man8/kadmin.local.8*
|
||||
%{_mandir}/man8/kpropd.8*
|
||||
@@ -550,6 +542,7 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%{_mandir}/man1/kdestroy.1*
|
||||
%{_mandir}/man1/kpasswd.1*
|
||||
%{_mandir}/man1/klist.1*
|
||||
%{_mandir}/man1/kerberos.1*
|
||||
%{_mandir}/man1/kadmin.1*
|
||||
%{_mandir}/man1/ktutil.1*
|
||||
%{_mandir}/man1/k5srvutil.1*
|
||||
@@ -582,11 +575,6 @@ rm -rf %{buildroot}/usr/lib/mit/share/locale
|
||||
%dir %{_libdir}/krb5/plugins
|
||||
%dir %{_libdir}/krb5/plugins/preauth
|
||||
%{_libdir}/krb5/plugins/preauth/pkinit.so
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc html doc/CHANGES doc/README
|
||||
|
||||
%endif #build_mini
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user