%define xrootdir /usr %define xconfdir /etc/X11 Summary: Applet that monitors the network Name: wmnet Version: 1.06 Release: 14 License: GPL Group: Graphical desktop/WindowMaker URL: http://dockapps.org/file.php/id/77 Source0: http://dockapps.org/download.php/id/115/%{name}-%{version}.tar.bz2 Source1: %{name}.wmconfig Source2: wmnet-icons.tar.bz2 Patch0: wmnet-sa-restorer.patch Patch1: wmnet-1.05-man-graph.patch Patch2: wmnet-1.05-glibc22.patch BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: imake %description Wmnet uses ip accounting in the Linux kernel to monitor your network. %prep %setup %patch0 -p1 -b .sigaction %patch1 -p1 -b .man-graph %patch2 -p1 -b .glibc22 %build xmkmf %make CFLAGS="%{optflags}" %install # wmnet standard install install -d %{buildroot}/%{_bindir} install -d %{buildroot}/%{_mandir}/man1 install -m 755 wmnet %{buildroot}/%{_bindir} install -m 644 wmnet.man %{buildroot}/%{_mandir}/man1/wmnet.1 # wmaker config file install -d %{buildroot}/%{xconfdir}/wmconfig cp %{SOURCE1} %{buildroot}/%{xconfdir}/wmconfig/%{name} # mdv menu icons mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps tar jxvf %{SOURCE2} -C %{buildroot}/%{_iconsdir} # fd.o icons cp %{buildroot}/%{_iconsdir}/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png cp %{buildroot}/%{_liconsdir}/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png cp %{buildroot}/%{_miconsdir}/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png # mdv menu entry mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <