Le Lundi 22 Mai 2006 12:31, Marcus Meissner a écrit :
Care to show us the whole .spec file again?
Ciao, Marcus
work fine now.....
i show you the spec file.... you can maybe said me some tips to improve
it.....
#
# Define some variables here
#
%define version 1.0.0pre12
%define prefix /usr/X11
%define cfg /etc/X11
%define ins /usr/bin/install
%define bz2 /usr/bin/bzip2
#
# imwheel.spec
# Marc Collin
# 21/05/2006
#
Name: imwheel
Version: %{version}
Release: 1
License: GPL
Summary: A utility to make wheel mice work under X
Group: User Interface/X Hardware Support
Source: http://www.jonatkins.org/imwheel/files/imwheel-%{version}.tar.gz
URL: http://www.jonatkins.org/imwheel
Packager: Marc Collin
BuildRequires: xorg-x11-libs, xorg-x11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the imwheel utility for X. It supports a variety of
wheel mice including the MS Intellimouse.
%prep
%setup
%build
./configure --bindir=%{prefix}/bin --disable-gpm --sysconfdir=%{cfg}
make
%install
rm -rf $RPM_BUILD_ROOT
install -c -d -o root -g root -m 0755 $RPM_BUILD_ROOT%{prefix}/bin
install -c -o root -g root -m 0755 imwheel
$RPM_BUILD_ROOT%{prefix}/bin/imwheel
install -c -d -o root -g root -m 0755 $RPM_BUILD_ROOT%{prefix}/man/man1
install -c -o root -g root -m 0644 imwheel.1
$RPM_BUILD_ROOT%{prefix}/man/man1/imwheel.1x
%{bz2} -9 $RPM_BUILD_ROOT%{prefix}/man/man1/imwheel.1x
install -c -d -o root -g root -m 0755 $RPM_BUILD_ROOT/%{cfg}
install -c -o root -g root -m 0644 imwheelrc $RPM_BUILD_ROOT/%{cfg}/imwheelrc
%files
%config(noreplace) %{cfg}/imwheelrc
%{prefix}/bin/imwheel
%{prefix}/man/man1/imwheel.1x.bz2
%doc BUGS NEWS COPYING EMACS README TODO AUTHORS INSTALL
%clean
%post
%postun
%Changelog
* Sun May 21 2006
-- Initial Version (based off the Suse 10.1 spec file by Marc Collin)