Browse code

Replace nano with vim minimal, after packing extra vim files separatly. Keeping the Minimal installation size same as before after this change.

Touseef Liaqat authored on 2015/07/01 10:58:10
Showing 2 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:	Text editor
4 4
 Name:		vim
5 5
 Version:	7.4
6
-Release:	1%{?dist}
6
+Release:	3%{?dist}
7 7
 License:	Charityware
8 8
 URL:		http://www.vim.org
9 9
 Group:		Applications/Editors
... ...
@@ -12,8 +12,17 @@ Distribution:	Photon
12 12
 Source0:	%{name}-%{version}.tar.bz2
13 13
 BuildRequires:	ncurses-devel
14 14
 Requires:	tcsh
15
+
15 16
 %description
16 17
 The Vim package contains a powerful text editor.
18
+
19
+%package extra
20
+Summary: Extra files for Vim text editor
21
+Group: Applications/Editors
22
+
23
+%description extra
24
+The vim extra package contains a extra files for powerful text editor.
25
+
17 26
 %prep
18 27
 %setup -q -n %{name}74
19 28
 echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
... ...
@@ -41,10 +50,12 @@ endif
41 41
 
42 42
 " End /etc/vimrc
43 43
 EOF
44
-%files
44
+
45
+%files extra
45 46
 %defattr(-,root,root)
46 47
 %config(noreplace) /etc/vimrc
47
-%{_bindir}/*
48
+%{_bindir}/vimtutor
49
+%{_bindir}/xxd
48 50
 %{_mandir}/*/*
49 51
 %doc %{_datarootdir}/vim/vim74/doc/*
50 52
 %{_datarootdir}/vim/vim74/autoload/*
... ...
@@ -108,14 +119,27 @@ EOF
108 108
 %lang(cs.cp1250)  %{_datarootdir}/vim/vim74/lang/cs.cp1250/LC_MESSAGES/vim.mo
109 109
 %lang(ja.euc-jp)  %{_datarootdir}/vim/vim74/lang/ja.euc-jp/LC_MESSAGES/vim.mo
110 110
 %lang(ja.sjis)    %{_datarootdir}/vim/vim74/lang/ja.sjis/LC_MESSAGES/vim.mo
111
-%lang(nl) 	  %{_datarootdir}/vim/vim74/lang/nl/LC_MESSAGES/vim.mo
111
+%lang(nl)     %{_datarootdir}/vim/vim74/lang/nl/LC_MESSAGES/vim.mo
112 112
 %lang(pl.UTF-8)   %{_datarootdir}/vim/vim74/lang/pl.UTF-8/LC_MESSAGES/vim.mo
113 113
 %lang(pl.cp1250)  %{_datarootdir}/vim/vim74/lang/pl.cp1250/LC_MESSAGES/vim.mo
114 114
 %lang(ru.cp1251)  %{_datarootdir}/vim/vim74/lang/ru.cp1251/LC_MESSAGES/vim.mo
115 115
 %lang(sk.cp1250)  %{_datarootdir}/vim/vim74/lang/sk.cp1250/LC_MESSAGES/vim.mo
116 116
 %lang(uk.cp1251)  %{_datarootdir}/vim/vim74/lang/uk.cp1251/LC_MESSAGES/vim.mo
117 117
 %lang(zh_CN.cp936) %{_datarootdir}/vim/vim74/lang/zh_CN.cp936/LC_MESSAGES/vim.mo
118
+
119
+%files
120
+%defattr(-,root,root)
121
+%{_bindir}/ex
122
+%{_bindir}/vi
123
+%{_bindir}/view
124
+%{_bindir}/rvim
125
+%{_bindir}/rview
126
+%{_bindir}/vim
127
+%{_bindir}/vimdiff
128
+
118 129
 %changelog
130
+*   Tue Jun 30 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
131
+-   Pack extra files separately, to make vim package small.
119 132
 *	Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 7.4-2
120 133
 -	Disable debug package. Use 'desert' colorscheme.
121 134
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 7.4-1
... ...
@@ -5,7 +5,7 @@
5 5
                 "attr", "libcap", "systemd", "expat", "dbus", "file", "e2fsprogs", "elfutils-libelf", "lua", "popt", "sqlite-autoconf", "nspr", "nss", "rpm",
6 6
                 "openssh", "libffi", "gdbm", "python2", "python2-libs", "pcre", "glib", "libxml2",
7 7
                 "photon-release",
8
-                "sed", "grep", "cpio", "gzip", "nano", "db", "libsolv", "libgpg-error", "hawkey", "libassuan", "gpgme", "librepo", "tdnf",
8
+                "sed", "grep", "cpio", "gzip", "vim", "db", "libsolv", "libgpg-error", "hawkey", "libassuan", "gpgme", "librepo", "tdnf",
9 9
                 "libdnet", "xerces-c", "xml-security-c", "libmspack", "open-vm-tools",
10 10
                 "docker","bridge-utils",
11 11
                 "libyaml", "PyYAML", "python-requests", "python-prettytable", "python-jsonpointer", "python-jsonpatch", "python-six", "python-configobj", "cloud-init",