File cinnamon-translations.spec of Package cinnamon-translations

#
# spec file for package cinnamon-translations
#
# Copyright (c) 2017 SUSE LINUX 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:           cinnamon-translations
Version:        3.4.1
Release:        0
Summary:        Translation files for the Cinnamon desktop
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            https://github.com/linuxmint/cinnamon-translations
Source:         https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  filesystem
BuildArch:      noarch

%description
The package contains the translation files for the Cinnamon packages.

%prep
%setup -q

%build
# Nothing to build.

%install
make buildmo

mkdir -p %{buildroot}%{_datadir}/locale/
# Only get locales that are present in openSUSE.
ls %{_datadir}/locale/ | while read lang; do
    if [ -d .%{_datadir}/locale/$lang/ ]; then
        cp -a .%{_datadir}/locale/$lang/ %{buildroot}%{_datadir}/locale/
    fi
done
%find_lang cinnamon %{name}.lang
%find_lang cinnamon-control-center %{name}.lang
%find_lang cinnamon-screensaver %{name}.lang
%find_lang cinnamon-bluetooth %{name}.lang
%find_lang nemo %{name}.lang

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING debian/changelog

%changelog
openSUSE Build Service is sponsored by