Sophie

Sophie

distrib > Mandriva > 10.0-com > x86_64 > by-pkgid > def6937fa5dc3a22e6235deada8a2cce > files > 2

wlanfe-1.0.1-2mdk.src.rpm

%define name	wlanfe
%define version	1.0.1
%define release 2mdk

Name: 	 	%{name}
Summary: 	Wireless lan configuration tool
Version: 	%{version}
Release: 	%{release}

Source:		%{name}-%{version}.tar.bz2
URL:		http://se.rious.net/wlanfe.php
License:	GPL
Group:		System/Configuration/Networking
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	libgtk+1.2-devel
Requires:	gksu prism2-utils

%description
WlanFe is a GTK+ front end for the Linux WLAN-NG tools.
This allows you to control a wireless networkig card.

%prep
%setup -q

%build
%make CC="gcc $RPM_OPT_FLAGS"
										
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot/%_bindir
cp %name %buildroot/%_bindir

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): command="gksu %{name}" icon="networking_configuration_section.png" needs="x11" title="WLanFE" longtitle="Wireless LAN Configuration" section="Configuration/Networking"
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
		
%postun
%clean_menus

%files
%defattr(-,root,root)
%doc README TODO
%{_bindir}/%name
%{_menudir}/%name

%changelog
* Wed Apr 23 2003 Austin Acton <aacton@yorku.ca> 1.0.1-2mdk
- fix requires gksu

* Wed Apr 9 2003 Austin Acton <aacton@yorku.ca> 1.0.1-1mdk
- initial package