ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Spec file for newer i2c-tools-3.0.2.


From: Stuart Hughes
Subject: Re: [Ltib] Spec file for newer i2c-tools-3.0.2.
Date: Fri, 19 Dec 2008 10:26:44 +0000

On Thu, 2008-12-18 at 15:59 -0500, Robert P. J. Day wrote:
> %define pfx /opt/freescale/rootfs/%{_target_cpu}
> 
> Summary         : i2c tools
> Name            : i2c-tools
> Version         : 3.0.2
> Release         : 1
> License         : GPL
> Vendor          : Freescale
> Packager        : Stuart Hughes
> Group           : Development/Tools
> URL             : http://www.lm-sensors.org/wiki/I2CTools
> Source          : i2c-tools-3.0.2.tar.bz2
> BuildRoot       : %{_tmppath}/%{name}
> Prefix          : %{pfx}
> 
> %Description
> %{summary}
> 
> %Prep
> %setup
> 
> %Build
> make
> 
> %Install
> rm -rf $RPM_BUILD_ROOT
> mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/sbin
> for i in i2cdetect i2cset i2cget i2cdump
> do
>      cp -a tools/$i $RPM_BUILD_ROOT/%{pfx}/usr/sbin/$i
> done
> 
> %Clean
> rm -rf $RPM_BUILD_ROOT
> 
> %Files
> %defattr(-,root,root)
> %{pfx}/*
> 
> =================== cut here =================
> 
>    Observations on the above:
> 
> * I2C tools are now maintained at a different site.
> 
> * Unlike 2.8.1, the utilities are now built in a "tools"
>    subdirectory.
> 
> * Unlike the existing spec file for 2.8.1, I prefer to install
>    non-critical utilities in /usr/sbin as opposed to /sbin, since
>    that standard is used by a number of Linux distros.
> 
> Other than that, this appears to build just fine.  Comments?
> 

Agreed on all points, looks good to me.  Can you briefly say why you
wanted to upgrade it though.

Regards, Stuart







reply via email to

[Prev in Thread] Current Thread [Next in Thread]