Hrvoje Senjan 2015-01-25 04:35:44 +00:00 committed by Git OBS Bridge
parent c348ca0247
commit 26862bfb34
2 changed files with 9 additions and 11 deletions

2
bluedevil5-rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
# we don't use find_lang macro as it doesn't searches in subdirectories
addFilter("file-not-in-%lang .*")

View File

@ -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 <tittiatcoke@gmail.com>
#
# 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