--- cauldron/tac_plus/current/SPECS/tac_plus.spec 2013/01/21 23:11:36 390676 +++ cauldron/tac_plus/current/SPECS/tac_plus.spec 2013/01/21 23:20:42 390677 @@ -1,6 +1,13 @@ +# autoreconf -fi gives errors +%define __libtoolize /bin/true +# libtacacs doesnt link due to undefined references +%define _disable_ld_no_undefined 1 +%define libname %mklibname tacacs 1 +%define libdevel %mklibname -d tacacs + Name: tac_plus -Version: 4.0.4.14 -Release: %mkrel 6 +Version: 4.0.4.26 +Release: %mkrel 1 License: BSD Group: System/Servers Summary: TACACS+ server based on Cisco engineering release @@ -10,6 +17,7 @@ Source2: tac_plus.pamd Source3: tac_plus.init Source4: tac_plus.sysconfig +BuildRequires: flex bison Requires(pre): rpm-helper Requires(post): rpm-helper BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -39,6 +47,19 @@ added; ported from Devrim Seral's implementation. See the documentation for further information. +%package -n %libname +Summary: Tacacs library from tac_plus +Group: System/Libraries + +%description -n %libname +A shared library for TACACS+ from tac_plus. + +%package -n %libdevel +Summary: Tacacs development libarary from tac_plus +Group: Development/Other + +%description -n %libdevel +Development library for TACACS+ from tac_plus. %prep %setup -q -n tacacs+-F%{version} @@ -58,6 +79,8 @@ install -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/%{name} mv %{buildroot}/%{_datadir}/{tacacs+,tac_plus} +rm -f %{buildroot}/%{_libdir}/libtacacs.{a,la} + %clean rm -Rf %{buildroot} @@ -77,10 +100,15 @@ %doc %{_mandir}/man5/tac_plus.conf.5.* %doc %{_mandir}/man8/tac_plus.8.* %doc %{_mandir}/man8/tac_pwd.8.* -%doc %{_mandir}/man3/regexp.3.* +#doc %{_mandir}/man3/regexp.3.* %doc users_guide %{_datadir}/%{name} +%files -n %libname +%defattr(-,root,root) +%{_libdir}/libtacacs.so.1* - - +%files -n %libdevel +%defattr(-,root,root) +%{_libdir}/libtacacs.so +%{_includedir}/tacacs.h