Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > c08e49e0d6551819ecd951b8fea89378 > files > 2

airfart-0.2.1-3mdk.src.rpm

%define name	airfart
%define version	0.2.1
%define release 3mdk

Name: 	 	%{name}
Summary: 	Wireless network discovery tool
Version: 	%{version}
Release: 	%{release}

Source:		%{name}-v%{version}.tar.bz2
URL:		http://airfart.sourceforge.net/
License:	GPL
Group:		Networking/Other
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	gtk+2-devel
Requires:	prism2-utils gksu

%description
AirFart is a wireless tool created to detect wireless devices, calculate their
signal strengths, and present them to the user in an easy-to-understand
fashion. It is written in C/C++ with a GTK front end. Airfart supports all
wireless network cards supported by the linux-wlan-ng Prism2 driver that
provide hardware signal strength information in the "raw signal" format
(ssi_type 3). Airfart implements a modular n-tier architecture with the data
collection at the bottom tier and a graphical user interface at the top.

%prep
%setup -q -n %name

%build
%make C_FLAGS="-g $RPM_OPT_FLAGS"
										
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%_bindir
mkdir -p $RPM_BUILD_ROOT/%_mandir/man1
mkdir -p $RPM_BUILD_ROOT/%_datadir/pixmaps/%name
mkdir -p $RPM_BUILD_ROOT/%_datadir/%name
cp %name $RPM_BUILD_ROOT/%_bindir
bzip2 %name.1
cp %name.1.bz2 $RPM_BUILD_ROOT/%_mandir/man1
cp graphics/* $RPM_BUILD_ROOT/%_datadir/pixmaps/%name
cp manuf $RPM_BUILD_ROOT/%_datadir/%name

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): command="gksu %{name}" icon="networking_section.png" needs="x11" title="Airfart" longtitle="Discovers wireless networks" section="System/Configuration/Networking"
EOF

%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
		
%postun
%clean_menus

%files -f %{name}.lang
%defattr(-,root,root)
%doc README Authors ChangeLog TODO LICENSE
%{_bindir}/%name
%{_mandir}/man1/*
%{_datadir}/pixmaps/%name
%{_datadir}/%name
%{_menudir}/%name

%changelog
* Sat Jun 5 2004 Austin Acton <austin@mandrake.org> 0.2.1-3mdk
- new menu

* Thu Jan 14 2004 Franck Villaume <fvill@freesurf.fr> 0.2.1-2mdk
- fix 64bits buildrequires

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