- Update to version 4.4:
* tools: Use getopt Implement and document option -h * i2cdetect: Display more functionality bits with option -F * i2cdump: Remove support for SMBus block mode * i2cget: Document SMBus block mode * i2ctransfer: Sort command line options and add to help text Add an option to print binary data Drop redundant variable arg_idx * py-smbus: Use setuptools instead of distutils OBS-URL: https://build.opensuse.org/package/show/Base:System/i2c-tools?expand=0&rev=65
This commit is contained in:
commit
5ea5f5d1a2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
16
i2c-tools-4.3.tar.sign
Normal file
16
i2c-tools-4.3.tar.sign
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEfKafRGDxvcQf0shYpVJrm7PNTmoFAmEACxgACgkQpVJrm7PN
|
||||
TmodERAAiSyCnQjCLlKmsxrP7veNWto1sAh4J3w5MUoGdNUU1G7eVpaFbhQeL+1y
|
||||
BO/NqIW5eDLRippl4cqXefMxYsAV+cMjO+vq2ldp3DyPcVp/nFcnfvYxvf9U7OVL
|
||||
FvZ9cL3MI+RgPt19MbgAogTvKH/jyYpZWnFYnruQixX2lXFruLkvMevaaWtNeLpQ
|
||||
KcfuFXlL51zIhL5591CZMzVAWitkB21Mf6XhQFXAqX0E3eKcCB/9H5TTG8h+m2Y3
|
||||
xiz7CUHwZ/MmYu5oM446FPfiiisYUub+bApRa5eKeHmpKvMH0bkhlrW8wccQ2HrF
|
||||
Bcediv8PAke/uGA4HAPHRm3COeUq0E6FNy2HYpl6wL8iPBH86Pgz9R1QN858b17v
|
||||
+9leaiwpovMDCcSRvV+9IuUbYfb4V6cLKhnmMT25jc4JNG5hh/nV2uf6P568LBjv
|
||||
O9be5EfzKKoJy/h0KLlcGQtuzp/9FLiBpOiojXZ1hH3+QccZBG16Y07BTrfBir1m
|
||||
NKhaSVq1qw7VsLKYxhnYbmxaUAILPz+93E79zgsQSeZVz11U23ffZXxXc5RERpy+
|
||||
cH28jaxABmt4mJOWy8if6jd0c6RdOMf6Hvf4zp4kdmzN972NUZBnsuDHGeztTbH5
|
||||
2jHd6GEx3xIKlnlV0+8fxUOi228jhCz27bHkeHR24Bagker/Hb8=
|
||||
=u4KO
|
||||
-----END PGP SIGNATURE-----
|
3
i2c-tools-4.3.tar.xz
Normal file
3
i2c-tools-4.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1f899e43603184fac32f34d72498fc737952dbc9c97a8dd9467fadfdf4600cf9
|
||||
size 81276
|
16
i2c-tools-4.4.tar.sign
Normal file
16
i2c-tools-4.4.tar.sign
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEfKafRGDxvcQf0shYpVJrm7PNTmoFAmcH3mAACgkQpVJrm7PN
|
||||
TmqECg/9Elxkk86c7F5M3l55r7xjoE9KiVqYzCg1dVDAiVkoRilvFqPAwYUaNuYE
|
||||
aN3YCSK2FFf0TUn7VgwSgc6bSK5m8lt8+p2MVbyYwmEGJ2WdW/5vqcthhg7ZPwdD
|
||||
5UtQsqyLpgPEEG/9ODh8DxBX35Wr6/jM3YRY3cdWuXIyKAAspCj8jAvEZ/9A//d2
|
||||
zd9DRzrz/Iv2T5PtU2KZweEROCfIcVb1Cfi2UChou0qDH7dF7hakxuNIJSCFassD
|
||||
lC84qIZ36GCYeNyjlUBTvbEpJJFjivkqdDVVhj2TGZERGhkshVMOhmaskkxDqKOW
|
||||
TO2zT1gCabqRnRbIbatjyDup3xkRkVElOp3/TFVzj8y/MgcHJcH5yjfwoZrzuIoY
|
||||
TxhLl4TWLUeg+kISbRLsImb5ni1ss0TVNmCgN8s09EXTwMYfBWAj/Id54AILlEtS
|
||||
NCIMx03KnW+cZmi4CdTJH/scoXVPEWdtGjhLec1hkVAcv1D+++56d6bc4beqOtqZ
|
||||
AKc3FiSiLTpna3UySSnLcwIAE0OeVjvLq8QlBKo3ICMVCRnFjoThX7ZbZmpQmdmD
|
||||
W+z431ZxNcoWFle5nEFaHmiBlodwiNS4Xw90V1zyoLbWfSm39H9Ud60npajVxlnH
|
||||
SsT5iBQeY158rNjdvvZXilXzytFk5BURtud2fH3gvSsxUzkuvkM=
|
||||
=xqO/
|
||||
-----END PGP SIGNATURE-----
|
3
i2c-tools-4.4.tar.xz
Normal file
3
i2c-tools-4.4.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:458cb9e5d22f62ee9e596c22789fd327b8baa7027b0d337ccdab72762437d331
|
||||
size 81628
|
328
i2c-tools.changes
Normal file
328
i2c-tools.changes
Normal file
@ -0,0 +1,328 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 11:15:00 UTC 2024 - Jean Delvare <jdelvare@suse.com>
|
||||
|
||||
- Update to version 4.4:
|
||||
* tools: Use getopt
|
||||
Implement and document option -h
|
||||
* i2cdetect: Display more functionality bits with option -F
|
||||
* i2cdump: Remove support for SMBus block mode
|
||||
* i2cget: Document SMBus block mode
|
||||
* i2ctransfer: Sort command line options and add to help text
|
||||
Add an option to print binary data
|
||||
Drop redundant variable arg_idx
|
||||
* py-smbus: Use setuptools instead of distutils
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 4 15:07:28 UTC 2023 - Fabian Vogt <fvogt@suse.com>
|
||||
|
||||
- Drop Recommends: modules. It does no longer refer to what it was
|
||||
originally meant to (boo#1212837)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 8 06:24:12 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Enable build for s390 and s390x
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 27 13:30:03 UTC 2021 - Jean Delvare <jdelvare@suse.com>
|
||||
|
||||
- Update to version 4.3:
|
||||
* decode-dimms: Attempt to decode LPDDR3 modules
|
||||
* i2cdetect: Sort the bus list by number
|
||||
* i2cdump: Add range support to I2C block mode
|
||||
Deprecate SMBus block mode
|
||||
* i2cget: Add support for I2C block read
|
||||
Add support for SMBus block read
|
||||
* i2ctransfer: Reverted check for returned length from driver
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 08:40:11 UTC 2020 - Jean Delvare <jdelvare@suse.com>
|
||||
|
||||
- Update to version 4.2:
|
||||
* Restrict I2C addresses 0x03-0x07
|
||||
* Fix short writes with mask in i2cset
|
||||
* Support messages using I2C_M_RECV_LEN in i2ctransfer
|
||||
* Add check for returned length from driver in i2ctransfer
|
||||
* Many improvements to decode-dimms, for both DDR3 and DDR4
|
||||
* Updated list of memory vendors
|
||||
* Add at24 driver support to decode-vaio
|
||||
* Add a manual page for libi2c
|
||||
* Let i2c-stub-from-dump read dumps from hexdump -C
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 31 09:23:26 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Enable python binding python3-smbus for openSUSE Leap 15+
|
||||
and SLE15+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 11:08:28 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Replace old $RPM_* shell vars; use macros where they are
|
||||
normally used in other packages.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 3 16:30:06 CET 2018 - jdelvare@suse.com
|
||||
|
||||
- Update to version 4.1:
|
||||
* New option -a to allow using reserved address
|
||||
* Several build races fixed
|
||||
* Fix for potential buffer overflows
|
||||
* Support for DDR4 SDRAM memory
|
||||
* Updated list of memory vendors
|
||||
* Clarify library license
|
||||
* Fix error propagation in py-smbus
|
||||
- Removed obsolete build-lib-add-missing-dependencies.patch,
|
||||
build-tools-add-missing-dependencies.patch,
|
||||
decode-dimms-hackweek-DDR4.patch,
|
||||
i2cbusses-path-overflows.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 12 17:07:54 CET 2017 - jdelvare@suse.com
|
||||
|
||||
- build-tools-add-missing-dependencies.patch: Fix another random
|
||||
failure of parallel builds.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 6 16:01:02 CET 2017 - jdelvare@suse.com
|
||||
|
||||
- build-lib-add-missing-dependencies.patch: Fix random failure
|
||||
of parallel builds.
|
||||
- decode-dimms-hackweek-DDR4.patch: Add DDR4 SDRAM memory support
|
||||
to decode-dimms (Hackweek 0x10 project.)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 15:57:32 CET 2017 - jdelvare@suse.com
|
||||
|
||||
- i2cbusses-path-overflows.patch: Prevent buffer overflow of
|
||||
sysfs paths.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 11:45:40 CET 2017 - jdelvare@suse.com
|
||||
|
||||
- Update to version 4.0:
|
||||
* New library libi2c
|
||||
* Many fixes and improvements to decode-dimms
|
||||
* New manual pages and examples added to existing manual pages
|
||||
* New tool i2ctransfer
|
||||
- Removed obsolete decode-dimms-correctly-check-for-out-of-bounds-vendor-id.patch,
|
||||
i2c-tools-hackweek-9-dependencies.diff,
|
||||
i2c-tools-hackweek-9-improve-DDR3-support.diff,
|
||||
i2c-tools-r6048-Move-SMBus-helper-functions.patch,
|
||||
i2c-tools-r6053-Add-smbus-header.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 14:56:43 CEST 2017 - jdelvare@suse.com
|
||||
|
||||
- Add missing bug number in changes file (bsc#1041644).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 6 10:57:08 UTC 2017 - jdelvare@suse.com
|
||||
|
||||
- decode-dimms-correctly-check-for-out-of-bounds-vendor-id.patch:
|
||||
Fix recommended by upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 6 10:45:42 UTC 2017 - jdelvare@suse.com
|
||||
|
||||
- Update the URL.
|
||||
- Remove authors list from package description, it does not belong
|
||||
there.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 6 08:16:44 UTC 2017 - jdelvare@suse.com
|
||||
|
||||
- Point to the new download location.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 27 12:58:56 CEST 2016 - lchiquitto@suse.de
|
||||
|
||||
- Fix file conflict (i2c-dev.h) with linux-glibc-devel. (bsc#995536)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 27 12:51:19 UTC 2015 - jdelvare@suse.com
|
||||
|
||||
- Update to version 3.1.2:
|
||||
* Includes 1 backport we already had
|
||||
- Removed obsolete i2c-tools-r6250-ddr3-fix-ext-temp-refresh.diff
|
||||
(upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 14 14:32:05 UTC 2015 - dvaleev@suse.com
|
||||
|
||||
- Backport r6048 and r6053 in order to not conflict with
|
||||
linux-glibc-devel
|
||||
i2c-tools-r6048-Move-SMBus-helper-functions.patch
|
||||
i2c-tools-r6053-Add-smbus-header.patch
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 07:40:41 UTC 2014 - jdelvare@suse.com
|
||||
|
||||
- i2c-tools-r6250-ddr3-fix-ext-temp-refresh.diff: Fix DDR3 extended
|
||||
temp range refresh rate decoding.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 22 22:40:32 CET 2014 - jdelvare@suse.de
|
||||
|
||||
- Update to version 3.1.1:
|
||||
* Includes 13 packports we already had
|
||||
* Some additional fixes to decode-dimms
|
||||
* New manual pages for decode-dimms, decode-vaio
|
||||
* i2c-stub-from-dump tolerance on input dump format was improved
|
||||
- Removed obsolete i2c-tools-r6063-dont-choke-when-no-eeprom.diff,
|
||||
i2c-tools-r6106-vendors-JEP106AG.diff,
|
||||
i2c-tools-r6107-vendors-JEP106AJ.diff,
|
||||
i2c-tools-r6108-remove-duplicate-ns.diff,
|
||||
i2c-tools-r6109-fix-decoding-revision.diff,
|
||||
i2c-tools-r6110-i2cdetect-clarify-probing.diff,
|
||||
i2c-tools-r6121-typo-sprint.diff,
|
||||
i2c-tools-r6122-more-DDR3-module-types.diff,
|
||||
i2c-tools-r6151-space-before-MHz.diff,
|
||||
i2c-tools-r6152-fix-DDR3-tRAS-decoding.diff,
|
||||
i2c-tools-r6153-fix-DDR3-timings-rounding.diff,
|
||||
i2c-tools-r6154-round-down-PC3-numbers.diff and
|
||||
i2c-tools-r6157-vendors-JEP106AK.diff (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 18 10:01:03 CEST 2013 - jdelvare@suse.de
|
||||
|
||||
- i2c-tools-hackweek-9-dependencies.diff: Backport 2 helper
|
||||
functions needed by the following patch.
|
||||
- i2c-tools-hackweek-9-improve-DDR3-support.diff: Improve DDR3
|
||||
support. This was my hackweek 9 project.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 17 22:10:55 CEST 2013 - jdelvare@suse.de
|
||||
|
||||
Backport fixes from upstream 3.1 branch:
|
||||
- i2c-tools-r6151-space-before-MHz.diff: Print a space before "MHz"
|
||||
to improve readability.
|
||||
- i2c-tools-r6152-fix-DDR3-tRAS-decoding.diff: Fix DDR3 tRAS
|
||||
decoding.
|
||||
- i2c-tools-r6153-fix-DDR3-timings-rounding.diff: Fix DDR3 core
|
||||
timings rounding.
|
||||
- i2c-tools-r6154-round-down-PC3-numbers.diff: Round down PC3
|
||||
numbers to comply with Jedec.
|
||||
- i2c-tools-r6157-vendors-JEP106AK.diff: Update vendor list based
|
||||
on Jedec document JEP106AK.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 08:53:09 UTC 2013 - mmeister@suse.com
|
||||
|
||||
- Added url as source.
|
||||
Please see http://en.opensuse.org/SourceUrls
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 13 14:44:02 CET 2013 - jdelvare@suse.de
|
||||
|
||||
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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 13 14:00:15 CET 2013 - jdelvare@suse.de
|
||||
|
||||
- Don't build and ship programs to access I2C memory. We don't want
|
||||
to ship 3 tools doing the same thing, and none of these is good
|
||||
enough. There is a reason why upstream doesn't include them by
|
||||
default. Oh, and they don't even build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 13 10:47:43 UTC 2012 - coolo@suse.com
|
||||
|
||||
- patch license to follow spdx.org standard
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 20 12:58:18 UTC 2011 - duwe@suse.com
|
||||
|
||||
- Build and ship programs to access I2C memory.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 10:42:30 CET 2011 - jdelvare@suse.de
|
||||
|
||||
- Update to version 3.1.0:
|
||||
* Support for block writes (i2cset)
|
||||
* at24 driver support (decode-dimms)
|
||||
* Slightly improved DDR SDRAM support (decode-dimms)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 30 15:24:24 UTC 2011 - uli@suse.com
|
||||
|
||||
- cross-build fix: use %__cc macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 13 21:20:20 CET 2010 - jdelvare@suse.de
|
||||
|
||||
- Update to version 3.0.3:
|
||||
* Support for DDR3 SDRAM (decode-dimms)
|
||||
* Support for alternative output formats (decode-dimms)
|
||||
* Support for multiple dumps (i2c-stub-from-dump)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 31 12:37:02 UTC 2010 - jengelh@medozas.de
|
||||
|
||||
- Use %_smp_mflags
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 18 13:45:54 CET 2009 - jengelh@medozas.de
|
||||
|
||||
- Enable parallel building
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 31 13:11:14 CEST 2009 - jdelvare@suse.de
|
||||
|
||||
- List the signature as a source file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 27 15:20:24 CEST 2009 - jdelvare@suse.de
|
||||
|
||||
- Update to version 3.0.2:
|
||||
* Improved error handling
|
||||
* Buses can now be passed by name
|
||||
* Obsolete i2c-tools-r5388-prevent-perl-warning.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 18 18:42:41 CET 2008 - jdelvare@suse.de
|
||||
|
||||
- i2c-tools-r5388-prevent-perl-warning.patch: Prevent a perl 5.10.0
|
||||
warning about SEEK_SET and friends being redefined (#446098).
|
||||
- Add Recommends: modules.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 11 16:36:54 CET 2008 - ro@suse.de
|
||||
|
||||
- drop requires for "modules", not really needed here
|
||||
and launches a long rebuild chain
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 5 20:26:36 CEST 2008 - jdelvare@suse.de
|
||||
|
||||
- Drop static /dev/i2c-0 device node, it's no longer needed (if it
|
||||
ever really was.)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 8 14:50:35 CEST 2008 - jdelvare@suse.de
|
||||
|
||||
- Update to version 3.0.1:
|
||||
* New helper script i2c-stub-from-dump
|
||||
* Improvements to i2cdump and decode-dimms
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 15 09:56:36 CEST 2007 - jdelvare@suse.de
|
||||
|
||||
- Initial release.
|
||||
|
128
i2c-tools.spec
Normal file
128
i2c-tools.spec
Normal file
@ -0,0 +1,128 @@
|
||||
#
|
||||
# spec file for package i2c-tools
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# Python build is broken on SLE12 / Leap 42.x
|
||||
%if 0%{?sle_version} >= 150000 || 0%{?suse_version} >= 1500
|
||||
%bcond_without i2ctools_python_binding
|
||||
%else
|
||||
%bcond_with i2ctools_python_binding
|
||||
%endif
|
||||
|
||||
Name: i2c-tools
|
||||
Version: 4.4
|
||||
Release: 0
|
||||
Summary: A heterogeneous set of I2C tools for Linux
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Tools/Other
|
||||
Requires: udev
|
||||
URL: https://i2c.wiki.kernel.org/index.php/I2C_Tools
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
# 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 -n libi2c0
|
||||
Summary: I2C/SMBus bus access library
|
||||
License: LGPL-2.1-or-later
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libi2c0
|
||||
libi2c offers a way for applications to interact with the devices
|
||||
connected to the I2C or SMBus buses of the system.
|
||||
|
||||
%package -n libi2c0-devel
|
||||
Summary: Development files for the I2C/SMBus bus access library
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: glibc-devel
|
||||
Requires: libi2c0 = %{version}
|
||||
Provides: /usr/include/i2c/smbus.h
|
||||
|
||||
%description -n libi2c0-devel
|
||||
libi2c offers a way for applications to interact with the devices
|
||||
connected to the I2C or SMBus buses of the system.
|
||||
|
||||
%if %{with i2ctools_python_binding}
|
||||
%package -n python3-smbus
|
||||
Summary: Python binding for Device Tree
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Tools/Other
|
||||
|
||||
%description -n python3-smbus
|
||||
libi2c offers a way for applications to interact with the devices
|
||||
connected to the I2C or SMBus buses of the system.
|
||||
|
||||
Python binding part.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags}" CC="%{__cc}" BUILD_STATIC_LIB:=0
|
||||
%if %{with i2ctools_python_binding}
|
||||
cd py-smbus
|
||||
python3 setup.py build_ext
|
||||
%py3_build
|
||||
cd ..
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install PREFIX=/usr libdir=%{_libdir} BUILD_STATIC_LIB:=0
|
||||
# cleanup
|
||||
rm -f "%{buildroot}/usr/bin/decode-edid"
|
||||
%if %{with i2ctools_python_binding}
|
||||
cd py-smbus
|
||||
%python3_install
|
||||
cd ..
|
||||
%endif
|
||||
|
||||
%post -n libi2c0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libi2c0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_mandir}/man1/*.1.gz
|
||||
%{_mandir}/man3/*.3.gz
|
||||
%{_mandir}/man8/*.8.gz
|
||||
|
||||
%files -n libi2c0
|
||||
%{_libdir}/libi2c.so.0*
|
||||
|
||||
%files -n libi2c0-devel
|
||||
%{_libdir}/libi2c.so
|
||||
%dir %{_includedir}/i2c
|
||||
%{_includedir}/i2c/smbus.h
|
||||
|
||||
%if %{with i2ctools_python_binding}
|
||||
%files -n python3-smbus
|
||||
%{python3_sitearch}/*.so
|
||||
%{python3_sitearch}/*.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user