File koffice2-l10n.spec.in of Package koffice2-l10n

#
# spec file for package koffice-l10n (Version 2.0.2)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild
# icecream 0

Name:           koffice2-l10n
BuildRequires:  kdelibs4-doc libkde4-devel fdupes
Url:            http://i18n.kde.org/
License:        GPL
Group:          System/GUI/KDE
Summary:        Translations for KOffice2
Version:        2.0.2
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
#@SOURCES@
Source200:      update_spec.pl
Source201:      attributes
%define build_languages @LANGUAGES@

%description
description

#@PACKAGES@

%prep
%setup -q -n koffice-l10n-de-%version @EXTRACT@

%build
cd ..
for i in %build_languages; do
   pushd koffice-l10n-$i-%version || exit 1
   %cmake_kde4 -d build
   %make_jobs
   popd
done

%install
cd ..
for i in %build_languages; do
   pushd koffice-l10n-$i-%version/build || exit 1
   %makeinstall
   popd

   # work-around for bnc#457908
   mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common
done
 
for i in %build_languages; do
   filename=$i
   case $i in
	sr@Latn)
	   filename=srLatn
	   ;;
   esac
   {
   echo "%defattr(-,root,root)"
   if test -d $RPM_BUILD_ROOT/usr/share/locale/$i; then
        echo "%lang($i) /usr/share/locale/$i/LC_MESSAGES/*"
   fi
   if test -f $RPM_BUILD_ROOT/usr/share/kde4/apps/koffice/autocorrect/$i.xml; then
        echo "%dir /usr/share/kde4/apps/koffice"
        echo "%dir /usr/share/kde4/apps/koffice/autocorrect"
        echo "%lang($i) /usr/share/kde4/apps/koffice/autocorrect/$i.xml"
   fi
   } > files.$filename
   {
   echo "%defattr(-,root,root)"
   if test -d $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i; then
        echo "%lang($i) %doc /usr/share/doc/kde/HTML/$i"
   fi
   } > files.doc.$filename
   cat files.$filename files.doc.$filename >files.both.$filename
done
%fdupes -s $RPM_BUILD_ROOT

#@FILES@

%changelog -n koffice2-l10n
openSUSE Build Service is sponsored by