SPECS: ppp.spec - add srp bcond

arekm arekm at pld-linux.org
Thu Apr 13 19:36:43 CEST 2006


Author: arekm                        Date: Thu Apr 13 17:36:43 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add srp bcond

---- Files affected:
SPECS:
   ppp.spec (1.132 -> 1.133) 

---- Diffs:

================================================================
Index: SPECS/ppp.spec
diff -u SPECS/ppp.spec:1.132 SPECS/ppp.spec:1.133
--- SPECS/ppp.spec:1.132	Sun Feb 26 17:34:20 2006
+++ SPECS/ppp.spec	Thu Apr 13 19:36:37 2006
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without	pppoatm	# without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
+%bcond_without	srp
 #
 Summary:	ppp daemon package for Linux
 Summary(de):	ppp-Dämonpaket für Linux
@@ -49,7 +50,7 @@
 %{?with_pppoatm:BuildRequires:	linux-atm-devel}
 BuildRequires:	openssl-devel
 BuildRequires:	pam-devel
-BuildRequires:	srp-devel
+%{?with_srp:BuildRequires:	srp-devel}
 Requires:	pam >= 0.77.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -137,6 +138,7 @@
 %configure
 %{__make} \
 	%{?with_pppoatm:HAVE_LIBATM=y} \
+	%{?with_srp:USE_SRP=y} \
 	OPT_FLAGS="%{rpmcflags}" \
 	COPTS="%{rpmcflags}" \
 	CC="%{__cc}"
@@ -149,6 +151,7 @@
 
 %{__make} install \
 	%{?with_pppoatm:HAVE_LIBATM=y} \
+	%{?with_srp:USE_SRP=y} \
 	DESTDIR=$RPM_BUILD_ROOT%{_prefix}
 
 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
@@ -186,7 +189,7 @@
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/chat
 %attr(755,root,root) %{_sbindir}/ppp*
-%attr(755,root,root) %{_sbindir}/srp-entry
+%{?with_srp:%attr(755,root,root) %{_sbindir}/srp-entry}
 %dir %{_libdir}/pppd
 %dir %{_libdir}/pppd/*.*
 %{_libdir}/pppd/plugins
@@ -228,6 +231,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.133  2006/04/13 17:36:37  arekm
+- add srp bcond
+
 Revision 1.132  2006/02/26 16:34:20  sparky
 - added COPTS="%{rpmcflags}", else pppoatm is build without proper cflags
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ppp.spec?r1=1.132&r2=1.133&f=u



More information about the pld-cvs-commit mailing list