📄 rhl-cg-zh_cn.spec
字号:
################################################################################ Paul Gampe - <pgampe@redhat.com># TODO: Localize language names when rpm supports utf-8 spec files###############################################################################%define lang_code zh_CN%define lang_name Simplified ChineseCopyright: distributableSource: rhl-cg-%{lang_code}-%{version}.tbzRelease: 2Name: rhl-cg-%{lang_code}Group: DocumentationVersion: 9Summary: The %{lang_name} Red Hat Linux %{version} Customization Guide in HTML format.BuildArchitectures: noarchBuildroot: %{_tmppath}/%{name}-%{version}-buildrootRequires: htmlview%descriptionThe %{lang_name} Red Hat Linux %{version} Customization Guide containsinformation on how to customize your Red Hat Linux system to fit your needs.Step-by-step guides include setting up a network interface card, configuringshared files and directories, managing software using RPM, configuring aprinter, configuring a Web server, and gathering system information.The %{name} package contains the %{lang_name} Red Hat Linux %{version}Customization Guide in HTML format. PDF, RPM, HTML tarball, and browsable HTMLformats are available from the Red Hat Docs webpage athttp://www.redhat.com/docs/.%prep%define _builddir %(mkdir -p %{buildroot}%{_defaultdocdir} ; echo %{buildroot}%{_defaultdocdir})%setup -q -cfor i in *doif [ -d $i ]; then cd $i mv -f * ../ cd .. rmdir $ifidone%build %installmkdir -p $RPM_BUILD_ROOT/usr/share/applications/cat > $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop <<'EOF'[Desktop Entry]Name=Customization Guide (%{lang_code})Comment=Read about customizing Red Hat Linux (%{lang_name})Exec=htmlview file:%{_defaultdocdir}/%{name}-%{version}/index.htmlIcon=/%{_defaultdocdir}/%{name}-%{version}/docs.pngCategories=Documentation;X-Red-Hat-Base;Type=ApplicationEncoding=UTF-8Terminal=falseEOF%cleanrm -rf $RPM_BUILD_ROOT%files%defattr(644,root,root,755)%{_datadir}/applications/%{name}.desktop/%{_defaultdocdir}/%{name}-%{version}%changelog* Thu Mar 06 2003 Paul Gampe <pgampe@redhat.com>- Initial spec file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -