%bcond_without gcc3 %define vversion 1.0.0pre12 Summary: A utility to make wheel mice work under X Name: imwheel Version: 1.0.0 Release: 4_pre12%{?dist} License: GPL Group: User Interface/X Hardware Support Source: http://prdownloads.sourceforge.net/imwheel/%{name}-%{vversion}.tar.gz Source1: imwheelrc URL: http://imwheel.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libXtst-devel libXmu-devel %{?with_gcc3:BuildRequires: compat-gcc-34} %description This is the imwheel utility for X. It supports a variety of wheel mice including the MS Intellimouse. %prep %setup -q -n %{name}-%{vversion} %build ./configure --disable-gpm \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --sysconfdir=%{_sysconfdir} %if %{with gcc3} make CC=gcc34 %else make CC=gcc %endif %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} \ %{buildroot}%{_mandir}/man1 \ %{buildroot}%{_sysconfdir}/X11/imwheel install -m 0755 imwheel %{buildroot}%{_bindir}/imwheel install -m 0644 imwheel.1 %{buildroot}%{_mandir}/man1/imwheel.1x install -m 0644 imwheelrc %{buildroot}%{_sysconfdir}/imwheelrc install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/imwheel/imwheelrc %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc BUGS ChangeLog M-BA47 NEWS COPYING EMACS README TODO AUTHORS INSTALL %config(noreplace) %{_sysconfdir}/imwheelrc %config(noreplace) %{_sysconfdir}/X11/imwheel/imwheelrc %{_bindir}/imwheel %{_mandir}/man1/imwheel*.gz %Changelog * Wed Feb 06 2008 Paulo Roma 1.0.0-4_pre12 - Rebuilt for F8. - Changer version style. - Using %%bcond_without gcc3, and relying on forcegcc otherwise. * Sun Apr 01 2007 Paulo Roma 1.0.0pre12-4 - Updated imwheelrc. - Added BR compat-gcc-34 and libXmu-devel. * Fri Feb 23 2007 Paulo Roma 1.0.0pre12-3 - Added BR libXtst-devel - Included my imwheelrc in /etc/X11/imwheel * Fri Feb 16 2007 Paulo Roma - Rebuilt for Fedora 6. - Fixed spec file. * Thu May 18 2006 Paulo Roma - Rebuilt for Fedora 4. * Sun Jun 04 2000 - Initial Version (based off the Mandrake 6 spec file by Peter Putzer)