commit 0d1562bcb84bcb895ac70eb41bb713804c5e5ab1 Author: Jiayi Yin Date: Thu Jun 13 23:27:29 2024 +0800 feat(os): support 2403 diff --git a/HTML/img/header-background.png b/HTML/img/header-background.png new file mode 100644 index 0000000..d587f85 Binary files /dev/null and b/HTML/img/header-background.png differ diff --git a/HTML/img/html-background.png b/HTML/img/html-background.png new file mode 100644 index 0000000..16d6313 Binary files /dev/null and b/HTML/img/html-background.png differ diff --git a/HTML/index.html b/HTML/index.html new file mode 100644 index 0000000..bb853fa --- /dev/null +++ b/HTML/index.html @@ -0,0 +1,133 @@ + + + + + Welcome to generic_os + + + + + + + + +
+ +

Welcome to generic_os

+ +

generic_os 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.

+ +
+ + + + + + diff --git a/generic-indexhtml.spec b/generic-indexhtml.spec new file mode 100644 index 0000000..82603e2 --- /dev/null +++ b/generic-indexhtml.spec @@ -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 - 7-15 +- License compliance rectification + +* Mon Dec 23 2019 openEuler Buildteam - 7-14 +- Type:NA +- ID:NA +- SUG:NA +- DESC: delete unneeded provides + +* Tue Oct 15 2019 fanghuiyu - 7-13 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: change to generic-indexhtml + +* Tue Sep 24 2019 hexiaowen - 7-12 +- add copyright + +* Fri Mar 29 2019 wuyou - 7-11 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: supply provides of indexhtml + +* Mon Mar 25 2019 wuyou - 7-10 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC: Provides openEuler-indexhtml diff --git a/generic-indexhtml.yaml b/generic-indexhtml.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/generic-indexhtml.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA