# # spec file for package wicd (version 1.6.1) # # Copyright (c) 2009 Adam Blackburn # Copyright (c) 2009 Andrew Psaltis # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS OR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #norootforbuild # Big thanks to sda00 for helping with getting this working! %{!?python_sitelib: %global python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')} %{?!_icondir: %global _icondir %{_datadir}/icons} Name: wicd Version: 1.6.2 Release: 3%{?dist} Summary: A wireless and wired network manager Group: Applications/System License: GPLv2 Url: http://wicd.net Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel gettext desktop-file-utils Requires: ethtool net-tools wpa_supplicant pm-utils wireless-tools Requires: dhclient iproute dbus-python pygtk2 pyhton-urwid %description A complete network connection manager Wicd supports wired and wireless networks, and capable of creating and tracking profiles for both. It has a template-based wireless encryption system, which allows the user to easily add encryption methods used. It ships with some common encryption types, such as WPA and WEP. Wicd will automatically connect at startup to any preferred network within range. %prep %setup -q #Fixing rpmlint error %{__sed} -i 's/\r//' wicd/logfile.py %build %{__python} setup.py configure CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/usr/share/doc/wicd/ desktop-file-install --dir $RPM_BUILD_ROOT/usr/share/autostart/ other/wicd-tray.desktop %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post if [ "$1" == "1" ]; then /sbin/chkconfig --add wicd /sbin/chkconfig --level 2345 wicd on fi touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi %preun if [ $1 -eq 0 ]; then /sbin/service wicd stop >/dev/null 2>&1 /sbin/chkconfig --del wicd fi %postun touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS CHANGES INSTALL LICENSE README %{_bindir}/wicd-client %{_bindir}/wicd-curses %{_datadir}/applications/wicd.desktop %{_datadir}/autostart/wicd-tray.desktop %{_datadir}/pixmaps/wicd/ %{_datadir}/wicd/ %{_icondir}/hicolor/??x??/apps/wicd-client.png %{_icondir}/hicolor/128x128/apps/wicd-client.png %{_icondir}/hicolor/192x192/apps/wicd-client.png %{_icondir}/hicolor/scalable/apps/wicd-client.svg %{python_sitelib}/wicd/ %{python_sitelib}/Wicd-*egg-info %{_mandir}/man1/wicd-client.* %{_mandir}/man5/wicd* %{_mandir}/man8/wicd* %{_sysconfdir}/%{name}/ %{_sysconfdir}/acpi/resume.d/80-wicd-connect.sh %{_sysconfdir}/acpi/suspend.d/50-wicd-suspend.sh %{_sysconfdir}/dbus-1/system.d/wicd.conf %{_sysconfdir}/xdg/autostart/wicd-tray.desktop %{_sbindir}/wicd %{_libdir}/pm-utils/sleep.d/55wicd %{_libdir}/wicd/ %{_localstatedir}/%{_lib}/wicd/ %{_initddir}/wicd %changelog * Sun Jul 9 2009 Rangeen Basu Roy Chowdhury 1.6.2-3 - Version bump to 1.6.2 - Made lot of ownership changes and setup changes - Made the spec file Fedora speciefic * Sun Jun 21 2009 Andrew Psaltis 1.6.1-2 - Version bump to 1.6.1 * Mon Jun 8 2009 Andrew Psaltis 1.6.0-2 - Version bump to 1.6.0 :) * Thu May 28 2009 Andrew Psalits 1.6.0b3-2 - Version bump to 1.6.0b3 * Sat May 23 2009 Andrew Psalits 1.6.0b2-2 - Added locale directories for nl_NL to placate OpenSUSE >= 11.1 * Sat May 23 2009 Andrew Psalits 1.6.0b2-2 - Version bump to 1.6.0b2 - Forced OpenSUSE to use dhcpcd * Thu May 14 2009 Andrew Psaltis 1.6.0b1-2 - Added missing /usr/share/hicolor directory to make OpenSUSE >= 11.1 happy * Thu May 14 2009 Andrew Psaltis 1.6.0b1-2 - Version bump to 1.6.0b1 - Added support for the --distro tag in setup.py - Cleaned up some of the SUSE directory code * Wed May 13 2009 Andrew Psaltis 1.6.0a3-1 - Version bump to 1.6.0a3 * Thu Apr 23 2009 Andrew Psaltis 1.6.0a2-1 - Version bump to 1.6.0a2 * Tue Apr 21 2009 Andrew Psaltis 1.6.0a1-1 - Version bump to 1.6.0a1 * Mon Apr 20 2009 Andrew Psaltis r357-1 - First really working copy of wicd.spec :)