Browse code

ncurses: split -terminfo subpackage

Change-Id: I8e9e039e1d09d6439f5363150dc8eb79186b8f56
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1750
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>

Alexey Makhalov authored on 2016/11/24 08:50:53
Showing 2 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Libraries for terminal handling of character screens
2 2
 Name:		ncurses
3 3
 Version:	6.0
4
-Release:	4%{?dist}
4
+Release:	5%{?dist}
5 5
 License:	MIT
6 6
 URL:		http://www.gnu.org/software/ncurses
7 7
 Group:		Applications/System
... ...
@@ -25,9 +25,16 @@ compatibility.
25 25
 
26 26
 %package	devel
27 27
 Summary:	Header and development files for ncurses
28
-Requires:	%{name} = %{version}
28
+Requires:	%{name} = %{version}-%{release}
29 29
 %description	devel
30 30
 It contains the libraries and header files to create applications 
31
+
32
+%package	terminfo
33
+Summary:	terminfo files for ncurses
34
+Requires:	%{name} = %{version}-%{release}
35
+%description	terminfo
36
+It contains all terminfo files
37
+
31 38
 %prep
32 39
 %setup -q
33 40
 %build
... ...
@@ -107,7 +114,7 @@ make
107 107
 %{_mandir}/man7/*
108 108
 %{_mandir}/man1/*
109 109
 %{_mandir}/man5/*
110
-%{_datadir}/terminfo/*
110
+%{_datadir}/terminfo/l/linux
111 111
 %{_libdir}/terminfo
112 112
 
113 113
 %files compat
... ...
@@ -150,7 +157,15 @@ make
150 150
 %{_docdir}/ncurses-6.0/html/*
151 151
 %{_docdir}/ncurses-6.0/*.doc
152 152
 %{_mandir}/man3/*
153
+
154
+%files terminfo
155
+%defattr(-,root,root)
156
+%{_datadir}/terminfo/*
157
+%exclude %{_datadir}/terminfo/l/linux
158
+
153 159
 %changelog
160
+*   Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 6.0-5
161
+-   Add -terminfo subpackage. Main package carries only 'linux' terminfo
154 162
 *   Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 6.0-4
155 163
 -   Move doc and man3 to the devel package
156 164
 *   Fri Oct 07 2016 ChangLee <changlee@vmware.com> 6.0-3
... ...
@@ -16,6 +16,8 @@
16 16
         "libtasn1",
17 17
         "libunistring",
18 18
         "nettle",
19
+        "ncurses-terminfo",
20
+        "cracklib-dicts",
19 21
         "rsyslog",
20 22
         "device-mapper-multipath",
21 23
         "NetworkManager",