summaryrefslogtreecommitdiffstats
path: root/indexhtml.spec
diff options
context:
space:
mode:
authorDavid Baudens <baudens@mandriva.com>2003-02-28 12:11:55 +0000
committerDavid Baudens <baudens@mandriva.com>2003-02-28 12:11:55 +0000
commita820c797f08cef94a515b40580364b6068e96db6 (patch)
tree6b7df5f5eb0983fb8f232c090e2708dab3ddf445 /indexhtml.spec
parentd5406c9467f185fc03f9223ec6366633fe48cd6c (diff)
downloadindexhtml-a820c797f08cef94a515b40580364b6068e96db6.tar
indexhtml-a820c797f08cef94a515b40580364b6068e96db6.tar.gz
indexhtml-a820c797f08cef94a515b40580364b6068e96db6.tar.bz2
indexhtml-a820c797f08cef94a515b40580364b6068e96db6.tar.xz
indexhtml-a820c797f08cef94a515b40580364b6068e96db6.zip
Udpate
Diffstat (limited to 'indexhtml.spec')
-rw-r--r--indexhtml.spec54
1 files changed, 36 insertions, 18 deletions
diff --git a/indexhtml.spec b/indexhtml.spec
index 8ea802b..a2b0cc6 100644
--- a/indexhtml.spec
+++ b/indexhtml.spec
@@ -1,32 +1,41 @@
Summary: Mandrake html welcome page
Name: indexhtml
Version: 9.1
-Release: 2mdk
-Source: indexhtml-%{version}.tar.bz2
-Icon: mandrake-small.xpm
+Release: 3mdk
+Source: indexhtml.tar.bz2
Group: System/Base
-License: Distributable
+License: GPL
BuildRoot: %_tmppath/%name-%version-%release-root
BuildArch: noarch
+
+
%description
Mandrake index.html welcome page.
+
%prep
-%setup -q
+
+
+%setup -q -n %name
+
%build
+
%install
-rm -rf $RPM_BUILD_ROOT
+rm -fr %buildroot/
-mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}
-cp -avrf HTML $RPM_BUILD_ROOT/%{_defaultdocdir}
+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/
-find %buildroot -name "*~" -print | xargs /bin/rm -fr
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -fr %buildroot
+
%post
if [ -r /etc/sysconfig/i18n ] ; then
@@ -42,15 +51,13 @@ if [ -r /etc/sysconfig/i18n ] ; then
fi
for i in $LISTLANG
do
- if [ -r %{_defaultdocdir}/HTML/index-$i.html ]; then
- cat %{_defaultdocdir}/HTML/index-$i.html > \
- %{_defaultdocdir}/HTML/index.html
+ if [ -r %_datadir/mdk/indexhtml/index-$i.html ]; then
+ ln -sf %_datadir/mdk/indexhtml/index-$i.html %{_defaultdocdir}/HTML/index.html
break
else
lang=`echo $i | cut -b-2`
- if [ -r %{_defaultdocdir}/HTML/index-$lang.html ]; then
- cat %{_defaultdocdir}/HTML/index-$lang.html > \
- %{_defaultdocdir}/HTML/index.html
+ if [ -r %_datadir/mdk/indexhtml/index-$lang.html ]; then
+ ln -sf %_datadir/mdk/indexhtml/index-$lang.html %{_defaultdocdir}/HTML/index.html
break;
fi
@@ -58,11 +65,22 @@ if [ -r /etc/sysconfig/i18n ] ; then
done
fi
+
+%postun
+rm -f %{_defaultdocdir}/HTML/index.html
+
+
%files
-%defattr(644,root,root)
-%{_defaultdocdir}/HTML/*
+%defattr(-,root,root,-)
+%dir %_datadir/mdk/
+%dir %_datadir/mdk/indexhtml/
+%_datadir/mdk/indexhtml/*
+
%changelog
+* 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