i2c-tools/i2c-tools.spec
Jean Delvare eae9978104 Backport fixes from upstream 3.1 branch:
- i2c-tools-r6063-dont-choke-when-no-eeprom.diff: Don't choke when
  no EEPROM is found.
- i2c-tools-r6106-vendors-JEP106AG.diff,
- i2c-tools-r6107-vendors-JEP106AJ.diff: Update vendor list based
   on Jedec documents JEP106AG and JEP106AJ.
- i2c-tools-r6108-remove-duplicate-ns.diff: Remove duplicate "ns"
  in SDR timings.
- i2c-tools-r6109-fix-decoding-revision.diff: Fix decoding of SDR
  SPD revision.
- i2c-tools-r6110-i2cdetect-clarify-probing.diff: Clarify the SMBus
  commands used for probing by default.
- i2c-tools-r6121-typo-sprint.diff: Prevent hang on reserved DDR3
  module type, caused by a typo in function name.
- i2c-tools-r6122-more-DDR3-module-types.diff: Decode more DDR3
  module types.

OBS-URL: https://build.opensuse.org/package/show/Base:System/i2c-tools?expand=0&rev=21
2013-02-13 13:55:45 +00:00

82 lines
2.3 KiB
RPMSpec

#
# spec file for package i2c-tools
#
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: i2c-tools
Url: http://www.lm-sensors.org/wiki/I2CTools
Version: 3.1.0
Release: 0
Summary: A heterogeneous set of I2C tools for Linux
License: GPL-2.0+
Group: Development/Tools/Other
Requires: udev
Recommends: modules
Source0: i2c-tools-%{version}.tar.bz2
Source1: i2c-tools-%{version}.tar.bz2.sig
Patch1: i2c-tools-r6063-dont-choke-when-no-eeprom.diff
Patch2: i2c-tools-r6106-vendors-JEP106AG.diff
Patch3: i2c-tools-r6107-vendors-JEP106AJ.diff
Patch4: i2c-tools-r6108-remove-duplicate-ns.diff
Patch5: i2c-tools-r6109-fix-decoding-revision.diff
Patch6: i2c-tools-r6110-i2cdetect-clarify-probing.diff
Patch7: i2c-tools-r6121-typo-sprint.diff
Patch8: i2c-tools-r6122-more-DDR3-module-types.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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.
Authors:
--------
Frodo Looijaard
Philip Edelbrock
Mark Studebaker
Jean Delvare <khali@linux-fr.org>
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
%install
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr
# cleanup
rm -f $RPM_BUILD_ROOT/usr/bin/decode-edid
%files
%defattr(-,root,root)
/usr/bin/*
/usr/sbin/*
/usr/include/linux/*
%doc /usr/share/man/man8/*.8.gz
%changelog