diff --git a/kinfocenter5-rpmlintrc b/kinfocenter5-rpmlintrc deleted file mode 100644 index cc4ae51..0000000 --- a/kinfocenter5-rpmlintrc +++ /dev/null @@ -1,2 +0,0 @@ -# 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/kinfocenter5.changes b/kinfocenter5.changes index 5d1ab15..553a961 100644 --- a/kinfocenter5.changes +++ b/kinfocenter5.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jul 5 11:27:46 UTC 2016 - wbauer@tmo.at + +- Use the new %kf5_find_lang macro to create the file list for the + lang package +- Remove rpmlintrc file, it is not needed any more now + ------------------------------------------------------------------- Thu Jun 30 12:02:22 UTC 2016 - hrvoje.senjan@gmail.com diff --git a/kinfocenter5.spec b/kinfocenter5.spec index 9255f4d..69c7780 100644 --- a/kinfocenter5.spec +++ b/kinfocenter5.spec @@ -25,7 +25,6 @@ License: GPL-2.0+ Group: System/GUI/KDE Url: http://www.kde.org/ Source: kinfocenter-%{version}.tar.xz -Source99: %{name}-rpmlintrc # PATCH-FIX-OPENSUSE plasma-session-name.patch Patch0: plasma-session-name.patch BuildRequires: extra-cmake-modules >= 1.2.0 @@ -81,11 +80,14 @@ KDE Utility that provides information about a computer system. %patch0 -p1 %build - %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 + %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir} %make_jobs %install %kf5_makeinstall -C build +%if %{with lang} + %kf5_find_lang +%endif %files %defattr(-,root,root) @@ -106,10 +108,8 @@ KDE Utility that provides information about a computer system. %{_kf5_sharedir}/desktop-directories/ %if %{with lang} -%files lang -%defattr(-,root,root) +%files lang -f %{name}.lang %doc COPYING* -%{_kf5_localedir}/ %doc %lang(ca) %{_kf5_htmldir}/ca/ %doc %lang(de) %{_kf5_htmldir}/de/ %doc %lang(it) %{_kf5_htmldir}/it/