add back missing files
(cherry picked from commit aeb1d7a378d028f07385fb980966b923786b9d01)
This commit is contained in:
parent
eff11a3eae
commit
3670fa7c91
@ -1,6 +1,6 @@
|
|||||||
Name: i2c-tools
|
Name: i2c-tools
|
||||||
Version: 4.3
|
Version: 4.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A heterogeneous set of I2C tools for Linux
|
Summary: A heterogeneous set of I2C tools for Linux
|
||||||
License: GPLv2+ LGPLv2+
|
License: GPLv2+ LGPLv2+
|
||||||
URL: https://i2c.wiki.kernel.org/index.php/I2C_Tools
|
URL: https://i2c.wiki.kernel.org/index.php/I2C_Tools
|
||||||
@ -70,7 +70,6 @@ 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
|
||||||
make CFLAGS="$RPM_OPT_FLAGS -I../include" LDFLAGS="$RPM_LD_FLAGS"
|
|
||||||
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
|
||||||
@ -80,6 +79,9 @@ 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}
|
||||||
|
# Rename README file
|
||||||
|
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
|
||||||
@ -137,6 +139,8 @@ exit 0
|
|||||||
%{_mandir}/man3/libi2c.3.*
|
%{_mandir}/man3/libi2c.3.*
|
||||||
%doc CHANGES README
|
%doc CHANGES 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*
|
||||||
@ -149,6 +153,9 @@ exit 0
|
|||||||
%{_sbindir}/i2c-stub*
|
%{_sbindir}/i2c-stub*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Tue Nov 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 4.3-1
|
||||||
- Upgrade to Version 4.3
|
- Upgrade to Version 4.3
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user