!7 update verion to 4.3

From: @zhouwenpei
Reviewed-by: @liqingqing_1229
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2021-11-30 11:25:55 +00:00 committed by Gitee
commit eff11a3eae
3 changed files with 5 additions and 14 deletions

Binary file not shown.

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

Binary file not shown.

View File

@ -1,5 +1,5 @@
Name: i2c-tools Name: i2c-tools
Version: 4.1 Version: 4.3
Release: 1 Release: 1
Summary: A heterogeneous set of I2C tools for Linux Summary: A heterogeneous set of I2C tools for Linux
License: GPLv2+ LGPLv2+ License: GPLv2+ LGPLv2+
@ -70,9 +70,7 @@ A collection of tools written in perl for use with i2c devices.
%build %build
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" BUILD_STATIC_LIB=0 EXTRA=eeprog 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" make CFLAGS="$RPM_OPT_FLAGS -I../include" LDFLAGS="$RPM_LD_FLAGS"
popd
pushd py-smbus pushd py-smbus
CFLAGS="$RPM_OPT_FLAGS -I../include" LDFLAGS="$RPM_LD_FLAGS" \ CFLAGS="$RPM_OPT_FLAGS -I../include" LDFLAGS="$RPM_LD_FLAGS" \
%{__python3} setup.py build -b build-py3 %{__python3} setup.py build -b build-py3
@ -82,14 +80,6 @@ popd
%install %install
%make_install PREFIX=%{_prefix} BUILD_STATIC_LIB=0 \ %make_install PREFIX=%{_prefix} BUILD_STATIC_LIB=0 \
EXTRA=eeprog libdir=%{_libdir} 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
pushd py-smbus pushd py-smbus
%{__python3} setup.py build -b build-py3 install --skip-build --root=$RPM_BUILD_ROOT %{__python3} setup.py build -b build-py3 install --skip-build --root=$RPM_BUILD_ROOT
@ -144,11 +134,9 @@ exit 0
%{_mandir}/man8/i2c*.8.gz %{_mandir}/man8/i2c*.8.gz
%{_mandir}/man8/eepro*.8.gz %{_mandir}/man8/eepro*.8.gz
%{_mandir}/man1/decode-*.1.gz %{_mandir}/man1/decode-*.1.gz
%{_mandir}/man3/libi2c.3.*
%doc CHANGES README %doc CHANGES README
%doc eepromer/README*
%doc eeprog/README.eeprog %doc eeprog/README.eeprog
%doc py-smbus/README.py
%doc eeprom/README.perl
%files eepromer %files eepromer
%{_sbindir}/eepro* %{_sbindir}/eepro*
@ -161,6 +149,9 @@ exit 0
%{_sbindir}/i2c-stub* %{_sbindir}/i2c-stub*
%changelog %changelog
* 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 * Fri Jan 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-1
- Upgrade to Version 4.1 - Upgrade to Version 4.1