Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
sle-rt-hw_en
sle-rt-hw_en.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sle-rt-hw_en.spec of Package sle-rt-hw_en
# # spec file for package sle-rt-hw_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/ # # Automatically generated from https://svn.suse.de/svn/doc/branches/SLE_110/books/en with ../../../../opensuse-doc/trunk/tools/susedoc-buildbook/daps2bs.sh %bcond_without PDF Name: sle-rt-hw_en %define my_lang en %define my_book SLE-RT-hw Version: 12.1 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: locale(desktop-data-openSUSE:en) #OBS Source: SLE-RT-hw_en_src_set.tar.bz2 #SOURCES Source901: doc_pre_checkin.sh Source903: attributes BuildRequires: daps BuildRequires: fdupes BuildRequires: suse-xsl-stylesheets >= 1.9.18 BuildRequires: docbook5-xsl-stylesheets BuildRequires: jing # Also buildrequire tools that susedoc does not pull in automatically ATM # BuildRequires: python-xml # BuildRequires: python-lxml # BuildRequires: poppler-tools BuildRequires: update-desktop-files # BuildRequires: xerces-j2 # %%if 0%%{?suse_version} >= 1140 # BuildRequires: xmlgraphics-fop # %%else # BuildRequires: fop # %%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Summary: SLE RT Hardware Testing Guide (English) License: GFDL-1.2 Group: Documentation/SUSE URL: http://doc.opensuse.org %define _defaultdocdir %{_datadir}/doc/manual %define _docdir %{_datadir}/doc/manual %description SLE RT Hardware Testing Guide (English). %prep #%%setup -c -q %setup -c -q -n %{name}-%{version}/SLE-RT-hw #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}/SLE-RT-hw 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-SLE-RT-hw package-html --pagefiles) my_ll=$(echo %{my_lang} | tr [:upper:] [:lower:]) bookhtml=$(echo $package_dir/*_${my_ll}-html.tar.bz2) bookhtml=${bookhtml##*/} tar xvf $package_dir/$bookhtml bk=${bookhtml%%_${my_ll}-html.tar.bz2} echo $bk > %{name}.filelist # echo SLE-RT-hw > %%{name}.filelist # ls -l build/%%my_book/package cp $package_dir/*.page %name.page #MAKE_DOC 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" # export FOP=fop export FOP_STACK="-Xss2048K" build_pdf () { %if %{with PDF} book=$(echo ${1} | tr [:upper:] [:lower:]) if [ -x /usr/bin/xep ]; then formatter=xep fi if [ -z "$formatter" ]; then formatter=$(daps -d DC-${1} showvariable VARIABLE=FORMATTER) fi # if [ $formatter = fop ]; then # # bnc#778567 # daps -v -d DC-${1} pdf-color --xsltparam "'--param hyphenate.verbatim 0'" # else # daps -v -d DC-${1} pdf-color --formatter=$formatter # fi # pdf-color-name does not support --formatter # pdfname=$(daps -d DC-${1} pdf-color-name | sed /^Hint.*/d) # echo "$pdfname" > ${1}_en-pdf.filelist if [ $formatter = fop ]; then # bnc#778567 # right now, daps 1.1.2 does not support --xsltparam # FIXME: Tut so naed -- ask Magic # pkg_pdf=$(daps -d DC-${1} package-pdf --formatter=$formatter XSLTPARAM='\\\"--param hyphenate.verbatim 0\\\"') pkg_pdf=$(daps -d DC-${1} package-pdf --formatter=$formatter) else daps -d DC-${1} package-pdf --formatter=$formatter pkg_pdf=$(daps -d DC-${1} package-pdf --formatter=$formatter) fi pdfname=$(find $pkg_pdf -name '*.pdf') echo $pdfname > ${book}_en-pdf.filelist %else : say build --with PDF %endif } all_pdf_docs=" SLE-RT-hw" [ -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/sle-rt-hw 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 { # suma 2.1 needs %{_datadir}/help/C echo "%dir %{_datadir}/help/C" echo "%dir $gnome_help_dir" echo "$gnome_help_dir/%name.page" } > %name.filelist %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 cat $f >> %{name}.filelist #PDFHTML_LIST done %endif %fdupes '%{buildroot}%{_docdir}' %if %{with PDF} #PDFINST %endif #PDFXXX #PDFFILES %files -f %{my_book}/%{name}.filelist %defattr(-, root, root) %dir %{_defaultdocdir} %{_defaultdocdir}/%{name} #GNOME #KDE4
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