Provide i2c-dev.h in /usr/include/i2c-tools/

Provide i2c-dev.h in /usr/include/i2c-tools/ in the
i2c-tools-devel package.

Resolves: rhbz#1288823
This commit is contained in:
Ondřej Lysoněk 2017-07-20 12:06:33 +02:00
parent de6a077b9e
commit 7933805992

View File

@ -49,6 +49,12 @@ Group: Applications/System
%description perl
%package devel
Summary: Header files for i2c-tools
%description devel
%{summary}.
%prep
%setup -q
@ -73,8 +79,8 @@ pushd py-smbus
popd
# cleanup
rm -f $RPM_BUILD_ROOT%{_bindir}/decode-edid.pl
# Remove userland kernel headers, belong in glibc-kernheaders.
rm -rf $RPM_BUILD_ROOT%{_includedir}/linux
# Move userland kernel headers to i2c-tools' own directory
mv $RPM_BUILD_ROOT%{_includedir}/linux $RPM_BUILD_ROOT%{_includedir}/i2c-tools
# 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}
@ -130,6 +136,9 @@ exit 0
%{_mandir}/man1/decode-*.1.gz
%{_mandir}/man8/i2c-stub-from-dump.8.gz
%files devel
%{_includedir}/i2c-tools
%changelog
* Wed Jul 19 2017 Ondřej Lysoněk <olysonek@redhat.com> - 3.1.2-1