Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:keichwa:tmp
opensuse-manuals_pt_BR
opensuse-manuals_pt_BR.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opensuse-manuals_pt_BR.spec of Package opensuse-manuals_pt_BR
# Automatically generated out of the docs SVN # norootforbuild Name: opensuse-manuals_pt_BR %define my_lang pt_BR %define my_book opensuse-html Version: 11.3 Release: 1 Provides: locale(desktop-data-openSUSE:pt_BR) Obsoletes: opensuse-manual_pt_BR < 11.2 opensuse-kdequick_pt_BR < 11.1 opensuse-gnomequick_pt_BR < 11.1 opensuse-gnomeuser_pt_BR < 11.1 opensuse-kdeuser_pt_BR < 11. opensuse-kde3user_pt_BR < 11.1 apparmor-admin_pt_BR < 11.1 Provides: opensuse-manual_pt_BR = %{version}-%{release} opensuse-kdequick_pt_BR = %{version}-%{release} opensuse-gnomequick_pt_BR = %{version}-%{release} opensuse-gnomeuser_pt_BR = %{version}-%{release} opensuse-kdeuser_pt_BR = %{version}-%{release} opensuse-kde3user_pt_BR = %{version}-%{release} apparmor-admin_pt_BR = %{version}-%{release} Obsoletes: opensuse-manual_pt_BR-pdf < 11.2 opensuse-kde3user_pt_BR-pdf < 11.1 opensuse-manuals_pt_BR-pdf < 11.3 opensuse-apparmor-admin_pt_BR-pdf < 11.3 Provides: opensuse-manual_pt_BR-pdf = %{version}-%{release} opensuse-kde3user_pt_BR-pdf = %{version}-%{release} opensuse-manuals_pt_BR-pdf = %{version}-%{release} opensuse-apparmor-admin_pt_BR-pdf = %{version}-%{release} #OBS Source00: opensuse-html_pt_BR-html.tar.bz2 Source01: opensuse-html_pt_BR-desktop.tar.bz2 Source02: opensuse-html_pt_BR-graphics.tar.bz2 Source03: opensuse-html_pt_BR.tar.bz2 Source10: opensuse-installquick_pt_BR.pdf #Source11: opensuse-installquick_pt_BR-graphics.tar.bz2 #Source12: opensuse-installquick_pt_BR.tar.bz2 Source13: opensuse-installquick_pt_BR-pdf-yelp.tar.bz2 Source20: opensuse-gnomequick_pt_BR.pdf #Source21: opensuse-gnomequick_pt_BR-graphics.tar.bz2 #Source22: opensuse-gnomequick_pt_BR.tar.bz2 Source23: opensuse-gnomequick_pt_BR-pdf-yelp.tar.bz2 Source30: opensuse-kdequick_pt_BR.pdf #Source31: opensuse-kdequick_pt_BR-graphics.tar.bz2 #Source32: opensuse-kdequick_pt_BR.tar.bz2 Source33: opensuse-kdequick_pt_BR-pdf-yelp.tar.bz2 Source40: opensuse-gnomeuser_pt_BR.pdf #Source41: opensuse-gnomeuser_pt_BR-graphics.tar.bz2 #Source42: opensuse-gnomeuser_pt_BR.tar.bz2 Source43: opensuse-gnomeuser_pt_BR-pdf-yelp.tar.bz2 Source50: opensuse-startup_pt_BR.pdf #Source51: opensuse-startup_pt_BR-graphics.tar.bz2 #Source52: opensuse-startup_pt_BR.tar.bz2 Source53: opensuse-startup_pt_BR-pdf-yelp.tar.bz2 Source60: opensuse-apparmor-quick_pt_BR.pdf #Source61: opensuse-apparmor-quick_pt_BR-graphics.tar.bz2 #Source62: opensuse-apparmor-quick_pt_BR.tar.bz2 Source63: opensuse-apparmor-quick_pt_BR-pdf-yelp.tar.bz2 #SOURCES Source901: doc_pre_checkin.sh Source903: attributes BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Group: Documentation/SUSE License: GFDL v1.2 Summary: Complete set of openSUSE Manuals (HTML, English) %define _defaultdocdir %{_datadir}/doc/manual %define _docdir %{_datadir}/doc/manual %description Contains the complete official openSUSE documentation in HTML format. It can be accessed via the Desktop's help centers. The following manuals are included: * Installation Quick Start * Start-Up * GNOME Quick Start * GNOME User Guide * KDE Quick Start * KDE User Guide * Application Guide * Reference * Security Guide * AppArmor Quick Start %package -n opensuse-installquick_pt_BR-pdf Group: Documentation/SUSE License: GFDL v1.2 Summary: openSUSE manual: Installation Quick Start (PDF, English) #Provides: locale(desktop-data-openSUSE:pt_BR) ###PDFOBS %description -n opensuse-installquick_pt_BR-pdf A quick start guide providing a walk-through to the default installation. %package -n opensuse-gnomequick_pt_BR-pdf Group: Documentation/SUSE License: GFDL v1.2 Summary: openSUSE manual: GNOME Quick Start (PDF, English) #Provides: locale(desktop-data-openSUSE:pt_BR) ###PDFOBS %description -n opensuse-gnomequick_pt_BR-pdf A quick start guide to the GNOME desktop. %package -n opensuse-kdequick_pt_BR-pdf Group: Documentation/SUSE License: GFDL v1.2 Summary: openSUSE manual: KDE Quick Start (PDF, English) #Provides: locale(desktop-data-openSUSE:pt_BR) ###PDFOBS %description -n opensuse-kdequick_pt_BR-pdf A quick start guide to the KDE desktop. %package -n opensuse-gnomeuser_pt_BR-pdf Group: Documentation/SUSE License: GFDL v1.2 Summary: openSUSE manual: GNOME User Guide (PDF, English) #Provides: locale(desktop-data-openSUSE:pt_BR) ###PDFOBS %description -n opensuse-gnomeuser_pt_BR-pdf This manual introduces the GNOME desktop. It guides you through using and configuring the desktop and helps you perform key tasks. It is intended mainly for end users who want to make efficient use of GNOME desktop as their default desktop. %package -n opensuse-startup_pt_BR-pdf Group: Documentation/SUSE License: GFDL v1.2 Summary: openSUSE manual: Start-Up (PDF, English) #Provides: locale(desktop-data-openSUSE:pt_BR) ###PDFOBS %description -n opensuse-startup_pt_BR-pdf Guides you through the installation and basic configuration of your system. For newcomers, the manual also introduces basic Linux concepts such as the file system, the user concept and access permissions and gives an overview of the features the system offers to support mobile computing. Provides help and advice in troubleshooting. %package -n opensuse-apparmor-quick_pt_BR-pdf Group: Documentation/SUSE License: GFDL v1.2 Summary: openSUSE manual: AppArmor Quick Start #Provides: locale(desktop-data-openSUSE:pt_BR) ###PDFOBS %description -n opensuse-apparmor-quick_pt_BR-pdf A quick start guide to AppArmor, a security software. %prep #%setup -c -q %setup -c -q -a 01 #echo "This PDF package is empty. Find the PDFs in sub-packages." >README-pdf #PREP find -name '*.png' -o -name '*.svg' | xargs chmod 644 || : tar xvf %{S:13} tar xvf %{S:23} tar xvf %{S:33} tar xvf %{S:43} tar xvf %{S:53} tar xvf %{S:63} #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 # mkdir -p desktop/{startup,reference,application,apparmor-admin-guide} ### # 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 ### handle desktop files 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 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 ### remove it, only keep yelp and kde4 -- they depend on top-level ### .directory files... # 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 # %{summary} is unreliable # my_title=$(echo "%{summary}" \ # | sed 's/\(as \)*[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 sles-startup guide first case %name in sles-startup*) [ $f = "./.directory" ] \ && sed -i "s|^\(X-DOC-Weight\).*|\1=-2000|" $f ;; esac done popd if [ -d yelp ]; then pushd yelp for f in *.document; do dir=${f%.document} pdf_file=${dir/-pdf/.pdf} dir=$(echo $dir | tr [:upper:] [:lower:]) sed -i "s|^\(DocPath=\).*|\1/usr/share/doc/manual/$dir/$pdf_file| s|^Categories=.*|Categories=System;Core;Translation;Documentation| s|^\(Name.*\)|\1 (PDF)|" $f done popd fi if [ %{my_lang} = "en" ]; then mkdir -p $RPM_BUILD_ROOT%{_datadir}/help for f in yelp/*.document; do file=$(echo $f | tr [:upper:] [:lower:]) cp $f $RPM_BUILD_ROOT%{_datadir}/help/${file#*/} done sed "s/Documentation *\(Documentation\)/\1/" %{name}.document \ > $RPM_BUILD_ROOT%{_datadir}/help/%{name}.document # KDE4 %define kdedir %{_datadir}/kde4/apps/khelpcenter/plugins mkdir -p $RPM_BUILD_ROOT/%kdedir pushd $RPM_BUILD_ROOT%{_datadir}/help for doc in *.document; do sed "\ s/\[Document\]/[Desktop Entry]/ " $doc >$RPM_BUILD_ROOT/%kdedir/${doc%\.document}.desktop done popd else mkdir -p $RPM_BUILD_ROOT%{_datadir}/help/LOCALE/%{my_lang} declare -l llang=%{my_lang} for f in yelp/*.document; do file=$(echo $f | tr [:upper:] [:lower:] | sed "s/$llang/%{my_lang}/") cp $f $RPM_BUILD_ROOT%{_datadir}/help/LOCALE/%{my_lang}/${file#*/} done sed "s/Documentation *\(Documentation\)/\1/" %{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 cp %{S:10} . mkdir opensuse-installquick cp %{S:20} . mkdir opensuse-gnomequick cp %{S:30} . mkdir opensuse-kdequick cp %{S:40} . mkdir opensuse-gnomeuser cp %{S:50} . mkdir opensuse-startup cp %{S:60} . mkdir opensuse-apparmor-quick #PDFINST %clean rm -fr ${RPM_BUILD_ROOT} #PDFXXX %files -n opensuse-installquick_pt_BR-pdf %defattr(-, root, root) %doc opensuse-installquick_pt_BR.pdf %{_datadir}/help/LOCALE/pt_BR/opensuse-installquick_pt_BR-pdf.document %files -n opensuse-gnomequick_pt_BR-pdf %defattr(-, root, root) %doc opensuse-gnomequick_pt_BR.pdf %{_datadir}/help/LOCALE/pt_BR/opensuse-gnomequick_pt_BR-pdf.document %files -n opensuse-kdequick_pt_BR-pdf %defattr(-, root, root) %doc opensuse-kdequick_pt_BR.pdf %{_datadir}/help/LOCALE/pt_BR/opensuse-kdequick_pt_BR-pdf.document %files -n opensuse-gnomeuser_pt_BR-pdf %defattr(-, root, root) %doc opensuse-gnomeuser_pt_BR.pdf %{_datadir}/help/LOCALE/pt_BR/opensuse-gnomeuser_pt_BR-pdf.document %files -n opensuse-startup_pt_BR-pdf %defattr(-, root, root) %doc opensuse-startup_pt_BR.pdf %{_datadir}/help/LOCALE/pt_BR/opensuse-startup_pt_BR-pdf.document %files -n opensuse-apparmor-quick_pt_BR-pdf %defattr(-, root, root) %doc opensuse-apparmor-quick_pt_BR.pdf %{_datadir}/help/LOCALE/pt_BR/opensuse-apparmor-quick_pt_BR-pdf.document #PDFFILES %files %defattr(-, root, root) %dir %{_defaultdocdir} %doc html/manual #GNOME -- probably obsolete now %{gnome_dir} %dir /usr/share/gnome %dir /usr/share/gnome/help #recent GNOME %dir %{_datadir}/help %dir %{_datadir}/help/LOCALE %dir %{_datadir}/help/LOCALE/pt_BR %{_datadir}/help/LOCALE/pt_BR/%{name}.document #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