LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bundle-lang-kde.spec of Package bundle-lang-common (Project X11:common:Factory)

#
# spec file for package bundle-lang-kde
#
# Copyright (c) 2012 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/
#


Name:           bundle-lang-kde
# @BREQUIRES@
BuildRequires:  NetworkManager-kde4-libs-lang
BuildRequires:  amarok-lang
BuildRequires:  apper-lang
BuildRequires:  fdupes
BuildRequires:  ggz-client-libs-lang
BuildRequires:  kdebase4-openSUSE-lang
BuildRequires:  ktorrent-lang
BuildRequires:  kwebkitpart-lang
BuildRequires:  libgpod-lang
BuildRequires:  libktorrent5-lang
#!BuildIgnore:  xorg-x11-driver-input
#!BuildIgnore:  NetworkManager-openvpn
#!BuildIgnore:  NetworkManager-pptp
#!BuildIgnore:  NetworkManager-vpnc
#!BuildIgnore:  NetworkManager-openconnect
#!BuildIgnore:  virtualbox-host-kmp-default
#!BuildIgnore:  typelib-1_0-WebKit-1_0
#!BuildIgnore:  typelib-1_0-Vte-0_0
#!BuildIgnore: gimp-unstable
Version:        12.2
Release:        0
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Source0:        bundle.sh
Source1:        list_langs.sh
Source2:        packages.txt
Source3:        attributes
Source4:        update_spec.pl
Source5:        update-list.sh

%description
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package en
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:en)
Provides:       locale(amarok:en)
Provides:       locale(apper:en)
Provides:       locale(ggz-client-libs:en)
Provides:       locale(kdebase4-openSUSE:en)
Provides:       locale(ktorrent:en)
Provides:       locale(kwebkitpart:en)
Provides:       locale(libgpod:en)
Provides:       locale(libktorrent5:en)

%description en
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package de
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:de)
Provides:       locale(amarok:de)
Provides:       locale(apper:de)
Provides:       locale(ggz-client-libs:de)
Provides:       locale(kdebase4-openSUSE:de)
Provides:       locale(ktorrent:de)
Provides:       locale(kwebkitpart:de)
Provides:       locale(libgpod:de)
Provides:       locale(libktorrent5:de)

%description de
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package es
Summary:        Translations for a group of KDE programs
License:        GPL-2.0+
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:es)
Provides:       locale(amarok:es)
Provides:       locale(apper:es)
Provides:       locale(ggz-client-libs:es)
Provides:       locale(kdebase4-openSUSE:es)
Provides:       locale(ktorrent:es)
Provides:       locale(kwebkitpart:es)
Provides:       locale(libgpod:es)
Provides:       locale(libktorrent5:es)

%description es
This package groups translations for a dozen of KDE programs into
languages not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package it
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:it)
Provides:       locale(amarok:it)
Provides:       locale(apper:it)
Provides:       locale(ggz-client-libs:it)
Provides:       locale(kdebase4-openSUSE:it)
Provides:       locale(ktorrent:it)
Provides:       locale(kwebkitpart:it)
Provides:       locale(libgpod:it)
Provides:       locale(libktorrent5:it)

%description it
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package fr
Summary:        Translations for a group of KDE programs
License:        GPL-2.0+
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:fr)
Provides:       locale(amarok:fr)
Provides:       locale(apper:fr)
Provides:       locale(ggz-client-libs:fr)
Provides:       locale(kdebase4-openSUSE:fr)
Provides:       locale(ktorrent:fr)
Provides:       locale(kwebkitpart:fr)
Provides:       locale(libgpod:fr)
Provides:       locale(libktorrent5:fr)

%description fr
This package groups translations for a dozen of KDE programs into
languages not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package ja
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:ja)
Provides:       locale(amarok:ja)
Provides:       locale(apper:ja)
Provides:       locale(ggz-client-libs:ja)
Provides:       locale(kdebase4-openSUSE:ja)
Provides:       locale(ktorrent:ja)
Provides:       locale(kwebkitpart:ja)
Provides:       locale(libgpod:ja)
Provides:       locale(libktorrent5:ja)

