commit 7ed707a8db28329a95be00b9468c5a9c4c7963ad Author: Jiayi Yin Date: Tue Jun 6 18:54:53 2023 +0800 Initial commit 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..94600e0 --- /dev/null +++ b/generic-indexhtml.spec @@ -0,0 +1,52 @@ +%global vendor {os_name} + +Name: %{vendor}-indexhtml +Version: {rpm_version} +Release: 1 +Source: HTML.tar.gz +License: CC-BY-SA +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 = %{version}-%{release} +Obsoletes: openEuler-indexhtml <= %{version}-%{release} +%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