SPECS: wpa_supplicant.spec - make gui package conditional, rel unc...

agaran agaran at pld-linux.org
Sun Jan 22 04:18:23 CET 2006


Author: agaran                       Date: Sun Jan 22 03:18:23 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- make gui package conditional, rel unchanged == 3. 

---- Files affected:
SPECS:
   wpa_supplicant.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/wpa_supplicant.spec
diff -u SPECS/wpa_supplicant.spec:1.21 SPECS/wpa_supplicant.spec:1.22
--- SPECS/wpa_supplicant.spec:1.21	Tue Jan 10 16:17:26 2006
+++ SPECS/wpa_supplicant.spec	Sun Jan 22 04:18:18 2006
@@ -7,6 +7,7 @@
 # Conditional build
 %bcond_with	madwifi		# with madwifi support (enable it by default
 				# if madwifi will be on ftp...)
+%bcond_without	gui		# without gui
 #
 # sync archlist with madwifi.spec
 %ifnarch %{x8664} arm %{ix86} mips ppc xscale
@@ -30,8 +31,10 @@
 %{?with_madwifi:BuildRequires:	madwifi-devel}
 BuildRequires:	ncurses-devel
 BuildRequires:	openssl-devel
+%if %{with gui}
 BuildRequires:	qmake
 BuildRequires:	qt-devel
+%endif
 BuildRequires:	readline-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -78,6 +81,7 @@
 - zarządzanie kluczy dla CCMP, TKIP, WEP104, WEP40
 - RSN/WPA2 (IEEE 802.11i)
 
+%if %{with gui}
 %package -n wpa_gui
 Summary:	Linux WPA/WPA2/RSN/IEEE 802.1X supplicant GUI
 Summary(pl):	Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
@@ -89,6 +93,7 @@
 
 %description -n wpa_gui -l pl
 Graficzny interfejs suplikanta WPA/WPA2/RSN/IEEE 802.1X dla Linuksa.
+%endif
 
 %prep
 %setup -q
@@ -107,11 +112,13 @@
 	CC="%{__cc}" \
 	OPT="%{rpmcflags}"
 
+%if %{with gui}
 %{__make} wpa_gui \
 	QTDIR=/usr \
 	UIC=%{_bindir}/uic \
 	CC="%{__cc}" \
 	OPT="%{rpmcflags}"
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -123,8 +130,10 @@
 install doc/docbook/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
 install doc/docbook/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
+%if %{with gui}
 install wpa_gui/wpa_gui $RPM_BUILD_ROOT%{_bindir} 
 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/wpa_gui.desktop
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -136,10 +145,12 @@
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man[58]/*
 
+%if %{with gui}
 %files -n wpa_gui
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/wpa_gui
 %{_desktopdir}/wpa_gui.desktop
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -147,6 +158,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2006/01/22 03:18:18  agaran
+- make gui package conditional, rel unchanged == 3.
+
 Revision 1.21  2006/01/10 15:17:26  tommat
 - BR: qt-devel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/wpa_supplicant.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list