From e21fa1df7749e8a0f0d91c6cdf9cca85613defb9e12f51e01056e9dce447da04 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 3 Apr 2023 13:22:08 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ftxui?expand=0&rev=3 --- ftxui-rpmlintrc | 2 -- ftxui.spec | 15 +++++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 ftxui-rpmlintrc diff --git a/ftxui-rpmlintrc b/ftxui-rpmlintrc deleted file mode 100644 index a953e87..0000000 --- a/ftxui-rpmlintrc +++ /dev/null @@ -1,2 +0,0 @@ -# Not worth splitting libftxui-component.so.*, libftxui-dom.so.*, libftxui-screen.so.* in separate packages -addFilter("shlib-policy-name-error .*") diff --git a/ftxui.spec b/ftxui.spec index 7149948..375f22e 100644 --- a/ftxui.spec +++ b/ftxui.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # - +%define c_lib libftxui4_0_0 Name: ftxui Version: 4.0.0 Release: 0 @@ -23,25 +23,24 @@ Summary: A C++ library for terminal based user interfaces License: MIT URL: https://github.com/ArthurSonzogni/FTXUI Source: https://github.com/ArthurSonzogni/FTXUI/archive/refs/tags/v%{version}.tar.gz -Source1: ftxui-rpmlintrc BuildRequires: cmake BuildRequires: gcc-c++ %description A C++ library for terminal based user interfaces. -%package -n libftxui4 +%package -n %{c_lib} Summary: A C++ library for terminal based user interfaces Group: System/Libraries Recommends: %{name} >= %{version} -%description -n libftxui4 +%description -n %{c_lib} A C++ library for terminal based user interfaces. %package devel Summary: Devel files for ftxui Group: Development/Libraries/C and C++ -Requires: libftxui4 = %{version} +Requires: %{c_lib} = %{version} %description devel Development files for ftxui. @@ -58,10 +57,10 @@ Development files for ftxui. %install %cmake_install -%post -n libftxui4 -p /sbin/ldconfig -%postun -n libftxui4 -p /sbin/ldconfig +%post -n %{c_lib} -p /sbin/ldconfig +%postun -n %{c_lib} -p /sbin/ldconfig -%files -n libftxui4 +%files -n %{c_lib} %license LICENSE %doc CHANGELOG.md README.md %{_libdir}/libftxui-component.so.4.0.0