%define name root-tail %define version 1.2 %define release 2mdk Summary: Root-tail prints text directly to an X11 root window Name: %{name} Version: %{version} Release: %{release} Source: http://www.goof.com/pcg/marc/data/%{name}-%{version}.tar.bz2 URL: http://www.goof.com/pcg/marc/root-tail.html BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: XFree86-devel # for rman: BuildRequires: XFree86 License: GPL Group: Monitoring %description Displays a given file anywhere on your X11 root window with a transparent background. It was made because I am very lazy and this was easier than making a new rxvt pixmap each time I changed my background to simulate that transparent effect. %prep %setup -q %build xmkmf -a make CDEBUGFLAGS="${RPM_OPT_FLAGS}" \ CXXDEBUGFLAGS="${RPM_OPT_FLAGS}" %install rm -rf %buildroot mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/X11R6/bin mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 cp root-tail ${RPM_BUILD_ROOT}%{_prefix}/X11R6/bin cp root-tail.man ${RPM_BUILD_ROOT}%{_mandir}/man1/root-tail.1 # Menu mkdir -p $RPM_BUILD_ROOT%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF ?package(%{name}): command="%{_prefix}/X11R6/bin/%{name} -g 80x25+100+50 -font fixed /var/log/messages,black" \ needs="X11" \ section="Applications/Monitoring" \ title="Root-tail" longtitle="Root-tail prints text directly to a root window" EOF #icon #install -d $RPM_BUILD_ROOT/%{_iconsdir} #install -d $RPM_BUILD_ROOT/%{_liconsdir} #install -d $RPM_BUILD_ROOT/%{_miconsdir} #bzcat %{SOURCE1} > $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png #bzcat %{SOURCE2} > $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png #bzcat %{SOURCE3} > $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png %post %{update_menus} %postun %{clean_menus} %clean rm -rf %buildroot %files %defattr(-,root,root,755) %doc README Changes %attr(755,root,root) %{_prefix}/X11R6/bin/* %{_mandir}/man1/* %{_menudir}/* #%{_iconsdir}/%{name}.png #%{_liconsdir}/%{name}.png #%{_miconsdir}/%{name}.png %changelog * Mon Dec 13 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2-2mdk - fix buildrequires * Tue Aug 31 2004 Götz Waschk <waschk@linux-mandrake.com> 1.2-1mdk - fix rpmlint warning about the menu description - fix man page - add source URL - New release 1.2 * Mon Apr 12 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1-1mdk - new version * Wed Feb 25 2004 Götz Waschk <waschk@linux-mandrake.com> 0.9-1mdk - drop prefix - new version * Mon Aug 04 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.2-3mdk - rebuild * Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 0.2-2mdk - rebuild * Wed Nov 6 2002 Götz Waschk <waschk@linux-mandrake.com> 0.2-1mdk - initial Mandrake package based on the work from Marcel Pol <mpol@gmx.net> - spec cleanup * Sat Oct 12 2002 Marcel Pol <mpol@gmx.net> - 0.2 * Sat Jul 14 2001 Marcel Pol <mpol@gmx.net> 0.0.10-1mdk - Update to 0.10 - Added menu entry * Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.0.4B-2mdk - BM * Mon Jun 26 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.0.4B-1mdk - new in contribs - used srpm provided by Max Heijndijk <cchq@wanadoo.nl>