Ian Pilcher 01a838e
Name:		wifi-radar
Ian Pilcher 01a838e
Summary:	A utility for managing WiFi profiles
bouska 811a01d
Version:	2.0.s08
d68eed6
Release:	6%{?dist}
c13b764
License:	GPLv2
Ian Pilcher 01a838e
Group:		Applications/Internet
c13b764
URL:		http://wifi-radar.berlios.de/
c13b764
Source0:	http://download.berlios.de/wifi-radar/%{name}-%{version}.tar.bz2
Ian Pilcher 01a838e
Source2:	wifi-radar-pam.d
c13b764
Patch0:		fedora-compliant.patch 
Ian Pilcher 01a838e
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Ian Pilcher 01a838e
BuildArch:	noarch
Ian Pilcher 01a838e
Requires:	pygtk2 net-tools wireless-tools dhclient usermode
Ian Pilcher 01a838e
BuildRequires:	desktop-file-utils
Ian Pilcher 01a838e
c13b764
Ian Pilcher 01a838e
%description
Ian Pilcher 01a838e
WiFi Radar is a straightforward utility, which scans for available wireless
Ian Pilcher 01a838e
networks, and manages their associated profiles.
Ian Pilcher 01a838e
Ian Pilcher 01a838e
%prep
Ian Pilcher 01a838e
%setup -q
Ian Pilcher 01a838e
c13b764
# wifi-radar use by default dhcpcd instead of dhcpclient and look for 
c13b764
# the wpa_supplicant at the wrong location, so we need to fix that
c13b764
%patch0 -p1 -b .fedora
c13b764
c13b764
#fix the upstream desktop file (this Ubuntu's fanboys tsss)
c13b764
sed -i 's/gksudo -S wifi-radar/wifi-radar/' %{name}.desktop
c13b764
sed -i 's/wifi-radar.svg/wifi-radar/' %{name}.desktop
c13b764
sed -i '/FilePattern=wifi-radar/d' %{name}.desktop
c13b764
Ian Pilcher 01a838e
%build
c13b764
make %{?_smp_mflags}
Ian Pilcher 01a838e
Ian Pilcher 01a838e
%install
Ian Pilcher 01a838e
rm -rf $RPM_BUILD_ROOT
c13b764
c13b764
make install DESTDIR=$RPM_BUILD_ROOT%{_prefix}
c13b764
c13b764
# An empty config file
c13b764
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}
c13b764
touch $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}.conf
c13b764
Ian Pilcher 01a838e
# The actual executable
Ian Pilcher 01a838e
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
c13b764
ln -s consolehelper $RPM_BUILD_ROOT/%{_bindir}/%{name}
c13b764
Ian Pilcher 01a838e
# consolehelper file
Ian Pilcher 01a838e
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps
c13b764
cat > $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/%{name} <
Ian Pilcher 01a838e
USER=root
c13b764
PROGRAM=%{_sbindir}/%{name}
Ian Pilcher 01a838e
SESSION=true
Ian Pilcher 01a838e
EOF
c13b764
Ian Pilcher 01a838e
# PAM file
Ian Pilcher 01a838e
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d
c13b764
cp -p %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/%{name}
c13b764
c13b764
desktop-file-install --delete-original --dir $RPM_BUILD_ROOT/%{_datadir}/applications	\
c13b764
	 $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
Ian Pilcher 01a838e
Ian Pilcher 01a838e
%clean
Ian Pilcher 01a838e
rm -rf $RPM_BUILD_ROOT
Ian Pilcher 01a838e
c13b764
Ian Pilcher 01a838e
%files
c13b764
%defattr(-,root,root,-)
c13b764
%doc LICENSE.GPL docs/*
c13b764
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
c13b764
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
c13b764
%config(noreplace) %{_sysconfdir}/%{name}.conf
c13b764
%{_bindir}/%{name}
c13b764
%{_sbindir}/%{name}
c13b764
%{_datadir}/applications/%{name}.desktop
c13b764
%{_mandir}/man?/%{name}.*
c13b764
%{_datadir}/pixmaps/%{name}.*
c13b764
c13b764
Ian Pilcher 01a838e
Ian Pilcher 01a838e
%changelog
d68eed6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.s08-6
d68eed6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d68eed6
5f7f451
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.s08-5
5f7f451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5f7f451
75304b9
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.s08-4
75304b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
75304b9
d4c9b06
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.s08-3
d4c9b06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d4c9b06
56d9c5d
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.s08-2
56d9c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
56d9c5d
bouska 811a01d
* Mon Nov 01 2010 Pablo Martin-Gomez <bouska@fedoraproject.org> -2.0.s08-1
bouska 811a01d
- Update to 2.0.s08
bouska 811a01d
c13b764
* Wed Oct 28 2009 Pablo Martin-Gomez <pablo.martin-gomez@laposte.net> - 2.0.s06-1
c13b764
- Update to 2.0.s06
c13b764
- Patch the source in order to be used on Fedora
c13b764
- The software can't be deamonize, so initscript is useless
c13b764
- Clean and recycle the spec file
c13b764
86e5a20
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.9-3
86e5a20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
86e5a20
68b65f6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.9-2
68b65f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
68b65f6
1198c90
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.9.9-1
1198c90
- fix license tag
1198c90
- update to 1.9.9
1198c90
Ian Pilcher 2c66bcc
* Sun Sep 17 2006 Ian Pilcher <i.pilcher@comcast.net> 1.9.6-3
Ian Pilcher 2c66bcc
- Bump release for FC6 rebuild
Ian Pilcher 2c66bcc
- Fix dates in previous changelog entries (It's 2006, duh!)
Ian Pilcher 2c66bcc
Ian Pilcher 2c66bcc
* Thu Jun  1 2006 Ian Pilcher <i.pilcher@comcast.net> 1.9.6-2
Ian Pilcher 01a838e
- Use desktop-file-install (and BuildRequire desktop-file-utils)
Ian Pilcher 01a838e
- Add noreplace flag to config file
Ian Pilcher 01a838e
- Fix doc directory permissions
Ian Pilcher 01a838e
Ian Pilcher 2c66bcc
* Fri May 12 2006 Ian Pilcher <i.pilcher@comcast.net> 1.9.6-1
Ian Pilcher 01a838e
- Initial SPEC file for Fedora Extras