From 535878cf321512912c1fb59488c1179631f0914f98ae31c71594bed375f0ffa8 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Thu, 15 Sep 2016 19:40:47 +0000 Subject: [PATCH] Use kf5_find_lang everywhere OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/breeze?expand=0&rev=3 --- breeze.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/breeze.spec b/breeze.spec index dd0a70c..e6a94b6 100644 --- a/breeze.spec +++ b/breeze.spec @@ -22,6 +22,7 @@ Version: 5.7.95 Release: 0 BuildRequires: cmake >= 2.8.12 BuildRequires: extra-cmake-modules >= 0.0.13 +BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: kf5-filesystem BuildRequires: cmake(KDecoration2) >= %{_plasma5_version} @@ -48,7 +49,6 @@ Summary: Plasma Desktop artwork, styles and assets License: GPL-2.0+ Group: System/GUI/KDE Url: http://www.kde.org -#Source: http://download.kde.org/unstable/plasma/%{version}/http://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz Source: http://download.kde.org/unstable/plasma/%{version}/%{name}-%{version}.tar.xz Source99: %{name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -102,17 +102,19 @@ This package provides Breeze KWin decoration. %setup -q %build - %cmake_kf5 -d build -- -DBUILD_po=OFF -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 + %cmake_kf5 -d build -- -DBUILD_po=OFF -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir} %make_jobs %install %kf5_makeinstall -C build +%if %{with lang} + %kf5_find_lang +%endif +%fdupes %buildroot/%_prefix %if %{with lang} -%files -n breeze5-style-lang -%defattr(-,root,root) +%files -n breeze5-style-lang -f %{name}.lang %doc COPYING* -%{_kf5_localedir}/ %endif %files -n breeze5-cursors