feat(os): support 2403
This commit is contained in:
commit
0d1562bcb8
BIN
HTML/img/header-background.png
Normal file
BIN
HTML/img/header-background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
BIN
HTML/img/html-background.png
Normal file
BIN
HTML/img/html-background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
133
HTML/index.html
Normal file
133
HTML/index.html
Normal file
@ -0,0 +1,133 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!--Copyright (c) [2019] Huawei Technologies Co.,Ltd. All rights reserved. All documentation will be contributed to and made available by the Project under the Creative Commons Attribution 4.0 International License (available at http://creativecommons.org/licenses/by/4.0/).-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Welcome to generic_os</title>
|
||||
<style rel="stylesheet" type="text/css">
|
||||
|
||||
html {
|
||||
background-image:url(img/html-background.png);
|
||||
background-color: white;
|
||||
font-family: "DejaVu Sans", "Liberation Sans", sans-serif;
|
||||
font-size: 0.85em;
|
||||
line-height: 1.25em;
|
||||
margin: 0 4% 0 4%;
|
||||
}
|
||||
|
||||
body {
|
||||
border: 10px solid #fff;
|
||||
margin:0;
|
||||
padding:0;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
|
||||
a:link { border-bottom: 1px dotted #ccc; text-decoration: none; color: #204d92; }
|
||||
a:hover { border-bottom:1px dotted #ccc; text-decoration: underline; color: green; }
|
||||
a:active { border-bottom:1px dotted #ccc; text-decoration: underline; color: #204d92; }
|
||||
a:visited { border-bottom:1px dotted #ccc; text-decoration: none; color: #204d92; }
|
||||
a:visited:hover { border-bottom:1px dotted #ccc; text-decoration: underline; color: green; }
|
||||
|
||||
.logo a:link,
|
||||
.logo a:hover,
|
||||
.logo a:visited { border-bottom: none; }
|
||||
|
||||
.mainlinks a:link { border-bottom: 1px dotted #ddd; text-decoration: none; color: #eee; }
|
||||
.mainlinks a:hover { border-bottom:1px dotted #ddd; text-decoration: underline; color: white; }
|
||||
.mainlinks a:active { border-bottom:1px dotted #ddd; text-decoration: underline; color: white; }
|
||||
.mainlinks a:visited { border-bottom:1px dotted #ddd; text-decoration: none; color: white; }
|
||||
.mainlinks a:visited:hover { border-bottom:1px dotted #ddd; text-decoration: underline; color: white; }
|
||||
|
||||
/* User interface styles */
|
||||
|
||||
#header {
|
||||
margin:0;
|
||||
padding: 0.5em;
|
||||
background: #204D8C url(img/header-background.png);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.logo {
|
||||
padding: 0;
|
||||
/* For text only logo */
|
||||
font-size: 1.4em;
|
||||
line-height: 1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
vertical-align: middle;
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.logo a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height:1.5em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 0;
|
||||
line-height: 1.9em; }
|
||||
h2 {
|
||||
margin-top: 0;
|
||||
line-height: 1.7em; }
|
||||
|
||||
#content {
|
||||
clear:both;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
padding-bottom: 30px;
|
||||
border-bottom: 5px solid #eee;
|
||||
}
|
||||
|
||||
.mainlinks {
|
||||
float: right;
|
||||
margin-top: 0.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
ul.mainlinks > li {
|
||||
border-right: 1px dotted #ddd;
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
display: inline;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul.mainlinks > li.last,
|
||||
ul.mainlinks > li.first {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
|
||||
<ul class="mainlinks">
|
||||
<li> <a href="lowercase_generic_os.org">Home</a> </li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h1>Welcome to generic_os</h1>
|
||||
|
||||
<p><a href="lowercase_generic_os.org">generic_os</a> provides enhanced security, compatibility, and easy-to-use features along with high reliability. It meets the increasing requirements of Linux OS in enterprise applications and provides a compelling choice of open IT platform for users.</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
81
generic-indexhtml.spec
Normal file
81
generic-indexhtml.spec
Normal file
@ -0,0 +1,81 @@
|
||||
%global vendor {os_name}
|
||||
|
||||
Name: %{vendor}-indexhtml
|
||||
Version: {rpm_version}
|
||||
Release: 15
|
||||
Source: HTML.tar.gz
|
||||
License: CC-BY-SA-4.0
|
||||
Summary: Browser default start page for %{vendor}
|
||||
BuildArchitectures: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Obsoletes: indexhtml <= 2:5-1
|
||||
Provides: %{vendor}-indexhtml
|
||||
Provides: generic-indexhtml
|
||||
|
||||
%if "{os_name}" != "openEuler"
|
||||
Provides: openEuler-indexhtml
|
||||
Obsoletes: openEuler-indexhtml
|
||||
%endif
|
||||
|
||||
BuildRequires: sed
|
||||
|
||||
%description
|
||||
The indexhtml package contains the welcome page shown by your Web browser,
|
||||
which you'll see after you've successfully installed %{vendor} Linux
|
||||
|
||||
%prep
|
||||
%setup -q -n HTML
|
||||
|
||||
lowercase_os_name=$(echo "%{vendor}" | sed 's/[A-Z]/\l&/g')
|
||||
sed -i "s/lowercase_generic_os/$lowercase_os_name/g" index.html
|
||||
sed -i "s/generic_os/%{vendor}/g" index.html
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/HTML
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/HTML/en-US
|
||||
cp -a . $RPM_BUILD_ROOT/%{_defaultdocdir}/HTML/
|
||||
pushd $RPM_BUILD_ROOT/%{_defaultdocdir}/HTML/en-US
|
||||
ln -s ../index.html .
|
||||
ln -s ../img/ .
|
||||
popd
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_defaultdocdir}/HTML/*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 21 2022 Chenyx <chenyixiong3@huawei.com> - 7-15
|
||||
- License compliance rectification
|
||||
|
||||
* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 7-14
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: delete unneeded provides
|
||||
|
||||
* Tue Oct 15 2019 fanghuiyu<fanghuiyu@huawei.com> - 7-13
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: change to generic-indexhtml
|
||||
|
||||
* Tue Sep 24 2019 hexiaowen <hexiaowen@huawei.com> - 7-12
|
||||
- add copyright
|
||||
|
||||
* Fri Mar 29 2019 wuyou<wuyou88@huawei.com> - 7-11
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: supply provides of indexhtml
|
||||
|
||||
* Mon Mar 25 2019 wuyou<wuyou88@huawei.com> - 7-10
|
||||
- Type: bugfix
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: Provides openEuler-indexhtml
|
||||
4
generic-indexhtml.yaml
Normal file
4
generic-indexhtml.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
Loading…
x
Reference in New Issue
Block a user