commit b83199cc007641b111f6e8a17dbc3c746c61b9af Author: MSVSphere Packaging Team Date: Fri Oct 25 16:21:34 2024 +0300 import libi2cd-1.0.3-7.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f5ea47d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libi2cd-1.0.3.tar.gz diff --git a/.libi2cd.metadata b/.libi2cd.metadata new file mode 100644 index 0000000..0cf000f --- /dev/null +++ b/.libi2cd.metadata @@ -0,0 +1 @@ +d06a803e11187acd3b6a4a529147574c057b0317 SOURCES/libi2cd-1.0.3.tar.gz diff --git a/SPECS/libi2cd.spec b/SPECS/libi2cd.spec new file mode 100644 index 0000000..01d0ecd --- /dev/null +++ b/SPECS/libi2cd.spec @@ -0,0 +1,80 @@ +#global candidate rc2 + +Name: libi2cd +Version: 1.0.3 +Release: 7%{?candidate:.%{candidate}}%{?dist} +Summary: C library for interacting with linux I2C devices + +License: LGPL-2.1-or-later +URL: https://github.com/sstallion/libi2cd/ +Source0: https://github.com/sstallion/libi2cd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: automake autoconf libtool +BuildRequires: gcc +BuildRequires: libcmocka-devel +BuildRequires: make + +%description +libi2cd provides a simple and straightforward API for accessing I2C devices from +userspace. It relies on the i2c-dev Linux kernel module and is intended to +complement existing tools and libraries, such as those provided by i2c-tools. +It provides both high- and low-level access to the underlying ioctl requests. + +%package devel +Summary: Development package for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Files for development with %{name}. + +%prep +%setup -q -n %{name}-%{version}%{?candidate:-%{candidate}} + +%build +autoreconf -vif +%configure --disable-static + +%make_build + +%install +%make_install + +#Remove libtool archives. +find %{buildroot} -name '*.la' -delete + +%ldconfig_scriptlets + +%files +%license COPYING +%doc README.md +%{_libdir}/%{name}.so.* + +%files devel +%{_includedir}/i2cd.h +%{_libdir}/%{name}*.so +%{_libdir}/pkgconfig/libi2cd.pc + +%changelog +* Mon Jun 24 2024 Troy Dawson - 1.0.3-7 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Peter Robinson - 1.0.3-1 +- Update to 1.0.3 + +* Tue Sep 21 2021 Peter Robinson - 1.0-1 +- Iniital build