From 3af7afc42f5d2f6725ff9f1717043205c8db46d8 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 8 Apr 2016 12:10:17 +0200 Subject: [PATCH] separate ncurses-c++-libs subpackage (#1324575) --- ncurses.spec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ncurses.spec b/ncurses.spec index 1c2e072..7eea991 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -59,6 +59,19 @@ discontinued 4.4 BSD classic curses library. This package contains the ABI version 5 of the ncurses libraries for compatibility. +%package c++-libs +Summary: Ncurses C++ bindings +Group: System Environment/Libraries +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description c++-libs +The curses library routines are a terminal-independent method of +updating character screens with reasonable optimization. The ncurses +(new curses) library is a freely distributable replacement for the +discontinued 4.4 BSD classic curses library. + +This package contains C++ bindings of the ncurses ABI version 6 libraries. + %package base Summary: Descriptions of common terminals Group: System Environment/Base @@ -87,6 +100,7 @@ the ncurses-base package. Summary: Development files for the ncurses library Group: Development/Libraries Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-c++-libs%{?_isa} = %{version}-%{release} Requires: pkgconfig Obsoletes: libtermcap-devel < 2.0.8-48 Provides: libtermcap-devel = 2.0.8-48 @@ -228,6 +242,10 @@ bzip2 NEWS %postun libs -p /sbin/ldconfig +%post c++-libs -p /sbin/ldconfig + +%postun c++-libs -p /sbin/ldconfig + %post compat-libs -p /sbin/ldconfig %postun compat-libs -p /sbin/ldconfig @@ -240,11 +258,15 @@ bzip2 NEWS %{_mandir}/man7/* %files libs +%exclude %{_libdir}/libncurses++*.so.6* %{_libdir}/lib*.so.6* %files compat-libs %{_libdir}/lib*.so.5* +%files c++-libs +%{_libdir}/libncurses++*.so.6* + %files base -f terms.base %{!?_licensedir:%global license %%doc} %license COPYING