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