+# TODO:
+# - config should be accesible with some better rights...
+# NOTE:
+# - there is some GNOME/PAM integration described at http://wifi-radar.systemimager.org/
+# - there are %{name}.{conf,desktop} files in tarball too
Summary: Utility for managing WiFi profiles
+Summary(pl.UTF-8): Narzędzie do zarządzania profilami WiFi
Name: wifi-radar
-Version: 1.9.4
-Release: 0.9
-License: GPL v2
+Version: 2.0.s07
+Release: 1
+License: GPL v2+
Group: Networking/Admin
-Source0: http://www.bitbuilder.com/wifi_radar/bins/%{name}-%{version}.tar.gz
-# Source0-md5: 4fce5878322868805fcda8f2f7c4232e
+Source0: http://download.berlios.de/wifi-radar/%{name}-%{version}.tar.bz2
+# Source0-md5: f68e0f63fd3b03cd4b669f1c06734303
Source1: %{name}.conf
Source2: %{name}.desktop
Source3: %{name}-128.png
-Patch0: %{name}-path.diff
-URL: http://www.bitbuilder.com/wifi_radar/
+URL: http://wifi-radar.systemimager.org/
Requires: dhcpcd
Requires: net-tools
+Requires: python-pycairo >= 1.2.2
Requires: python-pygtk-gtk >= 2.4.0
Requires: wireless-tools
BuildArch: noarch
it. You can drag and drop your preferred networks to arrange the
profile priority.
+%description -l pl.UTF-8
+WiFi Radar to narzędzie do zarządzania profilami połączeń WiFi
+napisane przy użyciu Pythona/PyGTK2. Umożliwia skanowanie w
+poszukiwaniu dostępnych sieci i tworzenie dla nich profili. Podczas
+uruchamiania komputera WiFi Radar automatycznie przeskanuje w
+poszukiwaniu preferowanej sieci i połączy się z nią. Można użyć
+przeciągania aby zorganizować priorytety profili.
+
%prep
%setup -q
-%patch0
%build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir},%{_desktopdir},%{_pixmapsdir},%{_mandir}/man{1,5}}
-install wifi-radar wifi-radar.sh $RPM_BUILD_ROOT%{_sbindir}
+install wifi-radar $RPM_BUILD_ROOT%{_sbindir}
+install wifi-radar.sh $RPM_BUILD_ROOT%{_bindir}
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
+install pixmaps/wifi{-radar.*g,_radar_32x32.png} $RPM_BUILD_ROOT%{_pixmapsdir}
+install man/man1/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install man/man5/%{name}.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO WHISHLIST
-%attr(755,root,root) %{_sbindir}/*
+%doc docs/*
+%attr(755,root,root) %{_sbindir}/wifi-radar
+%attr(755,root,root) %{_bindir}/wifi-radar.sh
+# rights should be changed? taken from SuSE
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/wifi-radar.conf
%{_desktopdir}/wifi-radar.desktop
-%{_pixmapsdir}/wifi-radar.png
+%{_pixmapsdir}/*.png
+%{_pixmapsdir}/*.svg
+%{_mandir}/man1/wifi-radar.1*
+%{_mandir}/man5/wifi-radar.conf.5*