Browse Source

krb5: fix compat32-devel missing.

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3063 ec354946-7b23-47d6-9f5a-488ba84defc7
iwamoto 13 years ago
parent
commit
87c697db39
1 changed files with 43 additions and 1 deletions
  1. 43 1
      k/krb5/krb5-vl.spec

+ 43 - 1
k/krb5/krb5-vl.spec

@@ -4,10 +4,13 @@
 %global WITH_OPENSSL 1
 %global WITH_DIRSRV 1
 
+# This'll be pulled out at some point.
+%define build_static 0
+
 Summary: The Kerberos network authentication system
 Name: krb5
 Version: 1.8.2
-Release: 2%{_dist_release}
+Release: 3%{_dist_release}
 
 # Maybe we should explode from the now-available-to-everybody tarball instead?
 # http://web.mit.edu/kerberos/dist/krb5/1.8/krb5-1.8.2-signed.tar
@@ -169,6 +172,20 @@ to obtain initial credentials from a KDC using a private key and a
 certificate.
 
 # compat32
+%package -n compat32-%{name}-devel
+Summary: Development files needed to compile Kerberos 5 programs.
+Summary(ja): Kerberos 5 プログラムをコンパイルするために必要な開発ファイル
+Group: Development/Libraries
+Requires: compat32-%{name}-libs = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
+Requires: compat32-e2fsprogs-devel
+
+%description -n compat32-%{name}-devel
+Kerberos is a network authentication system. The krb5-devel package
+contains the header files and libraries needed for compiling Kerberos
+5 programs. If you want to develop Kerberos-aware programs, you need
+to install this package.
+
 %package -n compat32-%{name}-libs
 Summary: The shared libraries used by Kerberos 5.
 Summary(ja): Kerberos 5 の共有ライブラリ
@@ -300,6 +317,9 @@ CPPFLAGS="`echo $DEFINES $INCLUDES`"
 	SS_LIB="-lss -lncurses" \
 %endif
 	--enable-shared \
+%if %{build_static}
+	--enable-static \
+%endif
 	--localstatedir=%{_var}/kerberos \
 	--disable-rpath \
 	--with-system-et \
@@ -655,6 +675,9 @@ exit 0
 %{_libdir}/libkdb5.so
 %{_libdir}/libkrb5.so
 %{_libdir}/libkrb5support.so
+%if %{build_static}
+%{_libdir}/*.a
+%endif
 
 %{_bindir}/krb5-config
 %{_bindir}/sclient
@@ -700,9 +723,28 @@ exit 0
 %{_libdir}/krb5/plugins/preauth/pkinit.so
 %endif
 
+%files -n compat32-%{name}-devel
+%defattr(-,root,root)
+%{_libdir}/libgssapi_krb5.so
+%{_libdir}/libgssrpc.so
+%{_libdir}/libk5crypto.so
+%{_libdir}/libkadm5clnt.so
+%{_libdir}/libkadm5clnt_mit.so
+%{_libdir}/libkadm5srv.so
+%{_libdir}/libkadm5srv_mit.so
+%{_libdir}/libkdb5.so
+%{_libdir}/libkrb5.so
+%{_libdir}/libkrb5support.so
+%if %{build_static}
+%{_libdir}/*.a
+%endif
+
 %endif
 
 %changelog
+* Mon Mar 21 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.8.2-3
+- fix compat32-devel package missing...
+
 * Mon Mar 21 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.8.2-2
 - add Obsoletes: krb5-workstation-clients, krb5-workstation-servers into workstation pkg