From 793380599285f866331c23ea128cd81fbdbb3d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Thu, 20 Jul 2017 12:06:33 +0200 Subject: [PATCH] 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 --- i2c-tools.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/i2c-tools.spec b/i2c-tools.spec index 9e711bb..9102af8 100644 --- a/i2c-tools.spec +++ b/i2c-tools.spec @@ -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 - 3.1.2-1