From 312a802f89cc74a47300a248ffc69aa340f05f18a5f210b718019af96c07c740 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 3 Oct 2014 16:59:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kde-gtk-config5?expand=0&rev=3 --- kde-gtk-config5-rpmlintrc | 2 ++ kde-gtk-config5.spec | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 kde-gtk-config5-rpmlintrc diff --git a/kde-gtk-config5-rpmlintrc b/kde-gtk-config5-rpmlintrc new file mode 100644 index 0000000..cc4ae51 --- /dev/null +++ b/kde-gtk-config5-rpmlintrc @@ -0,0 +1,2 @@ +# we don't use find_lang macro as it doesn't searches in subdirectories +addFilter("file-not-in-%lang .*") \ No newline at end of file diff --git a/kde-gtk-config5.spec b/kde-gtk-config5.spec index fdc54d8..69cf4c7 100644 --- a/kde-gtk-config5.spec +++ b/kde-gtk-config5.spec @@ -24,6 +24,7 @@ License: LGPL-2.0+ Group: System/GUI/KDE Url: https://projects.kde.org/projects/extragear/sdk/kde-gtk-config Source: kde-gtk-config-%{version}.tar.xz +Source99: kde-gtk-config5-rpmlintrc Patch0: append5.diff BuildRequires: extra-cmake-modules BuildRequires: karchive-devel @@ -43,12 +44,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build A small IDE taylored for development of Plasma components, such as Widgets, Runners, Dataengines. +%lang_package %prep %setup -q -n kde-gtk-config-%{version} %patch0 -p1 %build - %cmake_kf5 -d build + %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 %make_jobs %install @@ -67,8 +69,10 @@ such as Widgets, Runners, Dataengines. %{_kf5_plugindir}/ %{_kf5_libdir}/libexec/ %{_kf5_sharedir}/kcm-gtk-module/ -%dir %{_kf5_sharedir}/icons/hicolor/8x8 -%dir %{_kf5_sharedir}/icons/hicolor/8x8/actions %{_kf5_sharedir}/icons/hicolor/*/*/*.* +%files lang +%defattr(-,root,root) +%{_kf5_localedir}/ + %changelog