summaryrefslogtreecommitdiff
path: root/ros-humble-libserial.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-12 08:18:53 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-12 08:18:53 +0000
commitaf1c51dd91c18a6aa07fa07f49d87b9d132bdfe3 (patch)
tree17e706c33ae0430d21b1d1519781cae48e2f51bc /ros-humble-libserial.spec
parentc51b6bcc8f8549d2e1ece8e98568e9312384f9a4 (diff)
automatic import of ros-humble-libserial
Diffstat (limited to 'ros-humble-libserial.spec')
-rw-r--r--ros-humble-libserial.spec62
1 files changed, 62 insertions, 0 deletions
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 <builder@openeuler.org>
+
+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 <builder@openeuler.org>
+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 <builder@openeuler.org> - 1.0.0-1
+- Initial package