diff options
author | Graydon, Tracy <tracy.graydon@intel.com> | 2013-01-31 18:44:07 -0800 |
---|---|---|
committer | Graydon, Tracy <tracy.graydon@intel.com> | 2013-01-31 18:44:07 -0800 |
commit | b19d79bf9028f58e3e4226bd9410b59f19fe3c8d (patch) | |
tree | a84dec919322f3d19c7c0cf3050c8c134a0d4fc6 /packaging | |
download | i2c-tools-2.0alpha.tar.gz i2c-tools-2.0alpha.tar.bz2 i2c-tools-2.0alpha.zip |
Initial commitHEADsubmit/tizen_common/20150126.093738submit/tizen_3.0_common/20161104.104000submit/2.0alpha/20130201.222745accepted/tizen/common/20150126.100451accepted/tizen/3.0/common/20161114.112238accepted/2.0alpha/20130201.222208tizen_3.0.m2tizen_3.0.2015.q2_commontizen_3.0.2014.q4_commonaccepted/tizen_commonaccepted/tizen_3.0_common2.0alpha
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/i2c-tools.changes | 6 | ||||
-rw-r--r-- | packaging/i2c-tools.spec | 50 |
2 files changed, 56 insertions, 0 deletions
diff --git a/packaging/i2c-tools.changes b/packaging/i2c-tools.changes new file mode 100644 index 0000000..c537244 --- /dev/null +++ b/packaging/i2c-tools.changes @@ -0,0 +1,6 @@ +* Mon Mar 22 2010 Marko Saukko <marko.saukko@gmail.com> - 3.0.2-1 +- Moved /usr/include/linux/i2c-dev.h to /usr/include/libi2c/i2c-dev.h + because of conflicts with kernel packages. + +* Mon Mar 22 2010 Marko Saukko <marko.saukko@gmail.com> - 3.0.2 +- Initial spec file. diff --git a/packaging/i2c-tools.spec b/packaging/i2c-tools.spec new file mode 100644 index 0000000..7abf5f1 --- /dev/null +++ b/packaging/i2c-tools.spec @@ -0,0 +1,50 @@ +Name: i2c-tools +Version: 3.0.2 +Release: 1 +Summary: Heterogeneous set of I2C tools for Linux +Group: System/Libraries +License: GPLv2+ +Source0: http://dl.lm-sensors.org/i2c-tools/releases/%{name}-%{version}.tar.bz2 +# Patches auto-generated by git-buildpackage: + +%description +This package contains a heterogeneous set of I2C tools for Linux: a bus +probing tool, a chip dumper, register-level access helpers, EEPROM +decoding scripts, and more. + +%package -n libi2c-devel +Summary: Userspace I2C programming library development files + +%description -n libi2c-devel +I2C devices are usually controlled by a kernel driver. Using this +library it is also possible to access all devices on an adapter +from userspace and without the knowledge of Linux kernel internals. + +%prep +%setup -q -n %{name}-%{version} + +%build +make prefix=%{_prefix} + +%install +make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} + +# To avoid conflicts with kernel package lets move this header to +# different directory. +mkdir -p $RPM_BUILD_ROOT%{_includedir}/libi2c +mv $RPM_BUILD_ROOT%{_includedir}/linux/i2c-dev.h $RPM_BUILD_ROOT%{_includedir}/libi2c/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING +%{_bindir}/* +%{_sbindir}/* +%{_mandir}/man8/* + +%files -n libi2c-devel +%defattr(-,root,root,-) +%doc COPYING +%{_includedir}/libi2c/i2c-dev.h |