Browse code

Handled locale files with find_lang.

Change-Id: I5309de2c4803977b96acf49814c4503e954a19b4
Reviewed-on: http://photon-jenkins.eng.vmware.com/105
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George

xiaolin-vmware authored on 2015/11/11 03:22:41
Showing 13 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Contains a linker, an assembler, and other tools
2 2
 Name:		binutils
3 3
 Version:	2.25
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.gnu.org/software/binutils
7 7
 Group:		System Environment/Base
... ...
@@ -31,17 +31,19 @@ cd ../binutils-build
31 31
 	--disable-silent-rules
32 32
 make %{?_smp_mflags} tooldir=%{_prefix}
33 33
 %install
34
-cd ../binutils-build
34
+pushd ../binutils-build
35 35
 make DESTDIR=%{buildroot} tooldir=%{_prefix} install
36 36
 find %{buildroot} -name '*.la' -delete
37 37
 # Don't remove libiberity.a
38 38
 rm -rf %{buildroot}/%{_infodir}
39
+popd
40
+%find_lang %{name} --all-name
39 41
 %check
40 42
 cd ../binutils-build
41 43
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
42 44
 %post	-p /sbin/ldconfig
43 45
 %postun	-p /sbin/ldconfig
44
-%files
46
+%files -f %{name}.lang
45 47
 %defattr(-,root,root)
46 48
 %{_bindir}/gprof
47 49
 %{_bindir}/ld.bfd
... ...
@@ -129,103 +131,6 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
129 129
 %{_libdir}/ldscripts/elf_l1om.xbn
130 130
 %{_libdir}/ldscripts/elf_x86_64.xbn
131 131
 %{_libdir}/ldscripts/elf_l1om.xdw
132
-%{_datadir}/locale/da/LC_MESSAGES/gprof.mo
133
-%{_datadir}/locale/da/LC_MESSAGES/ld.mo
134
-%{_datadir}/locale/da/LC_MESSAGES/bfd.mo
135
-%{_datadir}/locale/da/LC_MESSAGES/binutils.mo
136
-%{_datadir}/locale/da/LC_MESSAGES/opcodes.mo
137
-%{_datadir}/locale/uk/LC_MESSAGES/gprof.mo
138
-%{_datadir}/locale/uk/LC_MESSAGES/ld.mo
139
-%{_datadir}/locale/uk/LC_MESSAGES/bfd.mo
140
-%{_datadir}/locale/uk/LC_MESSAGES/binutils.mo
141
-%{_datadir}/locale/uk/LC_MESSAGES/gas.mo
142
-%{_datadir}/locale/uk/LC_MESSAGES/opcodes.mo
143
-%{_datadir}/locale/sr/LC_MESSAGES/binutils.mo
144
-%{_datadir}/locale/sr/LC_MESSAGES/gprof.mo
145
-%{_datadir}/locale/ga/LC_MESSAGES/gprof.mo
146
-%{_datadir}/locale/ga/LC_MESSAGES/ld.mo
147
-%{_datadir}/locale/ga/LC_MESSAGES/opcodes.mo
148
-%{_datadir}/locale/hu/LC_MESSAGES/gprof.mo
149
-%{_datadir}/locale/fr/LC_MESSAGES/gprof.mo
150
-%{_datadir}/locale/fr/LC_MESSAGES/ld.mo
151
-%{_datadir}/locale/fr/LC_MESSAGES/bfd.mo
152
-%{_datadir}/locale/fr/LC_MESSAGES/gas.mo
153
-%{_datadir}/locale/fr/LC_MESSAGES/binutils.mo
154
-%{_datadir}/locale/fr/LC_MESSAGES/opcodes.mo
155
-%{_datadir}/locale/ro/LC_MESSAGES/gprof.mo
156
-%{_datadir}/locale/ro/LC_MESSAGES/bfd.mo
157
-%{_datadir}/locale/ro/LC_MESSAGES/binutils.mo
158
-%{_datadir}/locale/ro/LC_MESSAGES/opcodes.mo
159
-%{_datadir}/locale/nl/LC_MESSAGES/gprof.mo
160
-%{_datadir}/locale/nl/LC_MESSAGES/opcodes.mo
161
-%{_datadir}/locale/bg/LC_MESSAGES/gprof.mo
162
-%{_datadir}/locale/bg/LC_MESSAGES/ld.mo
163
-%{_datadir}/locale/bg/LC_MESSAGES/binutils.mo
164
-%{_datadir}/locale/de/LC_MESSAGES/gprof.mo
165
-%{_datadir}/locale/de/LC_MESSAGES/opcodes.mo
166
-%{_datadir}/locale/pt_BR/LC_MESSAGES/gprof.mo
167
-%{_datadir}/locale/pt_BR/LC_MESSAGES/opcodes.mo
168
-%{_datadir}/locale/fi/LC_MESSAGES/gprof.mo
169
-%{_datadir}/locale/fi/LC_MESSAGES/ld.mo
170
-%{_datadir}/locale/fi/LC_MESSAGES/bfd.mo
171
-%{_datadir}/locale/fi/LC_MESSAGES/gas.mo
172
-%{_datadir}/locale/fi/LC_MESSAGES/binutils.mo
173
-%{_datadir}/locale/fi/LC_MESSAGES/opcodes.mo
174
-%{_datadir}/locale/it/LC_MESSAGES/gprof.mo
175
-%{_datadir}/locale/it/LC_MESSAGES/ld.mo
176
-%{_datadir}/locale/it/LC_MESSAGES/binutils.mo
177
-%{_datadir}/locale/it/LC_MESSAGES/opcodes.mo
178
-%{_datadir}/locale/ru/LC_MESSAGES/gprof.mo
179
-%{_datadir}/locale/ru/LC_MESSAGES/bfd.mo
180
-%{_datadir}/locale/ru/LC_MESSAGES/gas.mo
181
-%{_datadir}/locale/ru/LC_MESSAGES/binutils.mo
182
-%{_datadir}/locale/zh_TW/LC_MESSAGES/ld.mo
183
-%{_datadir}/locale/zh_TW/LC_MESSAGES/binutils.mo
184
-%{_datadir}/locale/sv/LC_MESSAGES/gprof.mo
185
-%{_datadir}/locale/sv/LC_MESSAGES/ld.mo
186
-%{_datadir}/locale/sv/LC_MESSAGES/bfd.mo
187
-%{_datadir}/locale/sv/LC_MESSAGES/binutils.mo
188
-%{_datadir}/locale/sv/LC_MESSAGES/opcodes.mo
189
-%{_datadir}/locale/tr/LC_MESSAGES/gprof.mo
190
-%{_datadir}/locale/tr/LC_MESSAGES/ld.mo
191
-%{_datadir}/locale/tr/LC_MESSAGES/bfd.mo
192
-%{_datadir}/locale/tr/LC_MESSAGES/gas.mo
193
-%{_datadir}/locale/tr/LC_MESSAGES/binutils.mo
194
-%{_datadir}/locale/tr/LC_MESSAGES/opcodes.mo
195
-%{_datadir}/locale/eo/LC_MESSAGES/gprof.mo
196
-%{_datadir}/locale/sk/LC_MESSAGES/binutils.mo
197
-%{_datadir}/locale/ms/LC_MESSAGES/gprof.mo
198
-%{_datadir}/locale/rw/LC_MESSAGES/gprof.mo
199
-%{_datadir}/locale/rw/LC_MESSAGES/bfd.mo
200
-%{_datadir}/locale/rw/LC_MESSAGES/gas.mo
201
-%{_datadir}/locale/rw/LC_MESSAGES/binutils.mo
202
-%{_datadir}/locale/hr/LC_MESSAGES/binutils.mo
203
-%{_datadir}/locale/zh_CN/LC_MESSAGES/ld.mo
204
-%{_datadir}/locale/zh_CN/LC_MESSAGES/bfd.mo
205
-%{_datadir}/locale/zh_CN/LC_MESSAGES/binutils.mo
206
-%{_datadir}/locale/zh_CN/LC_MESSAGES/opcodes.mo
207
-%{_datadir}/locale/ja/LC_MESSAGES/gprof.mo
208
-%{_datadir}/locale/ja/LC_MESSAGES/ld.mo
209
-%{_datadir}/locale/ja/LC_MESSAGES/bfd.mo
210
-%{_datadir}/locale/ja/LC_MESSAGES/gas.mo
211
-%{_datadir}/locale/ja/LC_MESSAGES/binutils.mo
212
-%{_datadir}/locale/vi/LC_MESSAGES/gprof.mo
213
-%{_datadir}/locale/vi/LC_MESSAGES/ld.mo
214
-%{_datadir}/locale/vi/LC_MESSAGES/bfd.mo
215
-%{_datadir}/locale/vi/LC_MESSAGES/binutils.mo
216
-%{_datadir}/locale/vi/LC_MESSAGES/opcodes.mo
217
-%{_datadir}/locale/es/LC_MESSAGES/gprof.mo
218
-%{_datadir}/locale/es/LC_MESSAGES/ld.mo
219
-%{_datadir}/locale/es/LC_MESSAGES/bfd.mo
220
-%{_datadir}/locale/es/LC_MESSAGES/gas.mo
221
-%{_datadir}/locale/es/LC_MESSAGES/binutils.mo
222
-%{_datadir}/locale/es/LC_MESSAGES/opcodes.mo
223
-%{_datadir}/locale/id/LC_MESSAGES/gprof.mo
224
-%{_datadir}/locale/id/LC_MESSAGES/ld.mo
225
-%{_datadir}/locale/id/LC_MESSAGES/bfd.mo
226
-%{_datadir}/locale/id/LC_MESSAGES/gas.mo
227
-%{_datadir}/locale/id/LC_MESSAGES/binutils.mo
228
-%{_datadir}/locale/id/LC_MESSAGES/opcodes.mo
229 132
 %{_mandir}/man1/readelf.1.gz
230 133
 %{_mandir}/man1/windmc.1.gz
231 134
 %{_mandir}/man1/ranlib.1.gz
... ...
@@ -261,6 +166,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
261 261
 %{_libdir}/libopcodes.so
262 262
 
263 263
 %changelog
264
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 2.25-2
265
+-	Handled locale files with macro find_lang
264 266
 *	Mon Apr 6 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.25-1
265 267
 -	Updated to 2.25
266 268
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.24-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Contains a parser generator
2 2
 Name:		bison
3 3
 Version:	3.0.2
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.gnu.org/software/bison
7 7
 Group:		System Environment/Base
... ...
@@ -25,7 +25,7 @@ make %{?_smp_mflags}
25 25
 %install
26 26
 make DESTDIR=%{buildroot} install
27 27
 rm -rf %{buildroot}%{_infodir}
28
-%find_lang %{name}
28
+%find_lang %{name} --all-name
29 29
 %check
30 30
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
31 31
 %files -f %{name}.lang
... ...
@@ -34,46 +34,10 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
34 34
 %{_libdir}/*.a
35 35
 %{_datarootdir}/%{name}/*
36 36
 %{_datarootdir}/aclocal/*
37
-%lang(ast) %{_datarootdir}/locale/ast/LC_MESSAGES/bison-runtime.mo
38
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/bison-runtime.mo
39
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/bison-runtime.mo
40
-%lang(el) %{_datarootdir}/locale/el/LC_MESSAGES/bison-runtime.mo
41
-%lang(eo) %{_datarootdir}/locale/eo/LC_MESSAGES/bison-runtime.mo
42
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/bison-runtime.mo
43
-%lang(et) %{_datarootdir}/locale/et/LC_MESSAGES/bison-runtime.mo
44
-%lang(fi) %{_datarootdir}/locale/fi/LC_MESSAGES/bison-runtime.mo
45
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/bison-runtime.mo
46
-%lang(ga) %{_datarootdir}/locale/ga/LC_MESSAGES/bison-runtime.mo
47
-%lang(gl) %{_datarootdir}/locale/gl/LC_MESSAGES/bison-runtime.mo
48
-%lang(hr) %{_datarootdir}/locale/hr/LC_MESSAGES/bison-runtime.mo
49
-%lang(hu) %{_datarootdir}/locale/hu/LC_MESSAGES/bison-runtime.mo
50
-%lang(ia) %{_datarootdir}/locale/ia/LC_MESSAGES/bison-runtime.mo
51
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/bison-runtime.mo
52
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/bison-runtime.mo
53
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/bison-runtime.mo
54
-%lang(ky) %{_datarootdir}/locale/ky/LC_MESSAGES/bison-runtime.mo
55
-%lang(lt) %{_datarootdir}/locale/lt/LC_MESSAGES/bison-runtime.mo
56
-%lang(lv) %{_datarootdir}/locale/lv/LC_MESSAGES/bison-runtime.mo
57
-%lang(ms) %{_datarootdir}/locale/ms/LC_MESSAGES/bison-runtime.mo
58
-%lang(nb) %{_datarootdir}/locale/nb/LC_MESSAGES/bison-runtime.mo
59
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/bison-runtime.mo
60
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/bison-runtime.mo
61
-%lang(pt) %{_datarootdir}/locale/pt/LC_MESSAGES/bison-runtime.mo
62
-%lang(pt_BR) %{_datarootdir}/locale/pt_BR/LC_MESSAGES/bison-runtime.mo
63
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/bison-runtime.mo
64
-%lang(ru) %{_datarootdir}/locale/ru/LC_MESSAGES/bison-runtime.mo
65
-%lang(sl) %{_datarootdir}/locale/sl/LC_MESSAGES/bison-runtime.mo
66
-%lang(sq) %{_datarootdir}/locale/sq/LC_MESSAGES/bison-runtime.mo
67
-%lang(sr) %{_datarootdir}/locale/sr/LC_MESSAGES/bison-runtime.mo
68
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/bison-runtime.mo
69
-%lang(th) %{_datarootdir}/locale/th/LC_MESSAGES/bison-runtime.mo
70
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/bison-runtime.mo
71
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/bison-runtime.mo
72
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/bison-runtime.mo
73
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/bison-runtime.mo
74
-%lang(zh_TW) %{_datarootdir}/locale/zh_TW/LC_MESSAGES/bison-runtime.mo
75 37
 %{_mandir}/*/*
76 38
 %changelog
39
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 3.0.2-3
40
+-	Handled locale files with macro find_lang
77 41
 *	Fri Jun 5 2015 Divya Thaluru <dthaluru@vmware.com> 3.0.2-2
78 42
 -	Adding m4, flex package to build and run time required package 
79 43
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.0.2-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Contains the utilities for the ext2 file system
2 2
 Name:		e2fsprogs
3 3
 Version:	1.42.9
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://e2fsprogs.sourceforge.net
7 7
 Group:		System Environment/Base
... ...
@@ -37,17 +37,20 @@ PKG_CONFIG_PATH=/tools/lib/pkgconfig \
37 37
 	--disable-silent-rules
38 38
 make %{?_smp_mflags}
39 39
 %install
40
-cd build
40
+pushd build
41 41
 make DESTDIR=%{buildroot} install
42 42
 make DESTDIR=%{buildroot} install-libs
43 43
 chmod -v u+w %{buildroot}/%{_libdir}/{libcom_err,libe2p,libext2fs,libss}.a
44 44
 rm -rf %{buildroot}%{_infodir}
45
+popd
46
+%find_lang %{name}
47
+
45 48
 %check
46 49
 cd build
47 50
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
48 51
 %post	-p /sbin/ldconfig
49 52
 %postun	-p /sbin/ldconfig
50
-%files
53
+%files -f %{name}.lang
51 54
 %defattr(-,root,root)
52 55
 %config %{_sysconfdir}/mke2fs.conf
53 56
 %{_bindir}/compile_et
... ...
@@ -97,19 +100,6 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
97 97
 %{_libdir}/libcom_err.so
98 98
 %{_libdir}/libe2p.so
99 99
 %{_libdir}/libext2fs.so
100
-%lang(ca) %{_datarootdir}/locale/ca/LC_MESSAGES/e2fsprogs.mo
101
-%lang(cs) %{_datarootdir}/locale/cs/LC_MESSAGES/e2fsprogs.mo
102
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/e2fsprogs.mo
103
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/e2fsprogs.mo
104
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/e2fsprogs.mo
105
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/e2fsprogs.mo
106
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/e2fsprogs.mo
107
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/e2fsprogs.mo
108
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/e2fsprogs.mo
109
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/e2fsprogs.mo
110
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/e2fsprogs.mo
111
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/e2fsprogs.mo
112
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/e2fsprogs.mo
113 100
 
114 101
 %files devel
115 102
 %{_includedir}/ss/ss_err.h
... ...
@@ -140,6 +130,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
140 140
 %{_libdir}/libext2fs.a
141 141
 %{_libdir}/libss.so
142 142
 %changelog
143
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 1.42.9-3
144
+-	Handled locale files with macro find_lang
143 145
 *   Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 1.42.9-2
144 146
 -   Update according to UsrMove.
145 147
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 1.42.9-1
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:	A collection of utilities and DSOs to handle compiled objects
3 3
 Name:		elfutils
4 4
 Version:	0.158
5
-Release:	3%{?dist}
5
+Release:	4%{?dist}
6 6
 License:	GPLv3+ and (GPLv2+ or LGPLv3+)
7 7
 Group:		Development/Tools
8 8
 Source0:	elfutils-%{version}.tar.bz2
... ...
@@ -114,13 +114,16 @@ chmod +x ${RPM_BUILD_ROOT}/usr/lib/lib*.so*
114 114
 chmod +x ${RPM_BUILD_ROOT}/usr/lib/elfutils/lib*.so*
115 115
 
116 116
 # XXX Nuke unpackaged files
117
-{ cd ${RPM_BUILD_ROOT}
117
+{ pushd ${RPM_BUILD_ROOT}
118 118
   rm -f .%{_bindir}/eu-ld
119 119
   rm -f .%{_includedir}/elfutils/libasm.h
120 120
   rm -f .%{_libdir}/libasm.so
121 121
   rm -f .%{_libdir}/libasm.a
122
+  popd
122 123
 }
123 124
 
125
+%find_lang %{name}
126
+
124 127
 %check
125 128
 make check
126 129
 
... ...
@@ -164,11 +167,10 @@ rm -rf ${RPM_BUILD_ROOT}
164 164
 %{_libdir}/libdw.a
165 165
 #%{_libdir}/libasm.a
166 166
 
167
-%files libelf
167
+%files -f %{name}.lang libelf
168 168
 %defattr(-,root,root)
169 169
 %{_libdir}/libelf-%{version}.so
170 170
 %{_libdir}/libelf.so.*
171
-%{_datadir}/locale/*/LC_MESSAGES/elfutils.mo
172 171
 
173 172
 %files libelf-devel
174 173
 %defattr(-,root,root)
... ...
@@ -182,6 +184,8 @@ rm -rf ${RPM_BUILD_ROOT}
182 182
 %{_libdir}/libelf.a
183 183
 
184 184
 %changelog
185
+* Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 0.158-4
186
+- Handled locale files with macro find_lang
185 187
 * Sat Aug 15 2015 Sharath George <sharathg@vmware.com> 0.158-3
186 188
 - Add in patch for CVE-2014-0172
187 189
 * Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 0.158-2
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:	Contains the GNU compiler collection
3 3
 Name:		gcc
4 4
 Version:	4.8.2
5
-Release:	5%{?dist}
5
+Release:	6%{?dist}
6 6
 License:	GPLv2+
7 7
 URL:		http://gcc.gnu.org
8 8
 Group:		Development/Tools
... ...
@@ -91,7 +91,7 @@ SED=sed \
91 91
 	--disable-silent-rules
92 92
 make %{?_smp_mflags}
93 93
 %install
94
-cd ../gcc-build
94
+pushd ../gcc-build
95 95
 make DESTDIR=%{buildroot} install
96 96
 install -vdm 755 %{buildroot}/%_lib
97 97
 ln -sv %{_bindir}/cpp %{buildroot}/%{_lib}
... ...
@@ -103,13 +103,17 @@ install -vdm 755 %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib}
103 103
 	mv -v %{buildroot}%{_libdir}/*gdb.py %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib}
104 104
 %endif
105 105
 rm -rf %{buildroot}%{_infodir}
106
+popd
107
+%find_lang %{name} --all-name
108
+
106 109
 %check
107 110
 cd ../gcc-build
108 111
 ulimit -s 32768
109 112
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
110 113
 %post	-p /sbin/ldconfig
111 114
 %postun	-p /sbin/ldconfig
112
-%files
115
+
116
+%files -f %{name}.lang
113 117
 %defattr(-,root,root)
114 118
 %{_lib}/cpp
115 119
 #	Executables
... ...
@@ -121,28 +125,6 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
121 121
 %{_libdir}/gcc/*
122 122
 #	Library executables
123 123
 %{_libexecdir}/gcc/*
124
-#	Internationalization
125
-%lang(be)%{_datarootdir}/locale/be/LC_MESSAGES/*.mo
126
-%lang(ca)%{_datarootdir}/locale/ca/LC_MESSAGES/*.mo
127
-%lang(da)%{_datarootdir}/locale/da/LC_MESSAGES/*.mo
128
-%lang(de)%{_datarootdir}/locale/de/LC_MESSAGES/*.mo
129
-%lang(el)%{_datarootdir}/locale/el/LC_MESSAGES/*.mo
130
-%lang(eo)%{_datarootdir}/locale/eo/LC_MESSAGES/*.mo
131
-%lang(es)%{_datarootdir}/locale/es/LC_MESSAGES/*.mo
132
-%lang(fi)%{_datarootdir}/locale/fi/LC_MESSAGES/*.mo
133
-%lang(fr)%{_datarootdir}/locale/fr/LC_MESSAGES/*.mo
134
-%lang(hr)%{_datarootdir}/locale/hr/LC_MESSAGES/*.mo
135
-%lang(id)%{_datarootdir}/locale/id/LC_MESSAGES/*.mo
136
-%lang(ja)%{_datarootdir}/locale/ja/LC_MESSAGES/*.mo
137
-%lang(nl)%{_datarootdir}/locale/nl/LC_MESSAGES/*.mo
138
-%lang(ru)%{_datarootdir}/locale/ru/LC_MESSAGES/*.mo
139
-%lang(sr)%{_datarootdir}/locale/sr/LC_MESSAGES/*.mo
140
-%lang(sv)%{_datarootdir}/locale/sv/LC_MESSAGES/*.mo
141
-%lang(tr)%{_datarootdir}/locale/tr/LC_MESSAGES/*.mo
142
-%lang(uk)%{_datarootdir}/locale/uk/LC_MESSAGES/*.mo
143
-%lang(vi)%{_datarootdir}/locale/vi/LC_MESSAGES/*.mo
144
-%lang(zh_CN)%{_datarootdir}/locale/zh_CN/LC_MESSAGES/*.mo
145
-%lang(zh_TW)%{_datarootdir}/locale/zh_TW/LC_MESSAGES/*.mo
146 124
 #	Man pages
147 125
 %{_mandir}/man1/*.gz
148 126
 %{_mandir}/man7/*.gz
... ...
@@ -228,6 +210,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
228 228
 %endif
229 229
 
230 230
 %changelog
231
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 4.8.2-6
232
+-	Handled locale files with macro find_lang
231 233
 *   Mon Nov 02 2015 Vinay Kulkarni <kulkarniv@vmware.com> 4.8.2-5
232 234
 -   Put libatomic.so into its own package.
233 235
 *   Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 4.8.2-4
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	C debugger
2 2
 Name:		gdb
3 3
 Version:	7.8.2	
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.gz
... ...
@@ -42,9 +42,11 @@ rm %{buildroot}%{_libdir}/libopcodes.a
42 42
 rm %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/opcodes.mo
43 43
 rm %{buildroot}%{_datadir}/locale/fi/LC_MESSAGES/bfd.mo
44 44
 rm %{buildroot}%{_datadir}/locale/fi/LC_MESSAGES/opcodes.mo
45
+%find_lang %{name} --all-name
46
+
45 47
 %check
46 48
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
47
-%files
49
+%files -f %{name}.lang
48 50
 %defattr(-,root,root)
49 51
 %{_includedir}/*.h
50 52
 %{_includedir}/gdb/*.h
... ...
@@ -55,33 +57,9 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
55 55
 %{_datadir}/gdb/system-gdbinit/*
56 56
 %{_bindir}/*
57 57
 %{_mandir}/*/*
58
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/bfd.mo
59
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/opcodes.mo
60
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/bfd.mo
61
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/opcodes.mo
62
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/bfd.mo
63
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/opcodes.mo
64
-%lang(ga) %{_datarootdir}/locale/ga/LC_MESSAGES/opcodes.mo
65
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/bfd.mo
66
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/opcodes.mo
67
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/opcodes.mo
68
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/bfd.mo
69
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/opcodes.mo
70
-%lang(pt_BR) %{_datarootdir}/locale/pt_BR/LC_MESSAGES/opcodes.mo
71
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/bfd.mo
72
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/opcodes.mo
73
-%lang(ru) %{_datarootdir}/locale/ru/LC_MESSAGES/bfd.mo
74
-%lang(rw) %{_datarootdir}/locale/rw/LC_MESSAGES/bfd.mo
75
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/bfd.mo
76
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/opcodes.mo
77
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/bfd.mo
78
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/opcodes.mo
79
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/bfd.mo
80
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/opcodes.mo
81
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/bfd.mo
82
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/opcodes.mo
83
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/bfd.mo
84
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/opcodes.mo
58
+
85 59
 %changelog
60
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 7.9.2-2
61
+-	Handled locale files with macro find_lang
86 62
 *	Wed Apr 08 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.8.2-1
87 63
 -	Initial build. First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Utilities for internationalization and localization
2 2
 Name:		gettext
3 3
 Version:	0.18.3.2
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv3
6 6
 URL:		http://www.gnu.org/software/gettext
7 7
 Group:		Applications/System
... ...
@@ -26,11 +26,13 @@ make DESTDIR=%{buildroot} install
26 26
 find %{buildroot}%{_libdir} -name '*.la' -delete
27 27
 rm -rf %{buildroot}/usr/share/doc/gettext-%{version}/examples
28 28
 rm -rf %{buildroot}%{_infodir}
29
+%find_lang %{name} --all-name
30
+
29 31
 %check
30 32
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
31 33
 %post	-p /sbin/ldconfig
32 34
 %postun	-p /sbin/ldconfig
33
-%files
35
+%files -f %{name}.lang
34 36
 %defattr(-,root,root)
35 37
 %{_bindir}/*
36 38
 %{_includedir}/*
... ...
@@ -41,83 +43,9 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
41 41
 %{_datarootdir}/aclocal/*
42 42
 %{_defaultdocdir}/%{name}-%{version}/*
43 43
 %{_datarootdir}/%{name}/*
44
-%lang(be) %{_datarootdir}/locale/be/LC_MESSAGES/gettext-runtime.mo
45
-%lang(be) %{_datarootdir}/locale/be/LC_MESSAGES/gettext-tools.mo
46
-%lang(bg) %{_datarootdir}/locale/bg/LC_MESSAGES/gettext-runtime.mo
47
-%lang(bg) %{_datarootdir}/locale/bg/LC_MESSAGES/gettext-tools.mo
48
-%lang(ca) %{_datarootdir}/locale/ca/LC_MESSAGES/gettext-runtime.mo
49
-%lang(ca) %{_datarootdir}/locale/ca/LC_MESSAGES/gettext-tools.mo
50
-%lang(cs) %{_datarootdir}/locale/cs/LC_MESSAGES/gettext-runtime.mo
51
-%lang(cs) %{_datarootdir}/locale/cs/LC_MESSAGES/gettext-tools.mo
52
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/gettext-runtime.mo
53
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/gettext-tools.mo
54
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/gettext-runtime.mo
55
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/gettext-tools.mo
56
-%lang(el) %{_datarootdir}/locale/el/LC_MESSAGES/gettext-runtime.mo
57
-%lang(el) %{_datarootdir}/locale/el/LC_MESSAGES/gettext-tools.mo
58
-%lang(en@boldquot) %{_datarootdir}/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo
59
-%lang(en@boldquot) %{_datarootdir}/locale/en@boldquot/LC_MESSAGES/gettext-tools.mo
60
-%lang(en@quot) %{_datarootdir}/locale/en@quot/LC_MESSAGES/gettext-runtime.mo
61
-%lang(en@quot) %{_datarootdir}/locale/en@quot/LC_MESSAGES/gettext-tools.mo
62
-%lang(eo) %{_datarootdir}/locale/eo/LC_MESSAGES/gettext-runtime.mo
63
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/gettext-runtime.mo
64
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/gettext-tools.mo
65
-%lang(et) %{_datarootdir}/locale/et/LC_MESSAGES/gettext-runtime.mo
66
-%lang(et) %{_datarootdir}/locale/et/LC_MESSAGES/gettext-tools.mo
67
-%lang(eu) %{_datarootdir}/locale/eu/LC_MESSAGES/gettext-tools.mo
68
-%lang(fi) %{_datarootdir}/locale/fi/LC_MESSAGES/gettext-runtime.mo
69
-%lang(fi) %{_datarootdir}/locale/fi/LC_MESSAGES/gettext-tools.mo
70
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/gettext-runtime.mo
71
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/gettext-tools.mo
72
-%lang(ga) %{_datarootdir}/locale/ga/LC_MESSAGES/gettext-runtime.mo
73
-%lang(gl) %{_datarootdir}/locale/gl/LC_MESSAGES/gettext-runtime.mo
74
-%lang(gl) %{_datarootdir}/locale/gl/LC_MESSAGES/gettext-tools.mo
75
-%lang(hr) %{_datarootdir}/locale/hr/LC_MESSAGES/gettext-runtime.mo
76
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/gettext-runtime.mo
77
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/gettext-tools.mo
78
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/gettext-runtime.mo
79
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/gettext-tools.mo
80
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/gettext-runtime.mo
81
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/gettext-tools.mo
82
-%lang(ko) %{_datarootdir}/locale/ko/LC_MESSAGES/gettext-runtime.mo
83
-%lang(ko) %{_datarootdir}/locale/ko/LC_MESSAGES/gettext-tools.mo
84
-%lang(nb) %{_datarootdir}/locale/nb/LC_MESSAGES/gettext-runtime.mo
85
-%lang(nb) %{_datarootdir}/locale/nb/LC_MESSAGES/gettext-tools.mo
86
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/gettext-runtime.mo
87
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/gettext-tools.mo
88
-%lang(nn) %{_datarootdir}/locale/nn/LC_MESSAGES/gettext-runtime.mo
89
-%lang(nn) %{_datarootdir}/locale/nn/LC_MESSAGES/gettext-tools.mo
90
-%lang(pa) %{_datarootdir}/locale/pa/LC_MESSAGES/gettext-tools.mo
91
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/gettext-runtime.mo
92
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/gettext-tools.mo
93
-%lang(pt) %{_datarootdir}/locale/pt/LC_MESSAGES/gettext-runtime.mo
94
-%lang(pt) %{_datarootdir}/locale/pt/LC_MESSAGES/gettext-tools.mo
95
-%lang(pt_BR) %{_datarootdir}/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo
96
-%lang(pt_BR) %{_datarootdir}/locale/pt_BR/LC_MESSAGES/gettext-tools.mo
97
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/gettext-runtime.mo
98
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/gettext-tools.mo
99
-%lang(ru) %{_datarootdir}/locale/ru/LC_MESSAGES/gettext-runtime.mo
100
-%lang(ru) %{_datarootdir}/locale/ru/LC_MESSAGES/gettext-tools.mo
101
-%lang(sk) %{_datarootdir}/locale/sk/LC_MESSAGES/gettext-runtime.mo
102
-%lang(sk) %{_datarootdir}/locale/sk/LC_MESSAGES/gettext-tools.mo
103
-%lang(sl) %{_datarootdir}/locale/sl/LC_MESSAGES/gettext-runtime.mo
104
-%lang(sl) %{_datarootdir}/locale/sl/LC_MESSAGES/gettext-tools.mo
105
-%lang(sr) %{_datarootdir}/locale/sr/LC_MESSAGES/gettext-runtime.mo
106
-%lang(sr) %{_datarootdir}/locale/sr/LC_MESSAGES/gettext-tools.mo
107
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/gettext-runtime.mo
108
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/gettext-tools.mo
109
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/gettext-runtime.mo
110
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/gettext-tools.mo
111
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/gettext-runtime.mo
112
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/gettext-tools.mo
113
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/gettext-runtime.mo
114
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/gettext-tools.mo
115
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo
116
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/gettext-tools.mo
117
-%lang(zh_HK) %{_datarootdir}/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo
118
-%lang(zh_TW) %{_datarootdir}/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo
119
-%lang(zh_TW) %{_datarootdir}/locale/zh_TW/LC_MESSAGES/gettext-tools.mo
120 44
 %{_mandir}/*/*
121 45
 %changelog
46
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 0.18.3.2-2
47
+-	Handled locale files with macro find_lang
122 48
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 0.18.3.2-1
123 49
 -	Initial build. First version
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:	Main C library
5 5
 Name:		glibc
6 6
 Version:	2.21
7
-Release:	5%{?dist}
7
+Release:	6%{?dist}
8 8
 License:	LGPLv2+
9 9
 URL:		http://www.gnu.org/software/libc
10 10
 Group:		Applications/System
... ...
@@ -83,7 +83,7 @@ cd %{_builddir}/glibc-build
83 83
 make -k check > %{_topdir}/LOGS/%{name}-check.log 2>&1 || true
84 84
 %install
85 85
 #	Do not remove static libs
86
-cd %{_builddir}/glibc-build
86
+pushd %{_builddir}/glibc-build
87 87
 #	Create directories
88 88
 make install_root=%{buildroot} install
89 89
 install -vdm 755 %{buildroot}%{_sysconfdir}/ld.so.conf.d
... ...
@@ -118,6 +118,8 @@ cat > %{buildroot}%{_sysconfdir}/ld.so.conf <<- "EOF"
118 118
 	/opt/lib
119 119
 	include /etc/ld.so.conf.d/*.conf
120 120
 EOF
121
+popd
122
+%find_lang %{name} --all-name
121 123
 
122 124
 %post
123 125
 printf "Creating ldconfig cache\n";/sbin/ldconfig
... ...
@@ -157,46 +159,14 @@ printf "Creating ldconfig cache\n";/sbin/ldconfig
157 157
 %endif
158 158
 %{_includedir}/*
159 159
 
160
-%files lang
160
+%files -f %{name}.lang lang
161 161
 %defattr(-,root,root)
162
-%lang(be) %{_datarootdir}/locale/be/LC_MESSAGES/libc.mo
163
-%lang(bg) %{_datarootdir}/locale/bg/LC_MESSAGES/libc.mo
164
-%lang(ca) %{_datarootdir}/locale/ca/LC_MESSAGES/libc.mo
165
-%lang(cs) %{_datarootdir}/locale/cs/LC_MESSAGES/libc.mo
166
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/libc.mo
167
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/libc.mo
168
-%lang(el) %{_datarootdir}/locale/el/LC_MESSAGES/libc.mo
169
-%lang(en_GB) %{_datarootdir}/locale/en_GB/LC_MESSAGES/libc.mo
170
-%lang(eo) %{_datarootdir}/locale/eo/LC_MESSAGES/libc.mo
171
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/libc.mo
172
-%lang(fi) %{_datarootdir}/locale/fi/LC_MESSAGES/libc.mo
173
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/libc.mo
174
-%lang(gl) %{_datarootdir}/locale/gl/LC_MESSAGES/libc.mo
175
-%lang(hr) %{_datarootdir}/locale/hr/LC_MESSAGES/libc.mo
176
-%lang(hu) %{_datarootdir}/locale/hu/LC_MESSAGES/libc.mo
177
-%lang(ia) %{_datarootdir}/locale/ia/LC_MESSAGES/libc.mo
178
-%lang(id) %{_datarootdir}/locale/id/LC_MESSAGES/libc.mo
179
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/libc.mo
180
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/libc.mo
181
-%lang(ko) %{_datarootdir}/locale/ko/LC_MESSAGES/libc.mo
182 162
 %{_datarootdir}/locale/locale.alias
183
-%lang(lt) %{_datarootdir}/locale/lt/LC_MESSAGES/libc.mo
184
-%lang(nb) %{_datarootdir}/locale/nb/LC_MESSAGES/libc.mo
185
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/libc.mo
186
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/libc.mo
187
-%lang(pt_BR) %{_datarootdir}/locale/pt_BR/LC_MESSAGES/libc.mo
188
-%lang(ru) %{_datarootdir}/locale/ru/LC_MESSAGES/libc.mo
189
-%lang(rw) %{_datarootdir}/locale/rw/LC_MESSAGES/libc.mo
190
-%lang(sk) %{_datarootdir}/locale/sk/LC_MESSAGES/libc.mo
191
-%lang(sl) %{_datarootdir}/locale/sl/LC_MESSAGES/libc.mo
192
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/libc.mo
193
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/libc.mo
194
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/libc.mo
195
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/libc.mo
196
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/libc.mo
197
-%lang(zh_TW) %{_datarootdir}/locale/zh_TW/LC_MESSAGES/libc.mo
163
+
198 164
 
199 165
 %changelog
166
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 2.19-6
167
+-	Handled locale files with macro find_lang
200 168
 *       Wed Aug 05 2015 Kumar Kaushik <kaushikk@vmware.com> 2.19-5
201 169
         Adding postun section for ldconfig.
202 170
 *	Tue Jul 28 2015 Alexey Makhalov <amakhalov@vmware.com> 2.19-4
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:      	libgpg-error
3 3
 Name:         	libgpg-error
4 4
 Version:      	1.17
5
-Release:      	1%{?dist}
5
+Release:      	2%{?dist}
6 6
 License:      	GPLv2+
7 7
 URL:          	ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/
8 8
 Group:		Development/Libraries
... ...
@@ -31,6 +31,7 @@ echo $%{_bindir}
31 31
 #cp %{buildroot}/usr/local/lib/* %{buildroot}%{_libdir}/
32 32
 find %{buildroot}/%{_libdir} -name '*.la' -delete
33 33
 rm -rf %{buildroot}/%{_infodir}
34
+%find_lang %{name}
34 35
 
35 36
 %post 
36 37
 /sbin/ldconfig
... ...
@@ -39,7 +40,7 @@ rm -rf %{buildroot}/%{_infodir}
39 39
 /sbin/ldconfig
40 40
 
41 41
 echo %{_libdir}
42
-%files
42
+%files -f %{name}.lang
43 43
 %defattr(-,root,root)
44 44
 %{_bindir}/*
45 45
 %{_libdir}/*gpg-error.so*
... ...
@@ -47,23 +48,10 @@ echo %{_libdir}
47 47
 %{_datadir}/aclocal/gpg-error.m4
48 48
 %{_mandir}/man1/*
49 49
 %{_datarootdir}/common-lisp/*
50
-%lang(cs) %{_datarootdir}/locale/cs/LC_MESSAGES/libgpg-error.mo
51
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/libgpg-error.mo
52
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/libgpg-error.mo
53
-%lang(eo) %{_datarootdir}/locale/eo/LC_MESSAGES/libgpg-error.mo
54
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/libgpg-error.mo
55
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/libgpg-error.mo
56
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/libgpg-error.mo
57
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/libgpg-error.mo
58
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/libgpg-error.mo
59
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/libgpg-error.mo
60
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/libgpg-error.mo
61
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/libgpg-error.mo
62
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/libgpg-error.mo
63
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/libgpg-error.mo
64
-
65 50
 
66 51
 %changelog
52
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 1.17-2
53
+-	Handled locale files with macro find_lang
67 54
 * Tue Dec 30 2014 Priyesh Padmavilasom <ppadmavilasom@vmware.com>
68 55
 - initial specfile.
69 56
 
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Programs for finding and viewing man pages
2 2
 Name:		man-db
3 3
 Version:	2.6.6
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.nongnu.org/man-db
7 7
 Group:		Applications/System
... ...
@@ -35,7 +35,7 @@ make %{?_smp_mflags}
35 35
 %install
36 36
 make DESTDIR=%{buildroot} install
37 37
 find %{buildroot}%{_libdir} -name '*.la' -delete
38
-%find_lang %{name}
38
+%find_lang %{name} --all-name
39 39
 %check
40 40
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
41 41
 %post	-p /sbin/ldconfig
... ...
@@ -49,44 +49,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
49 49
 %{_libdir}/man-db/*
50 50
 %{_defaultdocdir}/%{name}-%{version}/*
51 51
 %{_mandir}/*/*
52
-%lang(af) %{_datarootdir}/locale/af/LC_MESSAGES/man-db-gnulib.mo
53
-%lang(be) %{_datarootdir}/locale/be/LC_MESSAGES/man-db-gnulib.mo
54
-%lang(bg) %{_datarootdir}/locale/bg/LC_MESSAGES/man-db-gnulib.mo
55
-%lang(ca) %{_datarootdir}/locale/ca/LC_MESSAGES/man-db-gnulib.mo
56
-%lang(cs) %{_datarootdir}/locale/cs/LC_MESSAGES/man-db-gnulib.mo
57
-%lang(da) %{_datarootdir}/locale/da/LC_MESSAGES/man-db-gnulib.mo
58
-%lang(de) %{_datarootdir}/locale/de/LC_MESSAGES/man-db-gnulib.mo
59
-%lang(de) %{_datarootdir}/locale/eo/LC_MESSAGES/man-db-gnulib.mo
60
-%lang(el) %{_datarootdir}/locale/el/LC_MESSAGES/man-db-gnulib.mo
61
-%lang(es) %{_datarootdir}/locale/es/LC_MESSAGES/man-db-gnulib.mo
62
-%lang(et) %{_datarootdir}/locale/et/LC_MESSAGES/man-db-gnulib.mo
63
-%lang(eu) %{_datarootdir}/locale/eu/LC_MESSAGES/man-db-gnulib.mo
64
-%lang(fi) %{_datarootdir}/locale/fi/LC_MESSAGES/man-db-gnulib.mo
65
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/man-db-gnulib.mo
66
-%lang(ga) %{_datarootdir}/locale/ga/LC_MESSAGES/man-db-gnulib.mo
67
-%lang(gl) %{_datarootdir}/locale/gl/LC_MESSAGES/man-db-gnulib.mo
68
-%lang(hu) %{_datarootdir}/locale/hu/LC_MESSAGES/man-db-gnulib.mo
69
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/man-db-gnulib.mo
70
-%lang(ja) %{_datarootdir}/locale/ja/LC_MESSAGES/man-db-gnulib.mo
71
-%lang(ko) %{_datarootdir}/locale/ko/LC_MESSAGES/man-db-gnulib.mo
72
-%lang(ms) %{_datarootdir}/locale/ms/LC_MESSAGES/man-db-gnulib.mo
73
-%lang(nb) %{_datarootdir}/locale/nb/LC_MESSAGES/man-db-gnulib.mo
74
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/man-db-gnulib.mo
75
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/man-db-gnulib.mo
76
-%lang(pt) %{_datarootdir}/locale/pt/LC_MESSAGES/man-db-gnulib.mo
77
-%lang(pt) %{_datarootdir}/locale/pt_BR/LC_MESSAGES/man-db-gnulib.mo
78
-%lang(ro) %{_datarootdir}/locale/ro/LC_MESSAGES/man-db-gnulib.mo
79
-%lang(ru) %{_datarootdir}/locale/ru/LC_MESSAGES/man-db-gnulib.mo
80
-%lang(rw) %{_datarootdir}/locale/rw/LC_MESSAGES/man-db-gnulib.mo
81
-%lang(sk) %{_datarootdir}/locale/sk/LC_MESSAGES/man-db-gnulib.mo
82
-%lang(sl) %{_datarootdir}/locale/sl/LC_MESSAGES/man-db-gnulib.mo
83
-%lang(sr) %{_datarootdir}/locale/sr/LC_MESSAGES/man-db-gnulib.mo
84
-%lang(sv) %{_datarootdir}/locale/sv/LC_MESSAGES/man-db-gnulib.mo
85
-%lang(tr) %{_datarootdir}/locale/tr/LC_MESSAGES/man-db-gnulib.mo
86
-%lang(uk) %{_datarootdir}/locale/uk/LC_MESSAGES/man-db-gnulib.mo
87
-%lang(vi) %{_datarootdir}/locale/vi/LC_MESSAGES/man-db-gnulib.mo
88
-%lang(zh_CN) %{_datarootdir}/locale/zh_CN/LC_MESSAGES/man-db-gnulib.mo
89
-%lang(zh_TW) %{_datarootdir}/locale/zh_TW/LC_MESSAGES/man-db-gnulib.mo
90 52
 %changelog
53
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 2.6.6-2
54
+-	Handled locale files with macro find_lang
91 55
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2.6.6-1
92 56
 -	Initial build. First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Text editor
2 2
 Name:		nano
3 3
 Version:	2.2.6
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.nano-editor.org/
7 7
 Group:		Applications/Editors
... ...
@@ -26,14 +26,16 @@ make
26 26
 make DESTDIR=%{buildroot} install
27 27
 install -v -m644 %{_builddir}/%{name}-%{version}/doc/nanorc.sample %{_sysconfdir}
28 28
 install -v -m644 %{_builddir}/%{name}-%{version}/doc/texinfo/nano.html %{_docdir}/%{name}-%{version}.html
29
-%files
29
+%find_lang %{name}
30
+%files -f %{name}.lang
30 31
 %defattr(-,root,root)
31 32
 %{_bindir}/*
32 33
 %{_mandir}/man*/*
33 34
 %{_mandir}/fr/man*/*
34 35
 %{_infodir}/%{name}-%{version}/*
35
-%{_datadir}/locale/*/LC_MESSAGES/nano.mo
36 36
 %{_datadir}/nano/*
37 37
 %changelog
38
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 2.2.6-2
39
+-	Handled locale files with macro find_lang
38 40
 *	Tue Dec 30 2014 Mahmoud Bassiouny <mbassiouny@vmware.com> 2.2.6-1
39 41
 -	Initial build.	First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:    	The Apache Subversion control system
2 2
 Name:       	subversion
3 3
 Version:    	1.8.13
4
-Release:    	4%{?dist}
4
+Release:    	5%{?dist}
5 5
 License:    	Apache License 2.0
6 6
 URL:        	http://subversion.apache.org/
7 7
 Group:      	Utilities/System
... ...
@@ -38,24 +38,12 @@ make %{?_smp_mflags}
38 38
 
39 39
 %install
40 40
 make -j1 DESTDIR=%{buildroot} install 
41
-
42
-%files
41
+%find_lang %{name}
42
+%files -f %{name}.lang
43 43
 %defattr(-,root,root)
44 44
 %{_bindir}/svn*
45 45
 %{_libdir}/libsvn_*.so.*
46 46
 %{_mandir}/*
47
-%lang(de) %{_datadir}/locale/de/LC_MESSAGES/subversion.mo
48
-%lang(es) %{_datadir}/locale/es/LC_MESSAGES/subversion.mo
49
-%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/subversion.mo
50
-%lang(it) %{_datadir}/locale/it/LC_MESSAGES/subversion.mo
51
-%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/subversion.mo
52
-%lang(ko) %{_datadir}/locale/ko/LC_MESSAGES/subversion.mo
53
-%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/subversion.mo
54
-%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/subversion.mo
55
-%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/subversion.mo
56
-%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/subversion.mo
57
-%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/subversion.mo
58
-%lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/subversion.mo
59 47
 
60 48
 %files devel
61 49
 %{_includedir}/*
... ...
@@ -64,6 +52,8 @@ make -j1 DESTDIR=%{buildroot} install
64 64
 %exclude %{_libdir}/debug/
65 65
 
66 66
 %changelog
67
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 1.8.13-5
68
+-	Handled locale files with macro find_lang
67 69
 * 	Tue Sep 22 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.8.13-4
68 70
 -	Updated build-requires after creating devel package for apr. 
69 71
 *   Mon Sep 21 2015 Xiaolin Li <xiaolinl@vmware.com> 1.8.13-3
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Reading, writing, and converting info pages
2 2
 Name:		texinfo
3 3
 Version:	5.2
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.gnu.org/software/texinfo/
7 7
 Group:		Applications/System
... ...
@@ -23,7 +23,7 @@ make %{?_smp_mflags}
23 23
 make DESTDIR=%{buildroot} install
24 24
 make DESTDIR=%{buildroot} TEXMF=%{_datarootdir}/texmf install-tex
25 25
 rm -rf %{buildroot}%{_infodir}
26
-%find_lang %{name}
26
+%find_lang %{name} --all-name
27 27
 %check
28 28
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
29 29
 %files -f %{name}.lang
... ...
@@ -34,18 +34,9 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
34 34
 %{_datarootdir}/texinfo/*
35 35
 %dir %{_datarootdir}/texmf
36 36
 %{_datarootdir}/texmf/*
37
-%lang(de.us-ascii) %{_datarootdir}/locale/de.us-ascii/LC_MESSAGES/texinfo_document.mo
38
-%lang(eo) %{_datarootdir}/locale/eo/LC_MESSAGES/texinfo_document.mo
39
-%lang(es.us-ascii) %{_datarootdir}/locale/es.us-ascii/LC_MESSAGES/texinfo_document.mo
40
-%lang(fr) %{_datarootdir}/locale/fr/LC_MESSAGES/texinfo_document.mo
41
-%lang(hu) %{_datarootdir}/locale/hu/LC_MESSAGES/texinfo_document.mo
42
-%lang(it) %{_datarootdir}/locale/it/LC_MESSAGES/texinfo_document.mo
43
-%lang(nl) %{_datarootdir}/locale/nl/LC_MESSAGES/texinfo_document.mo
44
-%lang(no.us-ascii) %{_datarootdir}/locale/no.us-ascii/LC_MESSAGES/texinfo_document.mo
45
-%lang(pl) %{_datarootdir}/locale/pl/LC_MESSAGES/texinfo_document.mo
46
-%lang(pt.us-ascii) %{_datarootdir}/locale/pt.us-ascii/LC_MESSAGES/texinfo_document.mo
47
-%lang(pt_BR.us-ascii) %{_datarootdir}/locale/pt_BR.us-ascii/LC_MESSAGES/texinfo_document.mo
48 37
 %changelog
38
+*	Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 5.2-3
39
+-	Handled locale files with macro find_lang
49 40
 *	Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 5.2-2
50 41
 -	Removing perl-libintl package from run-time required packages
51 42
 *	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.2-1