LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File wicd.spec of Package wicd (Project home:agentdero:wicd)

# norootforbuild

Summary:        A wireless and wired network manager
Name:            wicd
Version:        20110501
Release:        1
URL:            http://wicd.sourceforge.net/
License:        GPLv2
Group:            Productivity/Networking/System
## Use generatebzball.sh to pull a new set of code from Launchpad
## and package it up
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.init
Source99:             wicd-rpmlintrc
BuildRequires:        python-devel gettext update-desktop-files fdupes wpa_supplicant
BuildRequires:        dbus-1-python-devel sysconfig iproute2 net-tools
BuildRequires:        python-gobject2-devel acpid pm-utils hicolor-icon-theme wireless-tools

Requires:        python dbus-1 dbus-1-python dhcp-client ethtool net-tools iproute2
Requires:        pm-utils wireless-tools wpa_supplicant python-urwid python-gobject2 python-curses
Requires:        python-gtk
BuildArch:        i586 x86_64
BuildRoot:        %{_tmppath}/%{name}-%{version}-build

Wicd is an open source wired and wireless network manager for Linux
which aims to provide a simple interface to connect to networks with a
wide variety of settings.

%setup -q

%{__python} setup.py configure \
            --distro=suse \
%{__python} setup.py build

%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-lib=%py_libdir/site-packages

%__install -Dm 755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
%__ln_s %{_initrddir}/%{name} %{buildroot}/%{_sbindir}/rc%{name}

%{__mkdir} -p %{buildroot}/var/lib/%{name}/configurations

find $RPM_BUILD_ROOT/ -type f  -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f  -iname '*.a' -exec rm {} \;
%{__mkdir} -p  $RPM_BUILD_ROOT/var/run/%{name}

%fdupes -s %{buildroot}

%suse_update_desktop_file -r %{name} System Network

%find_lang %name

service network stop
service wicd start

%{stop_on_removal wicd}

%{restart_on_update wicd}

%__rm -rf "%{buildroot}"

%files -f %{name}.lang






%dir /etc/%{name}
%attr(644,root,root) %config /etc/%{name}/*

%dir /etc/%{name}/encryption
%attr(755,root,root) %config /etc/%{name}/encryption/*

%config %{_sysconfdir}/%{name}
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf