From 26862bfb3448e03761c81b15a83a9ab1acfa8d966640dff3c8085bf696b3cee4 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 25 Jan 2015 04:35:44 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/bluedevil5?expand=0&rev=7 --- bluedevil5-rpmlintrc | 2 ++ bluedevil5.spec | 18 +++++++----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 bluedevil5-rpmlintrc diff --git a/bluedevil5-rpmlintrc b/bluedevil5-rpmlintrc new file mode 100644 index 0000000..cc4ae51 --- /dev/null +++ b/bluedevil5-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/bluedevil5.spec b/bluedevil5.spec index f6e7f93..65951cb 100644 --- a/bluedevil5.spec +++ b/bluedevil5.spec @@ -1,7 +1,7 @@ # # spec file for package bluedevil5 # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 Raymond Wooninck # # All modifications and additions to the file contributed by third parties @@ -17,8 +17,6 @@ # -%define with_lang 0 - Name: bluedevil5 Version: 5.2.0 Release: 0 @@ -27,6 +25,7 @@ License: GPL-2.0+ Group: Hardware/Other Url: http://www.kde.org/ Source: bluedevil-%{version}.tar.xz +Source99: %{name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: kcoreaddons-devel BuildRequires: kdbusaddons-devel @@ -43,6 +42,7 @@ BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0 BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0 Requires: obexd-client +Recommends: %{name}-lang Supplements: packageand(bluez:plasma5-workspace) Conflicts: bluedevil %if %with_lang @@ -59,7 +59,7 @@ Bluetooth daemon for KDE, handling connections. %setup -q -n bluedevil-%{version} %build -%cmake_kf5 -d build +%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5 %make_jobs %install @@ -68,9 +68,6 @@ Bluetooth daemon for KDE, handling connections. %suse_update_desktop_file -r bluedevil-monolithic Qt KDE Utility DesktopUtility sed -i '/^Icon=/d' %{buildroot}%{_kf5_applicationsdir}/bluedevil-monolithic.desktop -%if %with_lang -%endif - %post /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : @@ -89,9 +86,8 @@ sed -i '/^Icon=/d' %{buildroot}%{_kf5_applicationsdir}/bluedevil-monolithic.desk %{_kf5_plugindir}/ %{_kf5_servicesdir}/ -%if %with_lang - -f %{name}.lang -%defattr(-,root,root,-) -%endif +%files lang +%defattr(-,root,root) +%{_kf5_localedir}/ %changelog