summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-01-19 21:52:46 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-01-19 21:52:46 +0000
commit365ff5fbaca2dabb16c6e80bdb77675f761a8016 (patch)
tree3d96159ff960e180f051fbabadd22df0f58d3257
parent14d24c1c0fb349594446c8d7c3c0761987423f08 (diff)
downloadindexhtml-365ff5fbaca2dabb16c6e80bdb77675f761a8016.tar
indexhtml-365ff5fbaca2dabb16c6e80bdb77675f761a8016.tar.gz
indexhtml-365ff5fbaca2dabb16c6e80bdb77675f761a8016.tar.bz2
indexhtml-365ff5fbaca2dabb16c6e80bdb77675f761a8016.tar.xz
indexhtml-365ff5fbaca2dabb16c6e80bdb77675f761a8016.zip
10.2-1mdk
simplified file list
-rw-r--r--indexhtml.spec63
1 files changed, 17 insertions, 46 deletions
diff --git a/indexhtml.spec b/indexhtml.spec
index be8fb28..9a6cd9f 100644
--- a/indexhtml.spec
+++ b/indexhtml.spec
@@ -1,7 +1,9 @@
Summary: Mandrakelinux html welcome page
Name: indexhtml
-Version: 10.1
-Release: 5mdk
+Version: 10.2
+Release: 1mdk
+URL: http://www.mandrakelinux.com/
+Requires: wget
Source: indexhtml-%version.tar.bz2
Group: System/Base
License: GPL
@@ -30,6 +32,7 @@ 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 -m 0755 update-indexhtml %buildroot/%_datadir/mdk/indexhtml/
install -d -m 0755 %buildroot/%_datadir/mdk/mail/text/
install -d -m 0755 %buildroot/%_datadir/mdk/mail/html/
@@ -55,62 +58,30 @@ done
install -d -m 0755 %buildroot/%_datadir/doc/HTML/
install -m 0644 HTML/index-en.html %buildroot/%_datadir/doc/HTML/index.html
-
+install -d -m 0755 %buildroot/etc/sysconfig/network-scripts/ifup.d
+cd %buildroot/etc/sysconfig/network-scripts/ifup.d
+ln -s ../../../../%_datadir/mdk/indexhtml/update-indexhtml indexhtml
%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
-
+%_datadir/mdk/indexhtml/update-indexhtml nonetwork
%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
-
+%_datadir/mdk/
+%ghost %_datadir/doc/HTML/index.html
+/etc/sysconfig/network-scripts/ifup.d/indexhtml
%changelog
+* Wed Jan 19 2005 Frederic Lepied <flepied@mandrakesoft.com> 10.2-1mdk
+- updated translations
+- bumped the version
+- dynamic index support
+
* Mon Oct 04 2004 Pablo Saratxaga <pablo@mandrakesoft.com> 10.1-5mdk
- updated translations (sk,ka,nn,nl,hr,gl,ky,ca,pt,fa)