From af1c51dd91c18a6aa07fa07f49d87b9d132bdfe3 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 12 Oct 2026 08:18:53 +0000 Subject: automatic import of ros-humble-libserial --- .gitignore | 1 + ros-humble-libserial.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 ros-humble-libserial.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..60b7ac4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ros-humble-libserial-1.0.0.tar.gz diff --git a/ros-humble-libserial.spec b/ros-humble-libserial.spec new file mode 100644 index 0000000..7f80376 --- /dev/null +++ b/ros-humble-libserial.spec @@ -0,0 +1,62 @@ +# topdir: ros-humble-libserial-1.0.0 (created by --transform from local clone) +Name: ros-humble-libserial +Version: 1.0.0 +Release: 1%{?dist} +Summary: C++ serial port programming library for Linux + +License: BSD-3-Clause +URL: https://github.com/crayzeewulf/libserial +# No git tags in upstream repo; use commit archive URL with #/ to force tarball name +Source0: https://github.com/crayzeewulf/libserial/archive/50e0f443666d48d7c7e181dc73a6b35700517fae.tar.gz#/%{name}-%{version}.tar.gz + +Group: Development/Libraries +Packager: openEuler Builder + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +LibSerial provides a convenient, object oriented approach to accessing +serial ports on Linux operating systems. It is a C++ library that +simplifies serial port communication with a clean and intuitive API. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Packager: openEuler Builder +Requires: %{name} = %{version}-%{release} + +%description devel +Header files, static library, and pkg-config file for developing +applications with %{name}. + +%prep +%autosetup -n %{name}-%{version} + +%build +%cmake \ + -DLIBSERIAL_ENABLE_TESTING=OFF \ + -DLIBSERIAL_BUILD_EXAMPLES=OFF \ + -DLIBSERIAL_PYTHON_ENABLE=OFF \ + -DLIBSERIAL_BUILD_DOCS=OFF \ + -DINSTALL_STATIC=ON \ + -DINSTALL_SHARED=ON +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE.txt +%doc README.md ChangeLog +%{_libdir}/libserial.so.* + +%files devel +%{_includedir}/libserial/ +%{_libdir}/libserial.so +%{_libdir}/libserial.a +%{_libdir}/pkgconfig/libserial.pc + +%changelog +* Mon Oct 12 2026 openEuler Builder - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4a61af1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4b9fe679c7f5502ef133da8e89449fac ros-humble-libserial-1.0.0.tar.gz -- cgit v1.2.3