1 Star 0 Fork 25

src-oepkgs-oE-rv/openEuler-indexhtml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
generic-indexhtml.spec 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-25 17:13 . Package init
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
Name: %{vendor}-indexhtml
Version: 7
Release: 14
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
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
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-oepkgs-oe-rv/openEuler-indexhtml.git
[email protected]:src-oepkgs-oe-rv/openEuler-indexhtml.git
src-oepkgs-oe-rv
openEuler-indexhtml
openEuler-indexhtml
master

搜索帮助