%define name x2x %define version 1.30 %define release 0.beta.1mdk Summary: Allows a mouse and a keyboard to control two displays. Name: %{name} Version: %{version} Release: %{release} URL: http://freshmeat.net/projects/%{name}/ Source0: ftp://digital.com/pub/Digital/SRC/%{name}/%{name}-%{version}-beta.tar.bz2 Source1: Makefile-%{name}.bz2 Patch0: %{name}-1.30-c-fixes.patch.bz2 Group: System/XFree86 License: BSD BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: XFree86-devel %description x2x allows the keyboard and mouse on one ("from") X display to control another ("to") X display. %prep %setup -q -n %{name}-%{version}-beta %patch0 -p1 bzcat %{SOURCE1} > Makefile %build %make CFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG" %install rm -rf $RPM_BUILD_ROOT %{__install} -m755 %{name} -D $RPM_BUILD_ROOT%{_bindir}/%{name} %{__install} -m644 %{name}.man -D $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Sun Jan 04 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.30-0.beta.1mdk - 1.30-beta - rm -rf $RPM_BUILD_ROOT at the beginning of %%install - cosmetics - regenerate P0 * Mon Feb 10 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.27-1mdk - from Quel Qun <kelk1@hotmail.com> : - Mandrake rpm.