代码拉取完成,页面将自动刷新
同步操作将从 余诗/openEuler-indexhtml 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
Name: %{vendor}-indexhtml
Version: 7
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
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 <[email protected]> - 7-15
- License compliance rectification
* Mon Dec 23 2019 openEuler Buildteam <[email protected]> - 7-14
- Type:NA
- ID:NA
- SUG:NA
- DESC: delete unneeded provides
* Tue Oct 15 2019 fanghuiyu<[email protected]> - 7-13
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: change to generic-indexhtml
* Tue Sep 24 2019 hexiaowen <[email protected]> - 7-12
- add copyright
* Fri Mar 29 2019 wuyou<[email protected]> - 7-11
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: supply provides of indexhtml
* Mon Mar 25 2019 wuyou<[email protected]> - 7-10
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: Provides openEuler-indexhtml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。