packages: tacacs/tacacs.spec - BR: bison, flex, perl-base, rpm-pythonprov -...

sparky sparky at pld-linux.org
Fri May 14 02:21:55 CEST 2010


Author: sparky                       Date: Fri May 14 00:21:55 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- BR: bison, flex, perl-base, rpm-pythonprov
- dropped unused BR: autoconf, automake, openldap-devel
- added TODO
- better %files; but ! -devel and -static packages are needed

---- Files affected:
packages/tacacs:
   tacacs.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/tacacs/tacacs.spec
diff -u packages/tacacs/tacacs.spec:1.2 packages/tacacs/tacacs.spec:1.3
--- packages/tacacs/tacacs.spec:1.2	Tue Mar 30 15:15:06 2010
+++ packages/tacacs/tacacs.spec	Fri May 14 02:21:49 2010
@@ -1,4 +1,6 @@
 # $Revision$, $Date$
+# TODO:
+#	-devel and -static subpackages
 
 %bcond_with     skey		# with S/KEY support
 
@@ -10,7 +12,7 @@
 Epoch:		0
 License:	BSD-like, GPL
 Group:		Networking/Daemons
-Source0:	ftp://ftp.shrubbery.net/pub/tac_plus/tacacs+-%{version}.tar.gz 
+Source0:	ftp://ftp.shrubbery.net/pub/tac_plus/tacacs+-%{version}.tar.gz
 # Source0-md5:	4979127f60f1a83c55e8a7cec285a797
 Source1:	%{name}.cfg
 Source2:	%{name}.init
@@ -18,11 +20,12 @@
 Source6:	%{name}.rotate
 Source8:	%{name}.sysconfig
 URL:		http://www.shrubbery.net/tac_plus/
-BuildRequires:	autoconf
-BuildRequires:	automake
+BuildRequires:	bison
+BuildRequires:	flex
 BuildRequires:	libwrap-devel
-BuildRequires:	openldap-devel >= 2.4.6
 BuildRequires:	pam-devel
+BuildRequires:	perl-base
+BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.268
 %if %{with skey}
 BuildRequires:	skey-static
@@ -32,7 +35,7 @@
 Requires:	rc-scripts
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		__make		/usr/bin/make -j1
+%undefine	__cxx
 
 %description
 TACACS+ daemon using with Cisco's NASs (or other vendors) for AAA
@@ -47,15 +50,15 @@
 %setup -q -n %{name}+-%{version}
 
 %build
-%configure 
+%configure
 
-%{__make} \
+%{__make} -j1 \
 	%{?with_skey:DEFINES="-DSKEY" LIBS="/usr/lib/libskey.a" INCLUDES="-I/usr/include/security/"}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -j1 install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/tacacs,/etc/{logrotate.d,pam.d,rc.d/init.d,sysconfig}}
@@ -83,16 +86,29 @@
 %doc users_guide CHANGES
 %attr(755,root,root) %{_bindir}/*
 %dir %{_sysconfdir}/tacacs
-%dir %{_datadir}/tacacs+
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tacacs/tacacs.cfg
 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/tacacs
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/tac_plus
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tacacs
 %attr(754,root,root) /etc/rc.d/init.d/tacacs
-%{_mandir}/man?/*
+%{_mandir}/man5/*
+%{_mandir}/man8/*
+%attr(755,root,root) %{_libdir}/libtacacs.so.1.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtacacs.so.?
+%{_datadir}/tacacs+
+
+%if 0
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libtacacs.so
+%{_libdir}/libtacacs.la
 %{_includedir}/tacacs.h
-%{_libdir}/*
-%{_datadir}/tacacs+/*
+%{_mandir}/man3/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libtacacs.a
+%endif
 
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -101,9 +117,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/05/14 00:21:49  sparky
+- BR: bison, flex, perl-base, rpm-pythonprov
+- dropped unused BR: autoconf, automake, openldap-devel
+- added TODO
+- better %files; but ! -devel and -static packages are needed
+
 Revision 1.2  2010/03/30 13:15:06  mguevara
 - source url fix
 
 Revision 1.1  2010/03/30 13:03:21  mguevara
 - tacacs+ daemon from shrubbery.net
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tacacs/tacacs.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list