|
|
4f9ee9 |
#global candidate rc2
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
Name: libi2cd
|
|
|
4f9ee9 |
Version: 1.0.3
|
|
|
4f9ee9 |
Release: 1%{?candidate:.%{candidate}}%{?dist}
|
|
|
4f9ee9 |
Summary: C library for interacting with linux I2C devices
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
License: LGPLv2+
|
|
|
4f9ee9 |
URL: https://github.com/sstallion/libi2cd/
|
|
|
4f9ee9 |
Source0: https://github.com/sstallion/libi2cd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
BuildRequires: automake autoconf libtool
|
|
|
4f9ee9 |
BuildRequires: gcc
|
|
|
4f9ee9 |
BuildRequires: libcmocka-devel
|
|
|
4f9ee9 |
BuildRequires: make
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%description
|
|
|
4f9ee9 |
libi2cd provides a simple and straightforward API for accessing I2C devices from
|
|
|
4f9ee9 |
userspace. It relies on the i2c-dev Linux kernel module and is intended to
|
|
|
4f9ee9 |
complement existing tools and libraries, such as those provided by i2c-tools.
|
|
|
4f9ee9 |
It provides both high- and low-level access to the underlying ioctl requests.
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%package devel
|
|
|
4f9ee9 |
Summary: Development package for %{name}
|
|
|
4f9ee9 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%description devel
|
|
|
4f9ee9 |
Files for development with %{name}.
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%prep
|
|
|
4f9ee9 |
%setup -q -n %{name}-%{version}%{?candidate:-%{candidate}}
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%build
|
|
|
4f9ee9 |
autoreconf -vif
|
|
|
4f9ee9 |
%configure --disable-static
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%make_build
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%install
|
|
|
4f9ee9 |
%make_install
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
#Remove libtool archives.
|
|
|
4f9ee9 |
find %{buildroot} -name '*.la' -delete
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%ldconfig_scriptlets
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%files
|
|
|
4f9ee9 |
%license COPYING
|
|
|
4f9ee9 |
%doc README.md
|
|
|
4f9ee9 |
%{_libdir}/%{name}.so.*
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%files devel
|
|
|
4f9ee9 |
%{_includedir}/i2cd.h
|
|
|
4f9ee9 |
%{_libdir}/%{name}*.so
|
|
|
4f9ee9 |
%{_libdir}/pkgconfig/libi2cd.pc
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
%changelog
|
|
|
4f9ee9 |
* Fri Jan 21 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0.3-1
|
|
|
4f9ee9 |
- Update to 1.0.3
|
|
|
4f9ee9 |
|
|
|
4f9ee9 |
* Tue Sep 21 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.0-1
|
|
|
4f9ee9 |
- Iniital build
|