File i2c-tools.spec of Package i2c-tools

# spec file for package i2c-tools
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           i2c-tools
Version:        3.1.1
Release:        0
Summary:        A heterogeneous set of I2C tools for Linux
License:        GPL-2.0+
Group:          Development/Tools/Other
Requires:       udev
Recommends:     modules
Patch0:         i2c-tools-r6250-ddr3-fix-ext-temp-refresh.diff
Patch90:        i2c-tools-hackweek-9-dependencies.diff
Patch91:        i2c-tools-hackweek-9-improve-DDR3-support.diff
Patch92:        i2c-tools-r6053-Add-smbus-header.patch
Patch93:        i2c-tools-r6048-Move-SMBus-helper-functions.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExcludeArch:    s390 s390x

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.

    Frodo Looijaard
    Philip Edelbrock
    Mark Studebaker
    Jean Delvare <>

%setup -q
%patch0 -p1
%patch90 -p1
%patch91 -p1
%patch92 -p1
%patch93 -p1

make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"

make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr
# cleanup
rm -f $RPM_BUILD_ROOT/usr/bin/decode-edid

%dir /usr/include/i2c
%doc /usr/share/man/man1/*.1.gz
%doc /usr/share/man/man8/*.8.gz

openSUSE Build Service is sponsored by