rpms/i2c-tools/devel i2c-tools.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Tue Nov 20 20:44:52 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/i2c-tools/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6802/devel

Modified Files:
	.cvsignore sources 
Added Files:
	i2c-tools.spec 
Log Message:
initial i2c-tools import



--- NEW FILE i2c-tools.spec ---
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 Hans de Goede <j.w.r.degoede at hhs>, the Fedora project.
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

Name:           i2c-tools
Version:        3.0.0
Release:        1%{?dist}
Summary:        A heterogeneous set of I2C tools for Linux
Group:          Applications/System
License:        GPLv2+
URL:            http://www.lm-sensors.org/wiki/I2CTools
Source0:        http://dl.lm-sensors.org/i2c-tools/releases/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# for /lib/udev/devices ownership
Requires:       udev
ExcludeArch:    s390 s390x

%description
This package contains a heterogeneous set of I2C tools for Linux: a bus
probing tool, a chip dumper, register-level access helpers, EEPROM
decoding scripts, and more.


%package eepromer
Summary:        Programs for reading / writing i2c / smbus eeproms
Group:          Applications/System
# For the device nodes
Requires:       %{name} = %{version}-%{release}

%description eepromer
Programs for reading / writing i2c / smbus eeproms. Notice that writing the
eeproms in your system is very dangerous and is likely to render your system
unusable. Do not install, let alone use this, unless you really, _really_ know
what you are doing.


%prep
%setup -q 


%build
make CFLAGS="$RPM_OPT_FLAGS"
pushd eepromer
make CFLAGS="$RPM_OPT_FLAGS -I../include"
popd


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
install -m 755 eepromer/{eepromer,eeprom,eeprog} \
  $RPM_BUILD_ROOT%{_sbindir}
# cleanup
rm $RPM_BUILD_ROOT%{_bindir}/decode-edid.pl
# Remove userland kernel headers, belong in glibc-kernheaders.
rm -rf $RPM_BUILD_ROOT%{_includedir}/linux


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc CHANGES COPYING README
# Not created automatically as i2c-dev does not get autoloaded, once created
# manually, i2c-dev will get loaded by kmod as needed once bz 380971 is fixed
%attr(660, root, root) %dev(c, 89, 0) /lib/udev/devices/i2c-0
%attr(660, root, root) %dev(c, 89, 0) /lib/udev/devices/i2c-1
%attr(660, root, root) %dev(c, 89, 0) /lib/udev/devices/i2c-2
%attr(660, root, root) %dev(c, 89, 0) /lib/udev/devices/i2c-3
%{_bindir}/*
%{_sbindir}/*
%exclude %{_sbindir}/eepro*
%{_mandir}/man8/*.8.gz

%files eepromer
%defattr(-,root,root,-)
%doc eepromer/README*
%{_sbindir}/eepro*


%changelog
* Tue Nov 13 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 3.0.0-1
- Initial Fedora package, based on Suse specfile

* Mon Oct 15 2007 - jdelvare at suse.de
- Initial release.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/i2c-tools/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	18 Nov 2007 18:54:56 -0000	1.1
+++ .cvsignore	20 Nov 2007 20:44:19 -0000	1.2
@@ -0,0 +1 @@
+i2c-tools-3.0.0.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/i2c-tools/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	18 Nov 2007 18:54:56 -0000	1.1
+++ sources	20 Nov 2007 20:44:19 -0000	1.2
@@ -0,0 +1 @@
+aeaa1d5d7b35faf096e5663c5fd823dc  i2c-tools-3.0.0.tar.bz2




More information about the fedora-extras-commits mailing list