%description ja
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package zh
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:zh)
Provides:       locale(amarok:zh)
Provides:       locale(apper:zh)
Provides:       locale(ggz-client-libs:zh)
Provides:       locale(kdebase4-openSUSE:zh)
Provides:       locale(ktorrent:zh)
Provides:       locale(kwebkitpart:zh)
Provides:       locale(libgpod:zh)
Provides:       locale(libktorrent5:zh)

%description zh
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package nl
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:nl)
Provides:       locale(amarok:nl)
Provides:       locale(apper:nl)
Provides:       locale(ggz-client-libs:nl)
Provides:       locale(kdebase4-openSUSE:nl)
Provides:       locale(ktorrent:nl)
Provides:       locale(kwebkitpart:nl)
Provides:       locale(libgpod:nl)
Provides:       locale(libktorrent5:nl)

%description nl
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package cs
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:cs)
Provides:       locale(amarok:cs)
Provides:       locale(apper:cs)
Provides:       locale(ggz-client-libs:cs)
Provides:       locale(kdebase4-openSUSE:cs)
Provides:       locale(ktorrent:cs)
Provides:       locale(kwebkitpart:cs)
Provides:       locale(libgpod:cs)
Provides:       locale(libktorrent5:cs)

%description cs
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package pt
Summary:        Translations for a group of KDE programs
License:        GPL-2.0+
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:pt)
Provides:       locale(NetworkManager-kde4-libs:pt_BR)
Provides:       locale(amarok:pt)
Provides:       locale(amarok:pt_BR)
Provides:       locale(apper:pt)
Provides:       locale(apper:pt_BR)
Provides:       locale(ggz-client-libs:pt)
Provides:       locale(ggz-client-libs:pt_BR)
Provides:       locale(kdebase4-openSUSE:pt)
Provides:       locale(kdebase4-openSUSE:pt_BR)
Provides:       locale(ktorrent:pt)
Provides:       locale(ktorrent:pt_BR)
Provides:       locale(kwebkitpart:pt)
Provides:       locale(kwebkitpart:pt_BR)
Provides:       locale(libgpod:pt)
Provides:       locale(libgpod:pt_BR)
Provides:       locale(libktorrent5:pt)
Provides:       locale(libktorrent5:pt_BR)

%description pt
This package groups translations for a dozen of KDE programs into
languages not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package pl
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:pl)
Provides:       locale(amarok:pl)
Provides:       locale(apper:pl)
Provides:       locale(ggz-client-libs:pl)
Provides:       locale(kdebase4-openSUSE:pl)
Provides:       locale(ktorrent:pl)
Provides:       locale(kwebkitpart:pl)
Provides:       locale(libgpod:pl)
Provides:       locale(libktorrent5:pl)

%description pl
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package ca
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:ca)
Provides:       locale(amarok:ca)
Provides:       locale(apper:ca)
Provides:       locale(ggz-client-libs:ca)
Provides:       locale(kdebase4-openSUSE:ca)
Provides:       locale(ktorrent:ca)
Provides:       locale(kwebkitpart:ca)
Provides:       locale(libgpod:ca)
Provides:       locale(libktorrent5:ca)

%description ca
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package ar
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:ar)
Provides:       locale(amarok:ar)
Provides:       locale(apper:ar)
Provides:       locale(ggz-client-libs:ar)
Provides:       locale(kdebase4-openSUSE:ar)
Provides:       locale(ktorrent:ar)
Provides:       locale(kwebkitpart:ar)
Provides:       locale(libgpod:ar)
Provides:       locale(libktorrent5:ar)

%description ar
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package hu
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:hu)
Provides:       locale(amarok:hu)
Provides:       locale(apper:hu)
Provides:       locale(ggz-client-libs:hu)
Provides:       locale(kdebase4-openSUSE:hu)
Provides:       locale(ktorrent:hu)
Provides:       locale(kwebkitpart:hu)
Provides:       locale(libgpod:hu)
Provides:       locale(libktorrent5:hu)

%description hu
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package ko
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:ko)
Provides:       locale(amarok:ko)
Provides:       locale(apper:ko)
Provides:       locale(ggz-client-libs:ko)
Provides:       locale(kdebase4-openSUSE:ko)
Provides:       locale(ktorrent:ko)
Provides:       locale(kwebkitpart:ko)
Provides:       locale(libgpod:ko)
Provides:       locale(libktorrent5:ko)

%description ko
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package da
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:da)
Provides:       locale(amarok:da)
Provides:       locale(apper:da)
Provides:       locale(ggz-client-libs:da)
Provides:       locale(kdebase4-openSUSE:da)
Provides:       locale(ktorrent:da)
Provides:       locale(kwebkitpart:da)
Provides:       locale(libgpod:da)
Provides:       locale(libktorrent5:da)

%description da
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package sv
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:sv)
Provides:       locale(amarok:sv)
Provides:       locale(apper:sv)
Provides:       locale(ggz-client-libs:sv)
Provides:       locale(kdebase4-openSUSE:sv)
Provides:       locale(ktorrent:sv)
Provides:       locale(kwebkitpart:sv)
Provides:       locale(libgpod:sv)
Provides:       locale(libktorrent5:sv)

%description sv
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package ru
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:ru)
Provides:       locale(amarok:ru)
Provides:       locale(apper:ru)
Provides:       locale(ggz-client-libs:ru)
Provides:       locale(kdebase4-openSUSE:ru)
Provides:       locale(ktorrent:ru)
Provides:       locale(kwebkitpart:ru)
Provides:       locale(libgpod:ru)
Provides:       locale(libktorrent5:ru)

%description ru
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package fi
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:fi)
Provides:       locale(amarok:fi)
Provides:       locale(apper:fi)
Provides:       locale(ggz-client-libs:fi)
Provides:       locale(kdebase4-openSUSE:fi)
Provides:       locale(ktorrent:fi)
Provides:       locale(kwebkitpart:fi)
Provides:       locale(libgpod:fi)
Provides:       locale(libktorrent5:fi)

%description fi
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%package nb
Summary:        Translations for a group of KDE applications
License:        MIT
Group:          System/Localization
Provides:       NetworkManager-kde4-libs-lang = %(rpm -q --queryformat '%{VERSION}' NetworkManager-kde4-libs-lang)
Provides:       amarok-lang = %(rpm -q --queryformat '%{VERSION}' amarok-lang)
Provides:       apper-lang = %(rpm -q --queryformat '%{VERSION}' apper-lang)
Provides:       ggz-client-libs-lang = %(rpm -q --queryformat '%{VERSION}' ggz-client-libs-lang)
Provides:       kdebase4-openSUSE-lang = %(rpm -q --queryformat '%{VERSION}' kdebase4-openSUSE-lang)
Provides:       ktorrent-lang = %(rpm -q --queryformat '%{VERSION}' ktorrent-lang)
Provides:       kwebkitpart-lang = %(rpm -q --queryformat '%{VERSION}' kwebkitpart-lang)
Provides:       libgpod-lang = %(rpm -q --queryformat '%{VERSION}' libgpod-lang)
Provides:       libktorrent5-lang = %(rpm -q --queryformat '%{VERSION}' libktorrent5-lang)
Provides:       locale(NetworkManager-kde4-libs:nb)
Provides:       locale(amarok:nb)
Provides:       locale(apper:nb)
Provides:       locale(ggz-client-libs:nb)
Provides:       locale(kdebase4-openSUSE:nb)
Provides:       locale(ktorrent:nb)
Provides:       locale(kwebkitpart:nb)
Provides:       locale(libgpod:nb)
Provides:       locale(libktorrent5:nb)

%description nb
This package groups translations for a dozen of KDE programs into
languages, not split out into extra packages.
* amarok
* digikam
* digikam-doc
* gwenview
* k3b
* kaffeine
* kdebase3-SuSE
* kdetv
* kerry
* kipi-plugins
* konversation
* ktorrent
* libkipi

%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT
cp %SOURCE1 .
packages=""
# @PACKAGES@
packages="$packages libktorrent5-lang"
packages="$packages libgpod-lang"
packages="$packages kwebkitpart-lang"
packages="$packages ktorrent-lang"
packages="$packages kdebase4-openSUSE-lang"
packages="$packages ggz-client-libs-lang"
packages="$packages apper-lang"
packages="$packages amarok-lang"
packages="$packages NetworkManager-kde4-libs-lang"
bash %SOURCE0 $packages

if test kde = kde; then
  # pretty evil hack to keep the symlinks working
  langs=`cd $RPM_BUILD_ROOT/usr/share/doc-bundle/kde/HTML && ls -1d *`
  for lang in $langs; do
    ln -s /usr/share/doc/kde/HTML/$lang/common $RPM_BUILD_ROOT/usr/share/doc-bundle/kde/HTML/$lang/common
    echo /usr/share/doc-bundle/kde/HTML/$lang/common >> filelist.$lang
    # we don't need the ../common symlinks (bnc#394343)
    files=`cd $RPM_BUILD_ROOT && ls -1 /usr/share/doc-bundle/kde/HTML/$lang/*/common 2>/dev/null || true`
    for f in $files; do 
       if test -L $RPM_BUILD_ROOT/$f; then
         rm $RPM_BUILD_ROOT/$f
         for i in filelist*; do
           grep -v $f $i > $i.new || true
           mv $i.new $i
         done
       fi
    done
  done
fi
if test kde = gnome -o kde = gnome-extras; then
  # pretty evil hack to keep symlinks for localized help (usually, figures
  # that are unchanged and are shipped with the app itself)
  for file in `find %{buildroot}%{_datadir}/gnome/help-bundle %{buildroot}%{_datadir}/help-bundle`; do
    if test -L "${file}"; then
      target=`readlink --canonicalize-missing ${file}`
      if test ! -f "${target}" -a ! -f "${target#%{buildroot}}"; then
        target=`echo "${target#%{buildroot}}" | sed "s:help-bundle:help:"`
        echo ${target} | grep -qE "%{_datadir}/gnome/help/[^/]*/C/|%{_datadir}/help/C/[^/]*/"
        if test $? -eq 0; then
          ln -sf "${target}" "${file}"
          echo ln -sf "${target}" "${file}"
        fi
      fi
    fi
  done
fi
taken_languages="en de es it fr ja zh nl cs pt pl ca ar hu ko da sv ru fi nb"
for suffix in CN TW; do 
   cat filelist.zh_$suffix >> filelist.zh
   rm -f filelist.zh_$suffix
done
cat filelist.pt_BR >> filelist.pt
rm -f filelist.pt_BR
for lang in $taken_languages; do
  echo "%defattr(-,root,root,755)" > taken.$lang
  cat filelist.$lang >> taken.$lang
  rm filelist.$lang
done
# special hack for a special problem (I hope)
if test -f $RPM_BUILD_ROOT/usr/share/gnome/help-bundle/dia/eu/graphics/line_props.png; then
  rm $RPM_BUILD_ROOT/usr/share/gnome/help-bundle/dia/pl/graphics/line_props.png
  cp $RPM_BUILD_ROOT/usr/share/gnome/help-bundle/dia/eu/graphics/line_props.png $RPM_BUILD_ROOT/usr/share/gnome/help-bundle/dia/pl/graphics/line_props.png
fi

for file in filelist.*; do
  grep -v %dir $file | sed -e "s,.*lang[^ ]* ,,; s,%doc *,," | while read f; do rm -v $RPM_BUILD_ROOT$f; done
  rm $file
done

for i in $RPM_BUILD_ROOT/*; do
  %fdupes $i
done

for file in taken.*; do
  changed=1
  while test "$changed" = 1; do
    changed=0
    list=`grep %dir $file | sed -e "s,%dir,,; s,%lang[^ ]*,," | while read dir; do dirname "$dir"; done | sort -u`
    for dir in $list; do
      grep -q "$dir"\$ $file && continue
      rpm -qf $dir && continue
      changed=1
      echo "%dir $dir" >> $file
    done
  done
done

%clean
rm -rf $RPM_BUILD_ROOT

%files en -f taken.en

%files de -f taken.de

%files es -f taken.es

%files it -f taken.it

%files fr -f taken.fr

%files ja -f taken.ja

%files zh -f taken.zh

%files nl -f taken.nl

%files cs -f taken.cs

%files pt -f taken.pt

%files pl -f taken.pl

%files ca -f taken.ca

%files ar -f taken.ar

%files hu -f taken.hu

%files ko -f taken.ko

%files da -f taken.da

%files sv -f taken.sv

%files ru -f taken.ru

%files fi -f taken.fi

%files nb -f taken.nb

#LANGUAGE_FILES

%changelog