Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
sles-manuals_en
sles-manuals_en.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sles-manuals_en.spec of Package sles-manuals_en
# # spec file for package sles-manuals_en # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %bcond_without PDF Name: sles-manuals_en %define my_lang en %define my_book SLES-html Version: 12 Release: 0 # Commented--we now use in IBS prjconf (outdated!): # Substitute: xmlgraphics-fop agfa-fonts xep xep-license xmlgraphics-fop # agfa-fonts is only needed when building with xep # BuildRequires: agfa-fonts # BuildRequires: xep xep-license Provides: sle-apparmor-quick_en-pdf = 12 Provides: sle-audit-quick_en-pdf = 12 Provides: sles-kvm_en-pdf = 12 Provides: sles-lxcquick_en-pdf = 12 Provides: sles-manuals_en-pdf = 12 Provides: sles-xen_en-pdf = 12 Provides: locale(desktop-data-SLE:en) #OBS Source: SLES-html_en_src_set.tar.bz2 #SOURCES Source901: doc_pre_checkin.sh Source903: attributes BuildRequires: daps > 1.99999 BuildRequires: fdupes BuildRequires: suse-xsl-stylesheets BuildRequires: update-desktop-files Requires: dejavu-fonts Requires: google-opensans-fonts BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Summary: SLES Manuals (English) License: GFDL-1.2 Group: Documentation/SUSE Url: https://www.suse.com/documentation/sles12/ %define _defaultdocdir %{_datadir}/doc/manual %define _docdir %{_datadir}/doc/manual Obsoletes: sle-apparmor-quick_en-pdf < 12 Obsoletes: sle-audit-quick_en-pdf < 12 Obsoletes: sles-kvm_en-pdf < 12 Obsoletes: sles-lxcquick_en-pdf < 12 Obsoletes: sles-manuals_en-pdf < 11.3 Obsoletes: sles-xen_en-pdf < 12 %description The SUSE Linux Enterprise Server Manuals (English). %package -n sles-admin_en-pdf Summary: SLES Adminguide (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-admin_en-pdf The PDF of the SUSE Linux Enterprise Server Administration Guide (English). %package -n sles-installquick_en-pdf Summary: SLES Installation Quick Start PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-installquick_en-pdf The PDF of the SUSE Linux Enterprise Server Installation Quick Start (English). %package -n sles-dockerquick_en-pdf Summary: SLES Installation Quick Start PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-dockerquick_en-pdf %package -n sles-gnomeuser_en-pdf Summary: SLES GNOME User Guide PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-gnomeuser_en-pdf PDF of the SLES GNOME User Guide (English). %package -n sles-security_en-pdf Summary: SLES Security Guide PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-security_en-pdf The PDF of the SUSE Linux Enterprise Security Guide (English). %package -n sles-storage_en-pdf Summary: SLES Storage Administration Guide PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-storage_en-pdf The PDF of the SUSE Linux Enterprise Server Storage Administration Guide (English). %package -n sles-virtualization_en-pdf Summary: SLES Virtualization Guide PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-virtualization_en-pdf The PDF of the SLES Virtualization Guide (English). %package -n sles-deployment_en-pdf Summary: SLES Deployment Guide (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-deployment_en-pdf The PDF of the SUSE Linux Enterprise Server Deployment Guide (English). %package -n sles-autoyast_en-pdf Summary: SLES AutoYaST (English, PDF) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-autoyast_en-pdf SLES AutoYaST (English, PDF). %package -n sles-tuning_en-pdf Summary: SLES Tuning Guide PDF (English) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-tuning_en-pdf The PDF of the SUSE Linux Enterprise Server Tuning Guide (English). %package -n sles-hardening_en-pdf Summary: SLES Hardening Guide (English, PDF) Group: Documentation/SUSE #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n sles-hardening_en-pdf The SUSE Linux Enterprise Hardening Guide (English, PDF). %prep #%%setup -c -q %setup -c -q -n %{name}-%{version}/SLES-html #PREP %setup -c -q -T -D -n %{name}-%{version} find -name '*.png' -o -name '*.svg' | xargs chmod 644 || : #PDFPREP %build %define my_all_dir %{_builddir}/%{name}-%{version}/SLES-html cd %{my_all_dir} # e.g., /usr/share/help/C/gnome-help/opensuse-manuals.page # Produce .page files for HTML # Switches according to bnc#883820 package_dir=$(daps -d DC-SLES-html package-html --xsltparam="'--param build.for.web=0'" --pagefiles) my_ll=$(echo %{my_lang} | tr [:upper:] [:lower:]) bookhtml=$(echo $package_dir/*_%{my_lang}-html.tar.bz2) bookhtml=${bookhtml##*/} tar xvf $package_dir/$bookhtml bk=${bookhtml%%_%{my_lang}-html.tar.bz2} echo $bk > %{name}.filelist # echo SLES-html > %%{name}.filelist # ls -l build/%%my_book/package cp $package_dir/*.page %name.page #MAKE_DOC # export FOP=fop export FOP_STACK="-Xss2048K" build_pdf () { %if %{with PDF} book=$(echo ${1} | tr [:upper:] [:lower:]) if [ -x /usr/bin/xep ]; then export XEP_LICENSE=/etc/xep/license.xml export XEP_HOME=/usr/share/xep # see https://sourceforge.net/p/daps/tickets/107/ export XEP_OPTIONS="-valid" formatter=xep fi if [ -z "$formatter" ]; then formatter=$(daps -d DC-${1} showvariable VARIABLE=FORMATTER) fi if [ $formatter = fop ]; then # 2014-01-14: according to sknorr, # XSLTPARAM='\\\"--param hyphenate.verbatim=0\\\"' is no longer needed pkg_pdf=$(daps -d DC-${1} package-pdf --formatter=$formatter) else pkg_pdf=$(daps -d DC-${1} package-pdf --formatter=$formatter) fi pdfname=$(find $pkg_pdf -name '*.pdf') # 2014-01-14: not sure whether we still need -pdf.document # docname=$(find $pkg_pdf -name '*-pdf.document') # if [ -z "$docname" ]; then # docname=$(find $pkg_pdf -name '*.document') # mv $docname ${docname%\.document}-pdf.document # docname=${docname%\.document}-pdf.document # fi # pwd # sed -i " ## remove useless comments and search settings #/^Categories=/d #/^DocPath=/d #/^Name *=/i\ #Categories=System;Core;Translation;Documentation\n\ #DocPath=file://%%{_defaultdocdir}/${1}_en-pdf/${pdfname##*/} #" $docname # { # echo $pdfname # echo $docname # } > ${book}_en-pdf.filelist echo $pdfname > ${book}_en-pdf.filelist %else : say build --with PDF %endif } all_pdf_docs=" SLES-admin SLES-installquick SLES-gnomeuser SLES-security SLES-storage SLES-virtualization SLES-deployment SLES-autoyast SLES-tuning SLES-hardening SLES-dockerquick" [ -n "$all_pdf_docs" ] && for b in $all_pdf_docs; do build_pdf $b; done %install cd %{my_all_dir} mkdir -p %{buildroot}%{_defaultdocdir} # product is name without language code %define gnome_dir %{_datadir}/gnome/help/sles-manuals install -d %{buildroot}%{gnome_dir} # cp -a --dereference $(head -n 1 %{name}.filelist) \ %{buildroot}/%{_defaultdocdir}/%{name} gnome_help_dir=%{_datadir}/help/C/gnome-help mkdir -p %{buildroot}$gnome_help_dir cp %name.page %{buildroot}$gnome_help_dir/%name.page { echo "%dir $gnome_help_dir" echo "$gnome_help_dir/%name.page" } > %name.filelist # Create the link to make the book visible in yelp; bnc#866668 if [ %{my_lang} = "en" ]; then pushd %{buildroot}%{_datadir}/help/C ln -s ../../doc/manual/%{name} %{my_book} popd echo "%{_datadir}/help/C/%{my_book}" >> %name.filelist fi %if %{with PDF} for f in *-pdf.filelist; do # cat $f mkdir %{buildroot}/%{_defaultdocdir}/${f%\.filelist} # PDF first cp -a --dereference $(head -n 1 $f) \ %{buildroot}/%{_defaultdocdir}/${f%\.filelist} # remove first line and append the new location sed -i 1d $f echo "%{_defaultdocdir}/${f%\.filelist}" >> $f #PDFHTML_LIST done %endif %fdupes '%{buildroot}%{_docdir}' %if %{with PDF} #PDFINST %endif #PDFXXX %files -n sles-admin_en-pdf -f %{my_book}/sles-admin_en-pdf.filelist %defattr(-, root, root) %files -n sles-installquick_en-pdf -f %{my_book}/sles-installquick_en-pdf.filelist %defattr(-, root, root) %files -n sles-dockerquick_en-pdf -f %{my_book}/sles-dockerquick_en-pdf.filelist %defattr(-, root, root) %files -n sles-gnomeuser_en-pdf -f %{my_book}/sles-gnomeuser_en-pdf.filelist %defattr(-, root, root) %files -n sles-security_en-pdf -f %{my_book}/sles-security_en-pdf.filelist %defattr(-, root, root) %files -n sles-storage_en-pdf -f %{my_book}/sles-storage_en-pdf.filelist %defattr(-, root, root) %files -n sles-virtualization_en-pdf -f %{my_book}/sles-virtualization_en-pdf.filelist %defattr(-, root, root) %files -n sles-deployment_en-pdf -f %{my_book}/sles-deployment_en-pdf.filelist %defattr(-, root, root) %files -n sles-autoyast_en-pdf -f %{my_book}/sles-autoyast_en-pdf.filelist %defattr(-, root, root) %files -n sles-tuning_en-pdf -f %{my_book}/sles-tuning_en-pdf.filelist %defattr(-, root, root) %files -n sles-hardening_en-pdf -f %{my_book}/sles-hardening_en-pdf.filelist %defattr(-, root, root) #PDFFILES %files -f %{my_book}/%{name}.filelist %defattr(-, root, root) %dir %{_defaultdocdir} %{_defaultdocdir}/%{name} #GNOME #KDE4 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor