public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libiio] rawhide: Update to 1.0.0
@ 2026-10-11 23:13 Peter Robinson
  0 siblings, 0 replies; only message in thread
From: Peter Robinson @ 2026-10-11 23:13 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libiio
Branch : rawhide
Commit : 626d0f930e1b437b2e5a28f4219984f63aa27cdb
Author : Peter Robinson <pbrobinson@gmail.com>
Date   : 2026-10-12T00:13:10+01:00
Stats  : +38/-20 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/libiio/c/626d0f930e1b437b2e5a28f4219984f63aa27cdb?branch=rawhide

Log:
Update to 1.0.0

---
diff --git a/.gitignore b/.gitignore
index e4dd4f7..0df4196 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
 /v0.*.tar.gz
-/libiio-0.*.tar.gz
+/libiio-*.tar.gz

diff --git a/libiio.spec b/libiio.spec
index e6dbdfe..836149e 100644
--- a/libiio.spec
+++ b/libiio.spec
@@ -1,5 +1,5 @@
 Name:          libiio
-Version:       0.26
+Version:       1.0.0
 Release:       %autorelease
 Summary:       Library for Industrial IO
 License:       LGPL-2.0-or-later
@@ -8,18 +8,21 @@ Source0:       https://github.com/analogdevicesinc/%{name}/archive/v%{version}.t
 
 BuildRequires: avahi-devel
 BuildRequires: bison
+BuildRequires: chrpath
 BuildRequires: cmake
-BuildRequires: doxygen
 BuildRequires: flex
 BuildRequires: gcc
 BuildRequires: libaio-devel
+BuildRequires: libserialport-devel
 BuildRequires: libusb1-devel
 BuildRequires: libxml2-devel
-BuildRequires: man2html
+BuildRequires: libzstd-devel
 BuildRequires: python3-devel
 BuildRequires: python3-setuptools
-BuildRequires: python3-sphinx
-BuildRequires: python3-sphinx_rtd_theme
+# Docs
+BuildRequires: doxygen
+BuildRequires: graphviz
+BuildRequires: man2html
 
 %description
 Library for interfacing with Linux IIO devices
@@ -63,29 +66,47 @@ Python 3 bindings for Industrial IO
 
 %prep
 %autosetup -p1
-sed -i 's#${LIBIIO_VERSION_MAJOR}-doc##' CMakeLists.txt
-sed -i 's#DESTINATION ${CMAKE_HTML_DEST_DIR}/${CMAKE_API_DEST_DIR}#DESTINATION ${CMAKE_HTML_DEST_DIR}##' CMakeLists.txt
+
+%generate_buildrequires
+cd bindings/python/
+%pyproject_buildrequires --pyproject-dependencies
 
 %build
-%cmake -DPYTHON_BINDINGS=on -DWITH_DOC=on -DWITH_MAN=on \
+%cmake -DWITH_MAN=on \
        -DUDEV_RULES_INSTALL_DIR=%{_udevrulesdir}
 
 %cmake_build
 
+pushd bindings/python/
+%pyproject_wheel
+popd
+
+# Sphinx introduces a lot of dependencies
+pushd doc/doxygen
+(cat doxyfile.in; echo "GENERATE_HTML = YES"; echo "HTML_OUTPUT = html"; echo "GENERATE_XML = NO") | doxygen -
+popd
+
 %install
 %cmake_install
 
-#hack: Fix man locations
-mv %{buildroot}%{_mandir}/man1/man/* %{buildroot}%{_mandir}/man1
-mv %{buildroot}%{_mandir}/man3/man/* %{buildroot}%{_mandir}/man3
-rmdir %{buildroot}%{_mandir}/man1/man %{buildroot}%{_mandir}/man3/man
+pushd bindings/python/
+%pyproject_install
+%pyproject_save_files iio
+popd
+
+# Fix rpath
+chrpath --delete %{buildroot}/%{_bindir}/iio*
 #Remove libtool archives.
 find %{buildroot} -name '*.la' -delete
 
+mkdir -p %{buildroot}%{_docdir}/%{name}
+cp -aR doc/doxygen/generated/html/ %{buildroot}%{_docdir}/%{name}/html/
+
 
 %files
 %license COPYING.txt
-%{_libdir}/%{name}.so.*
+%{_libdir}/%{name}.so.0
+%{_libdir}/%{name}.so.1*
 %{_mandir}/man3/libiio*
 %{_udevrulesdir}/90-libiio.rules
 
@@ -95,17 +116,14 @@ find %{buildroot} -name '*.la' -delete
 %{_mandir}/man1/iio*
 
 %files devel
-%{_includedir}/iio.h
+%{_includedir}/iio/
 %{_libdir}/pkgconfig/%{name}.pc
 %{_libdir}/%{name}.so
 
 %files doc
 %doc %{_docdir}/%{name}
 
-%files -n python3-iio
-%{python3_sitelib}/__pycache__/iio*
-%{python3_sitelib}/iio.py
-%{python3_sitelib}/pylibiio*
+%files -n python3-iio -f %{pyproject_files}
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index 9dbd73c..b42c4d3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libiio-0.26.tar.gz) = f2febe8223149602e9d34957fb04892ff1d7449abf2923d0428d0db43148445a0b5595eb6d00013687c73001685b6aaaa5aa098ff67f51ec1950200330481bba
+SHA512 (libiio-1.0.0.tar.gz) = 7e475f8d33bd56f29be71120a2ffe87edcf750df4152b3a0e1169e1bc500803590b1b4a14faf036f042bfb0e79f4c7e5c4f9cb43e62ddca33adffec96ae38ec2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-11 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 23:13 [rpms/libiio] rawhide: Update to 1.0.0 Peter Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox