Compare commits

..

No commits in common. "7bd44caa2557da2ac039f1819015f78b4c8571d8" and "3e3904610eb1582d8f499dea7cdee656f98389f0" have entirely different histories.

4 changed files with 12 additions and 21 deletions

BIN
i2c-tools-4.1.tar.xz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,8 @@
Name: i2c-tools
Version: 4.3
Release: 4
Version: 4.1
Release: 1
Summary: A heterogeneous set of I2C tools for Linux
License: GPL-2.0-or-later and LGPL-2.1-only
License: GPLv2+ LGPLv2+
URL: https://i2c.wiki.kernel.org/index.php/I2C_Tools
Source0: https://www.kernel.org/pub/software/utils/i2c-tools/%{name}-%{version}.tar.xz
@ -70,6 +70,9 @@ A collection of tools written in perl for use with i2c devices.
%build
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" BUILD_STATIC_LIB=0 EXTRA=eeprog
pushd eepromer
make CFLAGS="$RPM_OPT_FLAGS -I../include" LDFLAGS="$RPM_LD_FLAGS"
popd
pushd py-smbus
CFLAGS="$RPM_OPT_FLAGS -I../include" LDFLAGS="$RPM_LD_FLAGS" \
%{__python3} setup.py build -b build-py3
@ -79,7 +82,12 @@ popd
%install
%make_install PREFIX=%{_prefix} BUILD_STATIC_LIB=0 \
EXTRA=eeprog libdir=%{_libdir}
install -m 755 eepromer/{eepromer,eeprom} \
$RPM_BUILD_ROOT%{_sbindir}
install -m 644 eepromer/{eepromer,eeprom}.8 \
$RPM_BUILD_ROOT%{_mandir}/man8
# Rename README file
mv eepromer/README eepromer/README.programs
mv py-smbus/README py-smbus/README.py
mv eeprom/README eeprom/README.perl
@ -136,8 +144,8 @@ exit 0
%{_mandir}/man8/i2c*.8.gz
%{_mandir}/man8/eepro*.8.gz
%{_mandir}/man1/decode-*.1.gz
%{_mandir}/man3/libi2c.3.*
%doc CHANGES README
%doc eepromer/README*
%doc eeprog/README.eeprog
%doc py-smbus/README.py
%doc eeprom/README.perl
@ -153,18 +161,6 @@ exit 0
%{_sbindir}/i2c-stub*
%changelog
* Tue Jul 30 2024 wangxiao <wangxiao184@h-partners.com> - 4.3-4
- update release
* Sun Apr 24 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 4.3-3
- update license
* Wed Mar 30 2022 liusirui <liusirui@huawei.com> - 4.3-2
- add back missing README files
* Tue Nov 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 4.3-1
- Upgrade to Version 4.3
* Fri Jan 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-1
- Upgrade to Version 4.1

View File

@ -1,5 +0,0 @@
version_control: git
src_repo: https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git
tag_prefix: ^v
seperator: .