Blame SPECS/libi2cd.spec

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