diff --git a/ncurses.spec b/ncurses.spec index 49a939f98bca89e6f5a1bc67d7c1360c748b5880..877844105f2953e48da8f2c077643ecde19492ec 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -1,6 +1,7 @@ +%define anolis_release 3 Name: ncurses Version: 6.3 -Release: 2%{?dist} +Release: %{anolis_release}%{?dist} Summary: Ncurses support utilities License: MIT @@ -10,7 +11,7 @@ Source0: https://invisible-mirror.net/archives/ncurses/ncurses-%{version} Patch0: 0001-revert-GCC_PRINTF-and-GCC_SCANF-to-workaround-some-p.patch BuildRequires: gcc gcc-c++ gpm-devel gnupg2 make pkgconfig -Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} %description The curses library routines are a terminal-independent method of @@ -22,6 +23,14 @@ This package contains support utilities, including a terminfo compiler tic, a decompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package libs Summary: Ncurses libraries Requires: %{name}-base = %{version}-%{release} @@ -49,7 +58,7 @@ compatibility. %package c++-libs Summary: Ncurses C++ bindings -Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} %description c++-libs The curses library routines are a terminal-independent method of @@ -78,8 +87,8 @@ the ncurses-base package. %package devel Summary: Development files for the ncurses library -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires: %{name}-c++-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} +Requires: %{name}-c++-libs = %{version}-%{release} Requires: pkgconfig %description devel @@ -91,7 +100,7 @@ which will use ncurses. %package static Summary: Static libraries for the ncurses library -Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} %description static The ncurses-static package includes static libraries of the ncurses library. @@ -213,16 +222,23 @@ xz NEWS %ldconfig_scriptlets compat-libs +%generate_compatibility_deps + %files -%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO %{_bindir}/[cirt]* +%{abidir}/[cirt]*-option.list %{_mandir}/man1/[cirt]* %{_mandir}/man5/* %{_mandir}/man7/* +%files doc +%doc ANNOUNCE AUTHORS NEWS.xz README TO-DO + %files libs +%dir %{abidir} %exclude %{_libdir}/libncurses++*.so.6* %{_libdir}/lib*.so.6* +%{abidir}/lib*.dump %files compat-libs %{_libdir}/lib*.so.5* @@ -245,6 +261,7 @@ xz NEWS %doc c++/README* %doc misc/ncurses.supp %{_bindir}/ncurses*-config +%{abidir}/ncurses*-config-option.list %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/ncurses @@ -260,6 +277,9 @@ xz NEWS %changelog +* Tue Oct 18 2022 mgb01105731 - 6.3-3 +- optimise spec file & add doc package + * Wed Mar 16 2022 forrest_ly - 6.3-2 - revert GCC_PRINTF and GCC_SCANF to workaround some pkg build