[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Spec file for newer i2c-tools-3.0.2.
From: |
Robert P. J. Day |
Subject: |
[Ltib] Spec file for newer i2c-tools-3.0.2. |
Date: |
Thu, 18 Dec 2008 15:59:29 -0500 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.6) |
%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?
rday
- [Ltib] Spec file for newer i2c-tools-3.0.2.,
Robert P. J. Day <=