summaryrefslogtreecommitdiffstats
path: root/indexhtml.spec
blob: eb9d914f545b6a32cb05fc1779249364a3803e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
Summary:	Mandrake html welcome page
Name:		indexhtml
Version:	10.0
Release:	13mdk
Source:		indexhtml-%version.tar.bz2
Group:		System/Base
License:	GPL
BuildRoot:	%_tmppath/%name-%version-%release-root
BuildArch:	noarch



%description
Mandrake index.html welcome page.

%prep

%setup -q

%build


%install
rm -fr %buildroot/

find $RPM_BUILD_DIR/%name -name "*~" -print | xargs /bin/rm -fr
find $RPM_BUILD_DIR/%name -name "CVS" -print | xargs /bin/rm -fr

install -d -m 0755 %buildroot/%_datadir/mdk/indexhtml/
install -m 0644 HTML/* %buildroot/%_datadir/mdk/indexhtml/

install -d -m 0755 %buildroot/%_datadir/mdk/mail/text/
install -d -m 0755 %buildroot/%_datadir/mdk/mail/html/
for lang in $(find mail/header-* -type f | sed "s|mail/header-||" ); do
	cat mail/header-$lang &> tmpfile
	cat mail/mail-$lang.txt >> tmpfile
	install -m 0644 tmpfile %buildroot/%_datadir/mdk/mail/text/mail-$lang

	cat mail/header-$lang &> tmpfile
	echo "Content-Type: multipart/related; type=\"multipart/alternative\";" >>tmpfile
	echo "	 boundary=\"=-tThpx1YEZqL4gn53WjQ1\"" >> tmpfile
	echo "" >> tmpfile
	echo "--=-tThpx1YEZqL4gn53WjQ1" >> tmpfile
	echo "Content-Type: multipart/alternative; boundary=\"=-aFPGjTr5jUHhXPWxbLcT\"" >>tmpfile
	echo "" >> tmpfile
	echo "--=-aFPGjTr5jUHhXPWxbLcT" >> tmpfile
	cat mail/mail-$lang.txt >> tmpfile
	cat mail/mail-$lang.html >> tmpfile
	cat mail/mail-images >> tmpfile
	install -m 0644 tmpfile %buildroot/%_datadir/mdk/mail/html/mail-$lang

done

install -d -m 0755 %buildroot/%_datadir/doc/HTML/
install -m 0644 HTML/index-en.html %buildroot/%_datadir/doc/HTML/index.html


%clean
rm -fr %buildroot


%post
if [ -r /etc/sysconfig/i18n ] ; then
    . /etc/sysconfig/i18n
    if [ -n "$LANGUAGE" ]; then
        LISTLANG="`echo $LANGUAGE | tr ':' ' '`" ;
    else
        if [ -n "$LANG" ]; then
            LISTLANG="$LANG"
        else
            LISTLANG=en
        fi
    fi
else
    LISTLANG=en
fi

for i in $LISTLANG
do
    if [ -r %_datadir/mdk/indexhtml/index-$i.html ]; then
        cat %_datadir/mdk/indexhtml/index-$i.html > %_datadir/doc/HTML/index.html
        break
    else
        lang=`echo $i | cut -b-2`
        if [ -r %_datadir/mdk/indexhtml/index-$lang.html ]; then
            cat %_datadir/mdk/indexhtml/index-$lang.html > %_datadir/doc/HTML/index.html
            break;

        fi
    fi
done

if [ ! -r %_datadir/doc/HTML/index.html ]; then
    cat %_datadir/mdk/indexhtml/index-en.html > %_datadir/doc/HTML/index.html
fi



%files
%defattr(-,root,root,-)
%dir %_datadir/mdk/
%dir %_datadir/mdk/indexhtml/
%_datadir/mdk/indexhtml/*
#
%dir %_datadir/mdk/mail/
%_datadir/mdk/mail/*
#
%_datadir/doc/HTML/index.html


%changelog
* Wed Apr 07 2004 Pablo Saratxaga <pablo@mandrakesoft.com> 10.0-11mdk
- corrected accent in generated multipart mail

* Mon Mar 29 2004 Pablo Saratxaga <pablo@mandrakesoft.com> 10.0-12mdk
- integrated Basque translations
- Updates/additions for Catalan, Armenian, Chinese, Tajik, Macedonian,
  Slovenian, Polish, Azeri, Kyrgyz, Arabic

* Fri Mar 12 2004 David Baudens <baudens@mandrakesoft.com> 10.0-11mdk
- Switch to Mandrakelinux

* Fri Feb 27 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 10.0-10mdk
- Update po

* Thu Feb 26 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 10.0-9mdk
- Update po

* Tue Feb 24 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 10.0-8mdk
- Update first mail

* Mon Feb 23 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 10.0-7mdk
- Fix header

* Mon Feb 23 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 10.0-6mdk
- Use new first message

* Tue Feb 17 2004 David Baudens <baudens@mandrakesoft.com> 10.0-5mdk
- Don't install placeholder.h (seems useless)

* Tue Feb 17 2004 David Baudens <baudens@mandrakesoft.com> 10.0-4mdk
- Fix update

* Mon Feb 16 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 10.0-3mdk
- Install first mail

* Fri Feb 06 2004 David Baudens <baudens@mandrakesoft.com> 10.0-2mdk
- Fix update

* Tue Jan 27 2004 David Baudens <baudens@mandrakesoft.com> - 10.0-1mdk
- New english files. All old translations have been removed

* Mon Sep 01 2003 David Baudens <baudens@mandrakesoft.com> - 9.1-10mdk
- Remove Safari
- Updated Azeri, Swedish, Danish and Hebrew pages
- added Hindi and Uzbek cyrillic pages
- changed names of Serbian pages to match new naming
- added Chinese "welcome" to image

* Wed Mar 26 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 9.1-9mdk
- Fix japanase stylesheet

* Thu Mar 13 2003 Frederic Lepied <flepied@mandrakesoft.com> 9.1-8mdk
- removed buggy %postun

* Tue Mar 11 2003 Frederic Lepied <flepied@mandrakesoft.com> 9.1-7mdk
- removed obsolete sites from title bar

* Mon Mar 10 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 9.1-6mdk
- various new translations
- corrected stylesheet link on default page

* Fri Mar 07 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 9.1-5mdk
- Fix indexhtml page location

* Thu Mar 06 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 9.1-4mdk
- fix generation of the html file
- cleanup before removal

* Thu Feb 27 2003 David BAUDENS <baudens@mandrakesoft.com> 9.1-3mdk
- Move in /usr/share/mdk

* Mon Feb 24 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 9.1-2mdk
- updated message of the indexhtml pages

* Wed Jan 29 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 9.1-1mdk
- updated Finnish, Ukrainian and Tamil files
- added Hebrew, Nynorsk and Tajiki files
- added favicon.png so browsers supporting it can display a nice mdk icon
- changed stylesheet for chinese, as konqueror didn't displayed all chars

* Fri Nov 22 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 9.0-9mdk
- small corrections on various files (fixed links)
- updated Estonian and Catalan files

* Mon Nov 18 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 9.0-8mdk
- Added Finnish file
- corrected Japanese typo
- updated Macedonian and traditional Chinese files

* Thu Sep 12 2002 David BAUDENS <baudens@mandrakesoft.com> 9.0-7mdk
- Fix one bad translation in french page

* Thu Sep  5 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 9.0-6mdk
- Updated Chinese and Slovak pages
- Added Portuguese and Maltese files
- s/linux-mandrake.com/mandrakelinux.com/g

* Tue Sep 03 2002 David BAUDENS <baudens@mandrakesoft.com> 9.0-5mdk
- Remove obsoletes pages and flags
- Add MandrakeClub links

* Thu Aug 29 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 9.0-4mdk
- added Tamil page; updated Korean and Norwegian pages
- fixed another typo (thanks to Per Oyvind Karlsen)

* Thu Aug 29 2002 David BAUDENS <baudens@mandrakesoft.com> 9.0-3mdk
- Fix a typo (thanks to Quel Qun)

* Fri Aug 16 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 9.0-2mdk
- updated Czech and Polish files
- fixed Linux Weekly News urls

* Mon Jul 29 2002 David BAUDENS <baudens@mandrakesoft.com> 9.0-1mdk
- fix a typo. Thanks to Spearman

* Mon Jul 22 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 8.2-7mdk
- updated Slovak file

* Tue Jul 16 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 8.2-6mdk
- fixed a typo in English file
- updated Romanian and Bulgarian files

* Mon Mar 11 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 8.2-5mdk
- updated cy, da, nl, sr, ru, hr, ms, sl pages

* Mon Mar 04 2002 David BAUDENS <baudens@mandrakesoft.com> 8.2-4mdk
- Remove MamaLinux from french page

* Wed Feb 20 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 8.2-3mdk
- checked all pages with mozilla and konqueror, and do some changes in
  stylesheets so they all display correctly

* Tue Feb 19 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 8.2-2mdk
- updated Italian and Arabic files

* Fri Feb 08 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 8.2-1mdk
- changed version to match distribution version
- fixed Japanese encoding declaration; converted to utf-8 the iso-8859-13
  (Netscape has a bug with it) and iso-8859-14 (alsmot no browser supports
  it) pages.

* Fri Dec 07 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 8.1-10mdk
- updates of various translated files; utf-8 used instead of marginal
  encodings

* Fri Oct 26 2001 David BAUDENS <bauden@mandrakesoft.com> 8.1-9mdk
- Fix bad links in english and french pages

* Mon Sep 24 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 8.1-8mdk
- rebuild including latest translations

* Fri Sep 21 2001 David BAUDENS <baudens@mandrakesoft.com> 8.1-7mdk
- Add german translation (thanks to Stefan Siegel)

* Fri Sep 21 2001 David BAUDENS <baudens@mandrakesoft.com> 8.1-6mdk
- Fix a typo in french page
- Add french links in french page

* Mon Sep 17 2001 David BAUDENS <baudens@mandrakesoft.com> 8.1-5mdk
- Fix french translation (thanks to Laurent MONTEL)
- Fix english translation (thanks to Frederic BASTOK)

* Sun Sep 16 2001 David BAUDENS <baudens@mandrakesoft.com> 8.1-4mdk
- Add french translation

* Thu Sep 13 2001 David BAUDENS <baudens@mandrakesoft.com> 8.1-3mdk
- Use new indexhtml page for english

* Tue Sep 06 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 8.1-2mdk
- fixed typos in Hungarian file

* Mon Aug 13 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 8.1-1mdk
- changed to 8.1 the version number.
- Updated Hungarian page, added Bosanski page

* Fri Apr 20 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 8.0-4mdk
- added Traditional Chinese page
- corrected Red Hat Linux name (bug #2919)

* Mon Apr 16 2001 David BAUDENS <baudens@mandrakesoft.com> 8.0-3mdk
- Fix dead link in index-fr.html

* Fri Apr 12 2001 David BAUDENS <baudens@mandrakesoft.com> 8.0-2mdk
- Changed index-en.html, index-fr.html and index.html

* Tue Mar 06 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 8.0-1mdk
- changed version to 8.0
- added some more html files

* Thu Jan 30 2001 Pablo Saratxaga <pablo@mandrakesoft.com> 7.2-1mdk
- added Georgian and Azeri files
- correction and updates for Croatian, Lithuanian and Macedonian
- changed version to 7.2

* Fri Oct 06 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-12mdk
- added Korean page

* Fri Sep 15 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 7.1-11mdk
- fix out the conflict with mine and pablo upload

* Fri Sep 15 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 7.1-10mdk
- corrected %pre script, Pablo sucks

* Mon Sep 04 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-9mdk
- added Greek page
- corrections to Czech page
- macrozification

* Mon Aug 28 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-8mdk
- corrections to the Polish file

* Mon Jul 17 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-7mdk
- added Basque file

* Mon Jul 03 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-6mdk
- corrected typos in the Czech file
- corrected the charset declaration of some pages

* Fri Jun 16 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-5mdk
- Added Arabic file

* Mon May 22 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-4mdk
- Corrected typo in Russian file (a word was truncated)

* Thu May 18 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-3mdk
- Added simplified Chinese & Afrikaans files

* Fri Apr 21 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.1-2mdk
- added Slovenian and Vietnamese pages

* Tue Apr 18 2000 Warly <warly@mandrakesoft.com> 7.1-1mdk
- 7.1

* Tue Apr 18 2000 dam's <damien@mandrakesoft.com> 7.0-6mdk
- Changed logo, icon.

* Thu Feb 03 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.0-5mdk
- added Serbian (both latin and Cyrillic) language file

* Mon Jan 10 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
- added Latvian page

* Wed Jan 05 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
- added Japanese page

* Mon Dec 27 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- corrected some html pages
- added Esperanto page

* Tue Dec 21 1999 Florent Villard <warly@mandrakesoft.com>
- new images for 7.0

* Tue Nov 16 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added cs, gl translations

* Fri Nov 05 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added bg, da, et, mk, sk translations

* Fri Sep 28 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added translations for br, ca, cy, pt

* Fri Sep 17 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added translations for ga,is,lt,pl,ru,tr,uk

* Tue Sep 14 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added translations for de,hu,nl,ro

* Sat Aug 21 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added es,fr,id,no,wa files & descriptions; added a bar on bottom of
  all pages to choose the language.

* Tue Jul 06 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Rewriting the .spec.
- Build for new environement (Rel: 3mdk).

* Thu Apr 29 1999 Gaël Duval <gael@linux-mandrake.com>
- lipstick

* Thu Apr 25 1999 Gaël Duval <gael@linux-mandrake.com>
- updated for Linux-Mandrake 6.0

* Thu Jan 21 1999 Gaël Duval <gael@linux-mandrake.com>
- updated for Linux-Mandrake 5.3

* Mon Nov 16 1998 Gaël Duval <gael@linux-mandrake.com>
- updated for Linux-Mandrake

* Sun Oct 11 1998 Bill Nottingham <notting@redhat.c9om>
- point to 5.2 installation guide
- 90 days installation support, not 30

* Tue Oct  6 1998 Matt Wilson <msw@redhat.com>
- Remove link to Applixware as we no longer ship it.

* Sat Sep 19 1998 Jeff johnson <jbj@redhat.com>
- update version to 5.2.
- tweak description so that it's slightly different than summary.

* Tue Jul 21 1998 Jeff Johnson <jbj@redhat.com>
- fix spelling error.
- add build root.

* Wed May 06 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Wed May 06 1998 Edward C. Bailey <ed@redhat.com>
- Added link to 5.1 Installation Guide

* Mon May 04 1998 Erik Troan <ewt@redhat.com>
- changed summary and description for new version of RPM

* Fri Oct 24 1997 Otto Hammersmith <otto@redhat.com>
- updated for 5.0.. new links to various LDP guides

* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
- made a noarch package

* Tue Apr 15 1997 Erik Troan <ewt@redhat.com>
- Incorporated Otto's fix into tarball properly. 

* Mon Apr 14 1997 Otto Hammersmith <otto@redhat.com>
- Fixed an error in /usr/doc/HTML/index.html that said we provided 
  60 days of installation support, not 30 like it should.