2007-11-20 20:44:19 +00:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (c) 2007 Hans de Goede <j.w.r.degoede@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
|
2017-07-19 18:38:53 +00:00
|
|
|
Version: 3.1.2
|
|
|
|
Release: 1%{?dist}
|
2007-11-20 20:44:19 +00:00
|
|
|
Summary: A heterogeneous set of I2C tools for Linux
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2+
|
2017-07-19 18:38:53 +00:00
|
|
|
URL: https://i2c.wiki.kernel.org/index.php/I2C_Tools
|
|
|
|
Source0: https://www.kernel.org/pub/software/utils/i2c-tools/%{name}-%{version}.tar.xz
|
2013-07-03 16:32:09 +00:00
|
|
|
|
2008-03-05 21:23:11 +00:00
|
|
|
# for /etc/udev/makedev.d resp /etc/modprobe.d ownership
|
|
|
|
Requires: udev module-init-tools
|
2016-06-24 08:46:47 +00:00
|
|
|
BuildRequires: perl-generators
|
2013-07-03 16:32:09 +00:00
|
|
|
BuildRequires: python-devel
|
2007-11-20 20:44:19 +00:00
|
|
|
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.
|
|
|
|
|
2013-06-01 14:47:46 +00:00
|
|
|
%package python
|
2013-07-03 16:32:09 +00:00
|
|
|
Summary: Python bindings for Linux SMBus access through i2c-dev
|
2013-06-01 14:47:46 +00:00
|
|
|
Group: Applications/System
|
|
|
|
|
|
|
|
%description python
|
2007-11-20 20:44:19 +00:00
|
|
|
|
2013-10-09 21:09:02 +00:00
|
|
|
%package perl
|
|
|
|
Summary: i2c tools written in Perl
|
|
|
|
Group: Applications/System
|
|
|
|
|
|
|
|
%description perl
|
|
|
|
|
2007-11-20 20:44:19 +00:00
|
|
|
%prep
|
2013-06-01 14:47:46 +00:00
|
|
|
%setup -q
|
2007-11-20 20:44:19 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
pushd eepromer
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -I../include"
|
|
|
|
popd
|
2013-06-01 14:47:46 +00:00
|
|
|
pushd py-smbus
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -I../include" %{__python} setup.py build
|
|
|
|
popd
|
2007-11-20 20:44:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
|
|
|
|
install -m 755 eepromer/{eepromer,eeprom,eeprog} \
|
|
|
|
$RPM_BUILD_ROOT%{_sbindir}
|
2013-07-03 19:21:47 +00:00
|
|
|
install -m 644 eepromer/{eepromer,eeprom,eeprog}.8 \
|
|
|
|
$RPM_BUILD_ROOT%{_mandir}/man8
|
2013-06-01 14:47:46 +00:00
|
|
|
pushd py-smbus
|
|
|
|
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
|
|
|
|
popd
|
2007-11-20 20:44:19 +00:00
|
|
|
# cleanup
|
2008-12-11 21:26:26 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/decode-edid.pl
|
2007-11-20 20:44:19 +00:00
|
|
|
# Remove userland kernel headers, belong in glibc-kernheaders.
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_includedir}/linux
|
2012-02-20 21:59:40 +00:00
|
|
|
# Remove unpleasant DDC tools. KMS already exposes the EDID block in sysfs,
|
|
|
|
# and edid-decode is a more complete tool than decode-edid.
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/{ddcmon,decode-edid}
|
2008-03-05 21:23:11 +00:00
|
|
|
# for i2c-dev ondemand loading through kmod
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
|
|
|
|
echo "alias char-major-89-* i2c-dev" > \
|
2009-04-13 22:27:51 +00:00
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/i2c-dev.conf
|
2008-03-05 21:23:11 +00:00
|
|
|
# for /dev/i2c-# creation (which are needed for kmod i2c-dev autoloading)
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/makedev.d
|
|
|
|
for (( i = 0 ; i < 8 ; i++ )) do
|
|
|
|
echo "i2c-$i" >> $RPM_BUILD_ROOT%{_sysconfdir}/udev/makedev.d/99-i2c-dev.nodes
|
|
|
|
done
|
2007-11-20 20:44:19 +00:00
|
|
|
|
2015-10-08 16:03:35 +00:00
|
|
|
# auto-load i2c-dev after reboot
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modules-load.d
|
|
|
|
echo 'i2c-dev' > $RPM_BUILD_ROOT%{_prefix}/lib/modules-load.d/%{name}.conf
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
# load i2c-dev after the first install
|
|
|
|
if [ "$1" = 1 ] ; then
|
|
|
|
/usr/sbin/modprobe i2c-dev
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2007-11-20 20:44:19 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CHANGES COPYING README
|
2009-04-13 22:27:51 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/modprobe.d/i2c-dev.conf
|
2008-03-05 21:23:11 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/udev/makedev.d/99-i2c-dev.nodes
|
2007-11-20 20:44:19 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%exclude %{_sbindir}/eepro*
|
2013-10-09 21:09:02 +00:00
|
|
|
%exclude %{_sbindir}/i2c-stub*
|
2007-11-20 20:44:19 +00:00
|
|
|
%{_mandir}/man8/*.8.gz
|
2013-07-03 19:21:47 +00:00
|
|
|
%exclude %{_mandir}/man8/eepro*
|
2013-10-09 21:09:02 +00:00
|
|
|
%exclude %{_mandir}/man8/i2c-stub-from-dump.8.gz
|
2015-10-08 16:03:35 +00:00
|
|
|
%{_prefix}/lib/modules-load.d/%{name}.conf
|
2007-11-20 20:44:19 +00:00
|
|
|
|
|
|
|
%files eepromer
|
|
|
|
%doc eepromer/README*
|
|
|
|
%{_sbindir}/eepro*
|
2013-07-03 19:21:47 +00:00
|
|
|
%{_mandir}/man8/eepro*.8.gz
|
2007-11-20 20:44:19 +00:00
|
|
|
|
2013-06-01 14:47:46 +00:00
|
|
|
%files python
|
|
|
|
%doc py-smbus/README
|
|
|
|
#/usr/lib64/python2.7/site-packages/smbus-1.1-py2.7.egg-info
|
|
|
|
#/usr/lib64/python2.7/site-packages/smbus.so
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2013-10-09 21:09:02 +00:00
|
|
|
%files perl
|
|
|
|
%{_bindir}/decode-*
|
|
|
|
%{_sbindir}/i2c-stub*
|
|
|
|
%{_mandir}/man1/decode-*.1.gz
|
|
|
|
%{_mandir}/man8/i2c-stub-from-dump.8.gz
|
2013-06-01 14:47:46 +00:00
|
|
|
|
2007-11-20 20:44:19 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-07-19 18:38:53 +00:00
|
|
|
* Wed Jul 19 2017 Ondřej Lysoněk <olysonek@redhat.com> - 3.1.2-1
|
|
|
|
- New version
|
|
|
|
- Updated upstream and source code URL
|
|
|
|
- Dropped patches accepted by upstream
|
|
|
|
|
2017-02-10 16:10:47 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-07-19 07:26:46 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-17
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 00:17:44 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-10-08 16:03:35 +00:00
|
|
|
* Thu Oct 08 2015 Jaromir Capik <jcapik@redhat.com> - 3.1.0-15
|
|
|
|
- Adding i2c-dev auto-load in th %%post and modules-load.d (#913203)
|
|
|
|
|
2015-06-17 11:05:32 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-16 20:55:20 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 21:39:08 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-10-09 21:09:02 +00:00
|
|
|
* Wed Oct 9 2013 Peter Robinson <pbrobinson@fedoraproject.org> 3.1.0-11
|
|
|
|
- Split out perl tools to a separate subpackage
|
|
|
|
|
2013-10-04 10:07:21 +00:00
|
|
|
* Fri Oct 04 2013 Jaromir Capik <jcapik@redhat.com> - 3.1.0-10
|
|
|
|
- Making the decode-* man pages installable with Makefile
|
|
|
|
|
2013-10-03 16:19:51 +00:00
|
|
|
* Thu Oct 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.1.0-9
|
|
|
|
- Introducing man pages for decode-* binaries
|
|
|
|
- Cleaning the spec
|
|
|
|
|
2013-08-03 18:59:37 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-17 13:24:38 +00:00
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.1.0-7
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-07-03 19:21:47 +00:00
|
|
|
* Wed Jul 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.1.0-6
|
|
|
|
- Installing the man pages and putting them in the files section
|
|
|
|
|
2013-07-03 16:32:09 +00:00
|
|
|
* Wed Jul 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.1.0-5
|
|
|
|
- Introducing man pages for binaries in the eepromer subpackage
|
|
|
|
- Introducing -r switch in the i2cset help
|
|
|
|
|
2013-06-01 14:47:46 +00:00
|
|
|
* Sat Jun 1 2013 Henrik Nordstrom <henrik@henriknordstrom.net> - 3.1.0-4
|
|
|
|
- Package python interface
|
|
|
|
|
2013-02-14 01:48:22 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 14:19:13 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-20 21:59:40 +00:00
|
|
|
* Mon Feb 20 2012 Adam Jackson <ajax@redhat.com> 3.1.0-1
|
|
|
|
- i2c-tools 3.1.0
|
|
|
|
|
2012-01-13 05:34:13 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-07-05 21:14:59 +00:00
|
|
|
* Tue Jul 05 2011 Adam Jackson <ajax@redhat.com> 3.0.3-1
|
|
|
|
- i2c-tools 3.0.3
|
|
|
|
|
2011-02-09 11:41:36 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-07-25 02:58:40 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-13 22:27:51 +00:00
|
|
|
* Mon Apr 13 2009 Adam Jackson <ajax@redhat.com> 3.0.2-3
|
|
|
|
- mv /etc/modprobe.d/i2c-dev /etc/modprobe.d/i2c-dev.conf (#495455)
|
|
|
|
|
2009-02-25 06:22:50 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-11 21:26:26 +00:00
|
|
|
* Thu Dec 11 2008 Adam Jackson <ajax@redhat.com> 3.0.2-1
|
|
|
|
- i2c-tools 3.0.2
|
|
|
|
|
2008-03-05 21:23:11 +00:00
|
|
|
* Wed Mar 5 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-3
|
|
|
|
- Change /dev/i2c-# creation from /lib/udev/devices to /etc/udev/makedev.d
|
|
|
|
usage
|
|
|
|
- Add an /etc/modprobe.d/i2c-dev file to work around bug 380971
|
|
|
|
|
2008-02-19 08:37:09 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0.0-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-11-20 20:44:19 +00:00
|
|
|
* Tue Nov 13 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.0-1
|
|
|
|
- Initial Fedora package, based on Suse specfile
|
|
|
|
|
|
|
|
* Mon Oct 15 2007 - jdelvare@suse.de
|
|
|
|
- Initial release.
|