summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorGraydon, Tracy <tracy.graydon@intel.com>2013-01-31 18:44:07 -0800
committerGraydon, Tracy <tracy.graydon@intel.com>2013-01-31 18:44:07 -0800
commitb19d79bf9028f58e3e4226bd9410b59f19fe3c8d (patch)
treea84dec919322f3d19c7c0cf3050c8c134a0d4fc6 /packaging
downloadi2c-tools-b19d79bf9028f58e3e4226bd9410b59f19fe3c8d.tar.gz
i2c-tools-b19d79bf9028f58e3e4226bd9410b59f19fe3c8d.tar.bz2
i2c-tools-b19d79bf9028f58e3e4226bd9410b59f19fe3c8d.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/i2c-tools.changes6
-rw-r--r--packaging/i2c-tools.spec50
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