2007-10-24 02:33:04 +00:00
|
|
|
#
|
2011-10-04 08:43:19 +00:00
|
|
|
# spec file for package i2c-tools
|
2007-10-24 02:33:04 +00:00
|
|
|
#
|
2017-07-06 08:19:00 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-10-24 02:33:04 +00:00
|
|
|
#
|
2008-11-17 16:01:40 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-10-24 02:33:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-08 21:45:45 +00:00
|
|
|
|
2007-10-24 02:33:04 +00:00
|
|
|
Name: i2c-tools
|
2015-11-27 12:55:02 +00:00
|
|
|
Version: 3.1.2
|
2012-02-13 14:54:19 +00:00
|
|
|
Release: 0
|
2007-10-24 02:33:04 +00:00
|
|
|
Summary: A heterogeneous set of I2C tools for Linux
|
2012-02-13 14:54:19 +00:00
|
|
|
License: GPL-2.0+
|
2007-10-24 02:33:04 +00:00
|
|
|
Group: Development/Tools/Other
|
2008-11-17 16:01:40 +00:00
|
|
|
Requires: udev
|
2008-11-20 14:26:51 +00:00
|
|
|
Recommends: modules
|
2017-07-06 10:57:50 +00:00
|
|
|
Url: https://i2c.wiki.kernel.org/index.php/I2C_Tools
|
2017-07-06 08:19:00 +00:00
|
|
|
Source0: https://www.kernel.org/pub/software/utils/i2c-tools/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://www.kernel.org/pub/software/utils/i2c-tools/%{name}-%{version}.tar.sign
|
2013-04-18 08:03:17 +00:00
|
|
|
Patch90: i2c-tools-hackweek-9-dependencies.diff
|
|
|
|
Patch91: i2c-tools-hackweek-9-improve-DDR3-support.diff
|
2015-10-14 15:35:39 +00:00
|
|
|
Patch92: i2c-tools-r6053-Add-smbus-header.patch
|
|
|
|
Patch93: i2c-tools-r6048-Move-SMBus-helper-functions.patch
|
2017-07-06 10:57:50 +00:00
|
|
|
Patch94: decode-dimms-correctly-check-for-out-of-bounds-vendor-id.patch
|
2007-10-24 02:33:04 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2008-11-20 14:26:51 +00:00
|
|
|
%setup -q
|
2013-04-18 08:03:17 +00:00
|
|
|
%patch90 -p1
|
|
|
|
%patch91 -p1
|
2015-10-14 15:35:39 +00:00
|
|
|
%patch92 -p1
|
|
|
|
%patch93 -p1
|
2017-07-06 10:57:50 +00:00
|
|
|
%patch94 -p1
|
2007-10-24 02:33:04 +00:00
|
|
|
|
|
|
|
%build
|
2011-10-04 08:43:19 +00:00
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
|
2007-10-24 02:33:04 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr
|
|
|
|
# cleanup
|
2008-04-08 21:45:45 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/decode-edid
|
2007-10-24 02:33:04 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/*
|
|
|
|
/usr/sbin/*
|
2015-10-14 15:35:39 +00:00
|
|
|
%dir /usr/include/i2c
|
|
|
|
/usr/include/i2c/smbus.h
|
2014-02-20 16:39:31 +00:00
|
|
|
%doc /usr/share/man/man1/*.1.gz
|
2007-10-24 02:33:04 +00:00
|
|
|
%doc /usr/share/man/man8/*.8.gz
|
2008-04-08 21:45:45 +00:00
|
|
|
|
2007-10-24 02:33:04 +00:00
|
|
|
%changelog
|