summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-22 09:37:37 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-22 09:37:37 +0000
commitd518a2e8e68f7a52d6003100853dbc76058debde (patch)
treee60c190c564b4f863c38104c13af755c380c0b2c
parent60ae06512cc7996dcd1beb70ca0e292b05f70276 (diff)
automatic import of libiio-devopeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--libiio-dev.spec84
-rw-r--r--sources1
3 files changed, 86 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..15d10cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libiio-dev-1.0.0.tar.gz
diff --git a/libiio-dev.spec b/libiio-dev.spec
new file mode 100644
index 0000000..b90e022
--- /dev/null
+++ b/libiio-dev.spec
@@ -0,0 +1,84 @@
+# libiio - library for interfacing with Linux IIO devices.
+#
+# The upstream project and repository are named "libiio"; this source package
+# is named "libiio-dev" because that is the dependency name the consuming
+# stack resolves. A single binary package delivers the shared library, the
+# development files (headers and pkgconfig metadata) and the iio-utils
+# command line tools together with the iiod daemon.
+
+Name: libiio-dev
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: Library for interfacing with Linux IIO devices
+
+License: LGPL-2.1-or-later AND GPL-2.0-or-later AND MIT AND BSD-3-Clause
+URL: https://github.com/analogdevicesinc/libiio
+# Upstream tag archive of the "libiio" repository; the fragment after the #
+# tells rpm/spectool to save and expect the locally re-archived source tree
+# under this name (see the build-rpm step 4 re-tar).
+Source0: https://github.com/analogdevicesinc/libiio/archive/v%{version}.tar.gz#/libiio-dev-%{version}.tar.gz
+
+Group: Development/Libraries
+Packager: openEuler Builder <builder@openeuler.org>
+
+# The development payload of libiio is conventionally addressed as
+# "libiio-devel"; keep that name resolvable from this package.
+Provides: libiio-devel = %{version}-%{release}
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: libxml2-devel
+BuildRequires: libusbx-devel
+BuildRequires: libzstd-devel
+BuildRequires: libaio-devel
+
+%description
+libiio is a library for interfacing with Linux IIO (Industrial I/O) devices
+such as ADCs, DACs, sensors and gyroscopes. It offers a unified API for
+local and remote access through the USB, network and serial backends, and it
+ships the iiod daemon together with the iio-utils command line tools.
+
+This package contains the shared library, the development headers and the
+pkgconfig metadata needed to build software against libiio, as well as the
+iio-utils programs and the iiod daemon.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# On this platform the distribution cmake macro configures an in-source tree
+# and never creates the out-of-source build directory that the build and
+# install helper macros expect, so the configured tree is driven explicitly.
+%cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
+ -DWITH_TESTS=OFF \
+ -DCPP_BINDINGS=OFF \
+ -DCSHARP_BINDINGS=OFF \
+ -DWITH_MAN=OFF \
+ -DWITH_SYSTEMD=OFF \
+ -DWITH_SYSVINIT=OFF \
+ -DWITH_UPSTART=OFF \
+ -DUDEV_RULES_INSTALL_DIR=%{_prefix}/lib/udev/rules.d \
+ -DHAVE_DNS_SD=OFF
+%{__cmake} --build . %{?_smp_mflags} --verbose
+
+%install
+DESTDIR=%{buildroot} %{__cmake} --install .
+
+%files
+%license COPYING.txt COPYING_GPL.txt COPYING_MIT.txt
+%doc README.md
+%{_libdir}/libiio.so*
+%{_includedir}/iio/
+%{_libdir}/pkgconfig/libiio.pc
+%{_bindir}/iio_*
+%{_sbindir}/iiod
+%{_prefix}/lib/udev/rules.d/90-libiio.rules
+
+%changelog
+* Tue Sep 22 2026 openEuler Builder <builder@openeuler.org> - 1.0.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..fae2082
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d95ee635edc277bd7f072769c7ca0b4e libiio-dev-1.0.0.tar.gz