Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
opensuse-manuals_en
opensuse-manuals_en.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opensuse-manuals_en.spec of Package opensuse-manuals_en
# # spec file for package opensuse-manuals_en (Version 11.2) # # Copyright (c) 2009 SUSE LINUX Products 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/ # # norootforbuild Name: opensuse-manuals_en %define my_lang en %define my_prov_obs suselinux-adminguide_%{my_lang} suselinux-userguide_%{my_lang} suselinux-manual_%{my_lang} %define my_book opensuse-html Version: 11.2 Release: 3.<RELEASE5> Obsoletes: %{my_prov_obs} Provides: %{my_prov_obs} Provides: locale(desktop-data-openSUSE:en) Obsoletes: opensuse-manual_en opensuse-quickstart_en opensuse-kdequick_en opensuse-gnomequick_en opensuse-gnomeuser_en opensuse-kdeuser_en opensuse-kde3user_en apparmor-admin_en Provides: opensuse-manual_en opensuse-quickstart_en opensuse-kdequick_en opensuse-gnomequick_en opensuse-gnomeuser_en opensuse-kdeuser_en opensuse-kde3user_en apparmor-admin_en #OBS Source09: LICENSE.txt Source00: opensuse-html_en-html.tar.bz2 Source01: opensuse-html_en-desktop.tar.bz2 Source02: opensuse-html_en-graphics.tar.bz2 Source03: opensuse-html_en.tar.bz2 Source10: opensuse-installquick_en.pdf #Source11: opensuse-installquick_en-graphics.tar.bz2 #Source12: opensuse-installquick_en.tar.bz2 Source13: opensuse-installquick-LICENSE.txt Source20: opensuse-gnomequick_en.pdf #Source21: opensuse-gnomequick_en-graphics.tar.bz2 #Source22: opensuse-gnomequick_en.tar.bz2 Source23: opensuse-gnomequick-LICENSE.txt Source30: opensuse-kdequick_en.pdf #Source31: opensuse-kdequick_en-graphics.tar.bz2 #Source32: opensuse-kdequick_en.tar.bz2 Source33: opensuse-kdequick-LICENSE.txt Source40: opensuse-kdeuser_en.pdf #Source41: opensuse-kdeuser_en-graphics.tar.bz2 #Source42: opensuse-kdeuser_en.tar.bz2 Source43: opensuse-kdeuser-LICENSE.txt Source50: opensuse-gnomeuser_en.pdf #Source51: opensuse-gnomeuser_en-graphics.tar.bz2 #Source52: opensuse-gnomeuser_en.tar.bz2 Source53: opensuse-gnomeuser-LICENSE.txt Source60: opensuse-apps_en.pdf #Source61: opensuse-apps_en-graphics.tar.bz2 #Source62: opensuse-apps_en.tar.bz2 Source63: opensuse-apps-LICENSE.txt Source70: opensuse-reference_en.pdf #Source71: opensuse-reference_en-graphics.tar.bz2 #Source72: opensuse-reference_en.tar.bz2 Source73: opensuse-reference-LICENSE.txt Source80: opensuse-startup_en.pdf #Source81: opensuse-startup_en-graphics.tar.bz2 #Source82: opensuse-startup_en.tar.bz2 Source83: opensuse-startup-LICENSE.txt Source90: opensuse-apparmor-quick_en.pdf #Source91: opensuse-apparmor-quick_en-graphics.tar.bz2 #Source92: opensuse-apparmor-quick_en.tar.bz2 Source93: opensuse-apparmor-quick-LICENSE.txt Source100: opensuse-security_en.pdf #Source101: opensuse-security_en-graphics.tar.bz2 #Source102: opensuse-security_en.tar.bz2 Source103: opensuse-security-LICENSE.txt #SOURCES Source901: pre_checkin.sh Source902: update_spec.pl Source903: attributes BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch BuildRequires: update-desktop-files Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE Manual (English) %define _defaultdocdir %{_datadir}/doc/manual %define _docdir %{_datadir}/doc/manual %define PDFDOC %{_defaultdocdir}/%{name}-pdf %description The openSUSE manuals package contains the Installation Quick Start, Start-Up, Reference, AppArmor Quick Start, AppArmor Administration Guide, Security Guide, GNOME and KDE Quick Start, GNOME and KDE User Guide, and the Application Guide. %package -n opensuse-installquick_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE Installation Quick Start (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-installquick_en-pdf PDF of the openSUSE Installation Quick Start (English). %package -n opensuse-gnomequick_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE GNOME Quickstart (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-gnomequick_en-pdf PDF of the openSUSE GNOME Quickstart (English) %package -n opensuse-kdequick_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE KDE Quickstart (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-kdequick_en-pdf PDF of the openSUSE KDE Quickstart (English). %package -n opensuse-kdeuser_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE KDE User Guide (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-kdeuser_en-pdf PDF of the openSUSE KDE User Guide (English). %package -n opensuse-gnomeuser_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE GNOME User Guide (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-gnomeuser_en-pdf PDF of the openSUSE GNOME User Guide (English). %package -n opensuse-apps_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE application Guide (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-apps_en-pdf PDF of the openSUSE application Guide (English). %package -n opensuse-reference_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE Reference (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-reference_en-pdf PDF of the openSUSE Reference (English). %package -n opensuse-startup_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE Start-Up (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-startup_en-pdf PDF of the openSUSE Start-Up (English). %package -n opensuse-apparmor-quick_en-pdf Group: Documentation/SUSE License: GFDLv1.2 Summary: openSUSE AppArmor Quick Start (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-apparmor-quick_en-pdf PDF of the openSUSE AppArmor Quick Start (English). %package -n opensuse-security_en-pdf Group: Documentation/SuSE License: GFDLv1.2 Summary: openSUSE Security Guide (English) as PDF #Provides: locale(desktop-data-openSUSE:en) ###PDFOBS %description -n opensuse-security_en-pdf PDF of the openSUSE Security Guide (English). %package pdf Group: Documentation/SuSE License: GFDLv1.2 Summary: openSUSE Manual (English) as PDF Provides: locale(desktop-data-openSUSE:en) Obsoletes: opensuse-manual_en-pdf opensuse-quickstart_en-pdf opensuse-kde3user_en-pdf Provides: opensuse-manual_en-pdf opensuse-quickstart_en-pdf opensuse-kde3user_en-pdf #PDFOBS %description pdf openSUSE Manual (English) as PDF. %prep #%setup -c -q %setup -c -q -a 01 echo "This PDF package is empty. Find the PDFs in sub-packages." >README-pdf #PREP cp %{S:9} . find -name '*.png' -o -name '*.svg' | xargs chmod 644 || : #PDFPREP %build # make sure index.html exists for f in $(find html -type f -name 'book.*'); do pushd ${f%/*} [ -f index.html -o -L index.html ] || ln -sf ${f##*/} index.html popd done %install mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir} # is set for sles or sled as /sles or /sled %define my_desktopdir /usr/share/susehelp/meta echo %{my_desktopdir} | sed 's:\(\|xyzy\)::' >filelist # mkdir -p desktop/{startup,reference,application,apparmor-admin-guide} ### install -d $RPM_BUILD_ROOT%{my_desktopdir}/%{name} # product is name without language code %define gnome_dir %{_datadir}/gnome/help/opensuse-manuals install -d $RPM_BUILD_ROOT%{gnome_dir} # if [ -d html/%my_book ]; then mv html/%my_book html/manual pushd desktop # problem writing desktop files on 10.3 ### CHECKIT: still necessary on 11.0? if [ -d index.desktop ]; then for f in $(find index.desktop -mindepth 1 -maxdepth 1); do mv $f . done rmdir index.desktop fi ### CHECKIT: can we fix this for 11.0? Just avoid the subdir... if [ ! -f .directory ]; then # stand-alone book, hidden in sub-directory dir=$(find . -maxdepth 1 -type d -name 'book_*') if [ -n "$dir" ]; then for f in $(find $dir -mindepth 1 -maxdepth 1); do mv $f . done rmdir $dir fi fi for f in $(find . -type f -name '*desktop'); do # /usr/share/doc/manual/suselinux-manual_en/manual sed -i "/^X-DOC-Identifier.*/d s|@PATH@|%{_defaultdocdir}/%{name}/manual| s/\[\]//" $f if ! grep -q -e '^Name *=' $f; then # requiered if no "Name=" is present sed -i "s|^Name\[.*\]\(=.*\)|Name\1\\ &|" $f fi done for d in $(find . -maxdepth 1 -type d -name 'book*'); do id=${d//\./} id=${id//\//}%{my_lang} pushd $d for f in $(find . -name '.directory'); do sed -i "s|@PATH@|%{_defaultdocdir}/%{name}/manual| s/\[\]// s|@id@|$id|" $f case $d in *_startup) [ $f = "./.directory" ] \ && sed -i "s|^\(X-DOC-Weight\).*|\1=-10000|" $f ;; esac done popd done # Probably useful for stand-alone books for f in $(find . -name '*.directory'); do id=%{name} id=${id//_/} sed -i "s|@PATH@|%{_defaultdocdir}/%{name}/manual| s/\[\]// s|@id@|$id|" $f # Fix the index.html reference if [ $f = ./.directory ]; then sed -i 's:\(^DocPath.*/\).*:\1index.html: s/^\(Name\|Comment\)\(.*\)/\1\2 (%{my_lang})/' $f # write yelp / rarian file sed " # remove useless comments and search settings /^Comment/d /^X-DOC-Search/d s/^\[Desktop Entry\]/[Document]/ /^Name *=/i\ DocPath=file://%{_defaultdocdir}/%{name}/manual/index.html\n\ DocType=text/html\n\ DocLang=%{my_lang}\n\ Icon=document2\n\ Categories=System;Core;Translation;Documentation s/^X-DOC-Identifier=/DocIdentifier=com.novell./ s/^X-DOC-Weight/DocWeight/ " $f > ../%{name}.document my_title=$(echo "%{summary}" | sed 's/[Pp][Dd][Ff]//;s/(.*)//') #if grep -s -q '^Name *= *$' ../%{name}.document; then sed -i " s/^\(Name.*\)=\(.*\)/\1=$my_title \2/" ../%{name}.document # fi # if Name contains just "Documentation", add product info # FIXME: check this properly if ! grep -s -q '^Name *= *openSUSE' ../%{name}.document; then sed -i " s/^\(Name.*\)=\(.*\)/\1=openSUSE \2/" ../%{name}.document fi fi # make sure to sort startup guide first case %name in sles-startup*) [ $f = "./.directory" ] \ && sed -i "s|^\(X-DOC-Weight\).*|\1=-2000|" $f ;; esac done cp -a . $RPM_BUILD_ROOT%{my_desktopdir}/%{name} cp %{S:100} $RPM_BUILD_ROOT%{my_desktopdir}/.directory || : popd if [ %{my_lang} = "en" ]; then mkdir -p $RPM_BUILD_ROOT%{_datadir}/help cp %{name}.document $RPM_BUILD_ROOT%{_datadir}/help/%{name}.document else mkdir -p $RPM_BUILD_ROOT%{_datadir}/help/LOCALE/%{my_lang} cp %{name}.document \ $RPM_BUILD_ROOT%{_datadir}/help/LOCALE/%{my_lang}/%{name}.document fi # old stuff # Link it into the Gnome help system (must be found by calling # susehelp help://suselinux-manual/ pushd $RPM_BUILD_ROOT%{gnome_dir} if [ %{my_lang} = "en" ]; then target=$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/manual install -d $target ln -sf %{_defaultdocdir}/%{name}/manual C else target=$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/manual install -d $target ln -sf %{_defaultdocdir}/%{name}/manual %{my_lang} fi popd else # PDF only books install -d html/manual echo PDF only > html/manual/%{name} fi if [ -f $RPM_BUILD_ROOT%{my_desktopdir}/%{name}/.directory ]; then %suse_update_desktop_file $RPM_BUILD_ROOT%{my_desktopdir}/%{name}/.directory fi cp %{S:10} . mkdir opensuse-installquick cp %{S:13} opensuse-installquick/LICENSE.txt cp %{S:20} . mkdir opensuse-gnomequick cp %{S:23} opensuse-gnomequick/LICENSE.txt cp %{S:30} . mkdir opensuse-kdequick cp %{S:33} opensuse-kdequick/LICENSE.txt cp %{S:40} . mkdir opensuse-kdeuser cp %{S:43} opensuse-kdeuser/LICENSE.txt cp %{S:50} . mkdir opensuse-gnomeuser cp %{S:53} opensuse-gnomeuser/LICENSE.txt cp %{S:60} . mkdir opensuse-apps cp %{S:63} opensuse-apps/LICENSE.txt cp %{S:70} . mkdir opensuse-reference cp %{S:73} opensuse-reference/LICENSE.txt cp %{S:80} . mkdir opensuse-startup cp %{S:83} opensuse-startup/LICENSE.txt cp %{S:90} . mkdir opensuse-apparmor-quick cp %{S:93} opensuse-apparmor-quick/LICENSE.txt cp %{S:100} . mkdir opensuse-security cp %{S:103} opensuse-security/LICENSE.txt #PDFINST %clean rm -fr ${RPM_BUILD_ROOT} %files pdf %defattr(-, root, root) %dir %{_defaultdocdir} # we ship opensuse-manual_$LL-pdf just because of the provides/obsoletes %doc LICENSE.txt # %doc *.pdf %doc README-pdf #PDFXXX %files -n opensuse-installquick_en-pdf %defattr(-, root, root) %doc opensuse-installquick_en.pdf %doc opensuse-installquick/LICENSE.txt %files -n opensuse-gnomequick_en-pdf %defattr(-, root, root) %doc opensuse-gnomequick_en.pdf %doc opensuse-gnomequick/LICENSE.txt %files -n opensuse-kdequick_en-pdf %defattr(-, root, root) %doc opensuse-kdequick_en.pdf %doc opensuse-kdequick/LICENSE.txt %files -n opensuse-kdeuser_en-pdf %defattr(-, root, root) %doc opensuse-kdeuser_en.pdf %doc opensuse-kdeuser/LICENSE.txt %files -n opensuse-gnomeuser_en-pdf %defattr(-, root, root) %doc opensuse-gnomeuser_en.pdf %doc opensuse-gnomeuser/LICENSE.txt %files -n opensuse-apps_en-pdf %defattr(-, root, root) %doc opensuse-apps_en.pdf %doc opensuse-apps/LICENSE.txt %files -n opensuse-reference_en-pdf %defattr(-, root, root) %doc opensuse-reference_en.pdf %doc opensuse-reference/LICENSE.txt %files -n opensuse-startup_en-pdf %defattr(-, root, root) %doc opensuse-startup_en.pdf %doc opensuse-startup/LICENSE.txt %files -n opensuse-apparmor-quick_en-pdf %defattr(-, root, root) %doc opensuse-apparmor-quick_en.pdf %doc opensuse-apparmor-quick/LICENSE.txt %files -n opensuse-security_en-pdf %defattr(-, root, root) %doc opensuse-security_en.pdf %doc opensuse-security/LICENSE.txt #PDFFILES %files %defattr(-, root, root) %dir %{_defaultdocdir} %doc html/manual %{my_desktopdir} %dir %{_datadir}/susehelp %dir %{_datadir}/susehelp/meta %{gnome_dir} %dir /usr/share/gnome %dir /usr/share/gnome/help %dir %{_datadir}/help %{_datadir}/help/* %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