File psi+-lang.spec of Package psi+

# spec file for package psi+-lang
# 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

%define version_unconverted 1.2.107+3

Name:           psi+-lang
Version:        1.2.107+3
Release:        0
Summary:        Translations for Psi+
License:        GPL-2.0+
Group:          Productivity/Networking/Talk/Clients
Source0:        psi-plus-l10n-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libqt5-linguist
# for qmake-qt5:
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  xz
Requires:       psi+
BuildArch:      noarch
Obsoletes:      psi+-lang > 20100101

Various translations for Psi+.

%setup -q -n psi-plus-l10n-%{version}

sed -i 's@\<lrelease\>@&-qt5@'

./ make

install -d %{buildroot}%{_datadir}/psi-plus
install -m 0644 -t %{buildroot}%{_datadir}/psi-plus out/*.qm

%dir %{_datadir}/psi-plus/

openSUSE Build Service is sponsored by