Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
opensuse-manual_de
opensuse-manual_de.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opensuse-manual_de.spec of Package opensuse-manual_de
# # spec file for package opensuse-manual_de (Version 11.1) # # Copyright (c) 2008 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-manual_de %define my_lang de %define my_prov_obs suselinux-adminguide_%{my_lang} suselinux-userguide_%{my_lang} suselinux-manual_%{my_lang} %define my_book opensuse-html Version: 11.1 Release: 2 Obsoletes: %{my_prov_obs} Provides: %{my_prov_obs} Provides: locale(desktop-data-openSUSE:de) Obsoletes: suselinux-manual_de opensuse-quickstart_de opensuse-kdequick_de opensuse-gnomequick_de opensuse-gnomeuser_de apparmor-admin_de Provides: suselinux-manual_de opensuse-quickstart_de opensuse-kdequick_de opensuse-gnomequick_de opensuse-gnomeuser_de apparmor-admin_de #OBS Source09: LICENSE.txt Source00: opensuse-html_de-html.tar.bz2 Source01: opensuse-html_de-desktop.tar.bz2 Source02: opensuse-html_de-graphics.tar.bz2 Source03: opensuse-html_de.tar.bz2 Source10: opensuse-gnomequick_de.pdf #Source11: opensuse-gnomequick_de-graphics.tar.bz2 #Source12: opensuse-gnomequick_de.tar.bz2 Source13: opensuse-gnomequick-LICENSE.txt Source20: opensuse-kdequick_de.pdf #Source21: opensuse-kdequick_de-graphics.tar.bz2 #Source22: opensuse-kdequick_de.tar.bz2 Source23: opensuse-kdequick-LICENSE.txt Source30: opensuse-kdeuser_de.pdf #Source31: opensuse-kdeuser_de-graphics.tar.bz2 #Source32: opensuse-kdeuser_de.tar.bz2 Source33: opensuse-kdeuser-LICENSE.txt Source40: opensuse-gnomeuser_de.pdf #Source41: opensuse-gnomeuser_de-graphics.tar.bz2 #Source42: opensuse-gnomeuser_de.tar.bz2 Source43: opensuse-gnomeuser-LICENSE.txt Source50: opensuse-apps_de.pdf #Source51: opensuse-apps_de-graphics.tar.bz2 #Source52: opensuse-apps_de.tar.bz2 Source53: opensuse-apps-LICENSE.txt Source60: opensuse-reference_de.pdf #Source61: opensuse-reference_de-graphics.tar.bz2 #Source62: opensuse-reference_de.tar.bz2 Source63: opensuse-reference-LICENSE.txt Source70: opensuse-startup_de.pdf #Source71: opensuse-startup_de-graphics.tar.bz2 #Source72: opensuse-startup_de.tar.bz2 Source73: opensuse-startup-LICENSE.txt Source80: opensuse-apparmor-quick_de.pdf #Source81: opensuse-apparmor-quick_de-graphics.tar.bz2 #Source82: opensuse-apparmor-quick_de.tar.bz2 Source83: opensuse-apparmor-quick-LICENSE.txt Source90: opensuse-apparmor-admin_de.pdf #Source91: opensuse-apparmor-admin_de-graphics.tar.bz2 #Source92: opensuse-apparmor-admin_de.tar.bz2 Source93: opensuse-apparmor-admin-LICENSE.txt #SOURCES BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch BuildRequires: update-desktop-files Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) %define _defaultdocdir %{_datadir}/doc/manual %define _docdir %{_datadir}/doc/manual %define PDFDOC %{_defaultdocdir}/%{name}-pdf %description The openSUSE manual package contains the Start-Up, Reference, AppArmor Quick Start, AppArmor Administration Guide, GNOME and KDE Quick Start, GNOME and KDE User Guide, and the Application Guide. %package -n opensuse-gnomequick_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE GNOME Quickstart (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-gnomequick_de-pdf PDF of the openSUSE GNOME Quickstart (German). %package -n opensuse-kdequick_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE KDE Quickstart (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-kdequick_de-pdf PDF of the openSUSE KDE Quickstart (German). %package -n opensuse-kdeuser_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-kdeuser_de-pdf PDF of the openSUSE Manual (German). %package -n opensuse-gnomeuser_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.1 (GFDL 1.1) Summary: openSUSE GNOME User Guide (German) #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-gnomeuser_de-pdf This package contains the openSUSE GNOME User Guide (German). The KDE User Guide is packaged together with the other openSUSE manuals as opensuse-manual_de. %package -n opensuse-apps_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-apps_de-pdf PDF of the openSUSE Manual (German). %package -n opensuse-reference_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-reference_de-pdf PDF of the openSUSE Manual (German). %package -n opensuse-startup_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-startup_de-pdf PDF of the openSUSE Manual (German). %package -n opensuse-apparmor-quick_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-apparmor-quick_de-pdf PDF of the openSUSE Manual (German). %package -n opensuse-apparmor-admin_de-pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:@LL@) ###PDFOBS %description -n opensuse-apparmor-admin_de-pdf PDF of the openSUSE Manual (German). %package pdf Group: Documentation/SUSE License: GNU Free Documentation License, Version 1.2 (GFDL 1.2) Summary: openSUSE Manual (German) as PDF #Provides: locale(desktop-data-openSUSE:de) Obsoletes: suselinux-manual_de-pdf opensuse-quickstart_de-pdf Provides: suselinux-manual_de-pdf opensuse-quickstart_de-pdf #PDFOBS %description pdf PDF of the openSUSE Manual (German). %prep #%setup -c -q %setup -c -q -a 01 #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-manual 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 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 # 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 %suse_update_desktop_file $RPM_BUILD_ROOT%{my_desktopdir}/%{name}/.directory cp %{S:10} . mkdir opensuse-gnomequick cp %{S:13} opensuse-gnomequick/LICENSE.txt cp %{S:20} . mkdir opensuse-kdequick cp %{S:23} opensuse-kdequick/LICENSE.txt cp %{S:30} . mkdir opensuse-kdeuser cp %{S:33} opensuse-kdeuser/LICENSE.txt cp %{S:40} . mkdir opensuse-gnomeuser cp %{S:43} opensuse-gnomeuser/LICENSE.txt cp %{S:50} . mkdir opensuse-apps cp %{S:53} opensuse-apps/LICENSE.txt cp %{S:60} . mkdir opensuse-reference cp %{S:63} opensuse-reference/LICENSE.txt cp %{S:70} . mkdir opensuse-startup cp %{S:73} opensuse-startup/LICENSE.txt cp %{S:80} . mkdir opensuse-apparmor-quick cp %{S:83} opensuse-apparmor-quick/LICENSE.txt cp %{S:90} . mkdir opensuse-apparmor-admin cp %{S:93} opensuse-apparmor-admin/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 %files -n opensuse-gnomequick_de-pdf %defattr(-, root, root) %doc opensuse-gnomequick_de.pdf %doc opensuse-gnomequick/LICENSE.txt %files -n opensuse-kdequick_de-pdf %defattr(-, root, root) %doc opensuse-kdequick_de.pdf %doc opensuse-kdequick/LICENSE.txt %files -n opensuse-kdeuser_de-pdf %defattr(-, root, root) %doc opensuse-kdeuser_de.pdf %doc opensuse-kdeuser/LICENSE.txt %files -n opensuse-gnomeuser_de-pdf %defattr(-, root, root) %doc opensuse-gnomeuser_de.pdf %doc opensuse-gnomeuser/LICENSE.txt %files -n opensuse-apps_de-pdf %defattr(-, root, root) %doc opensuse-apps_de.pdf %doc opensuse-apps/LICENSE.txt %files -n opensuse-reference_de-pdf %defattr(-, root, root) %doc opensuse-reference_de.pdf %doc opensuse-reference/LICENSE.txt %files -n opensuse-startup_de-pdf %defattr(-, root, root) %doc opensuse-startup_de.pdf %doc opensuse-startup/LICENSE.txt %files -n opensuse-apparmor-quick_de-pdf %defattr(-, root, root) %doc opensuse-apparmor-quick_de.pdf %doc opensuse-apparmor-quick/LICENSE.txt %files -n opensuse-apparmor-admin_de-pdf %defattr(-, root, root) %doc opensuse-apparmor-admin_de.pdf %doc opensuse-apparmor-admin/LICENSE.txt #PDFFILES %files %defattr(-, root, root) %dir %{_defaultdocdir} %doc html/manual %{my_desktopdir} %dir %{_datadir}/susehelp %{gnome_dir} %dir /usr/share/gnome %dir /usr/share/gnome/help %changelog * Tue Nov 25 2008 ke@suse.de - Replace some more English text files with German equivalents. * Mon Nov 24 2008 ke@suse.de - Update text and image files for openSUSE 11.1. * Fri Jun 06 2008 ke@suse.de - Update text and image files (final). - Enable Reference Guide (PDF). * Thu Jun 05 2008 ke@suse.de - Update HTML version. - Update Start-Up Guide (PDF). - Enable Gnome and KDE Quickstarts (PDF). * Mon Jun 02 2008 ke@suse.de - Update Start-Up Guide. In HTML, reuse English files for the untranslated parts. - Drop the untranslated PDFs for the moment. * Sun Jan 13 2008 coolo@suse.de - rename desktop-data-SuSE to -openSUSE * Wed Nov 07 2007 ke@suse.de - Correct X-DOC-Weight using better style-sheet support. - Fixing support information; see bug [#339034]. * Fri Sep 21 2007 ke@suse.de - Assign X-DOC-Weight manually (-3000) to make it show up right after the release-notes. * Thu Sep 20 2007 ke@suse.de - Work around for sorting Quick* book chapters (KDE, GNOME, AppArmor); [#] 326392. * Wed Sep 19 2007 ke@suse.de - Remove more X-DOC settings; reported by Stephan Binner [# 325691]. - Make X-DOC-Weight values positive; [# 326392]. * Mon Sep 17 2007 ke@suse.de - Remove X-DOC-Identifier from *.desktop files; reported by Stephan Binner [# 325691]. * Fri Sep 14 2007 ke@suse.de - Update text and image files. * Thu Sep 06 2007 coolo@suse.de - As discussed with Tanja and Jana: pdfs should not be installed by default * Thu Aug 16 2007 ke@suse.de - Build preliminary package using the old translation files. - Obsolete opensuse-quickstart_de, reported by Stephan Kulow; # 300538. * Wed Aug 15 2007 coolo@suse.de - trigger installation on german desktop installations (#296873) * Mon Jun 04 2007 dmueller@suse.de - documentation shouldn't be executable * Wed Jan 31 2007 ro@suse.de - GNOME moved to /usr * Mon Nov 27 2006 ke@suse.de - Adjustments by Tanja Roth and Berthold Gunreben (XML and images). * Fri Nov 24 2006 ke@suse.de - 10.2 test package, translated Reference Guide included. * Sun Nov 19 2006 ke@suse.de - 10.2 test package. Stuart-Up Guide is translated.
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