File kmenuedit5.spec of Package kmenuedit5

#
# spec file for package kmenuedit5
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%bcond_without lang
Name:           kmenuedit5
Version:        5.4.2
Release:        0
Summary:        Provides the interface and basic tools for the KDE workspace
License:        GPL-2.0
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Source:         kmenuedit-%{version}.tar.xz
Source99:       %{name}-rpmlintrc
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  kdbusaddons-devel
BuildRequires:  kdelibs4support-devel
BuildRequires:  kf5-filesystem
BuildRequires:  khotkeys5
BuildRequires:  khotkeys5-devel
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kio-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  sonnet-devel
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:  pkgconfig(Qt5DBus) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Xml) >= 5.4.0
%if %{with lang}
Recommends:     %{name}-lang
%endif
Conflicts:      kdebase4-workspace < 5.3.0
#BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Provides the interface and basic tools for the KDE workspace.

%lang_package
%prep
%setup -q -n kmenuedit-%{version}

%build
  %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
  %make_jobs

%install
  %kf5_makeinstall -C build
  %fdupes -s %{buildroot}

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libkdeinit5_kmenuedit.so
%{_kf5_bindir}/kmenuedit
%{_kf5_applicationsdir}/org.kde.kmenuedit.desktop
%{_kf5_sharedir}/icons/hicolor/*/*/*.*
%{_kf5_sharedir}/kmenuedit/
%{_kf5_sharedir}/kxmlgui5/
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%{_kf5_htmldir}/en/kmenuedit/

%if %{with lang}
%files lang
%defattr(-,root,root)
%{_kf5_localedir}/
%doc %lang(ca) %{_kf5_htmldir}/ca/
%doc %lang(de) %{_kf5_htmldir}/de/
%doc %lang(it) %{_kf5_htmldir}/it/
%doc %lang(nl) %{_kf5_htmldir}/nl/
%doc %lang(sv) %{_kf5_htmldir}/sv/
%doc %lang(uk) %{_kf5_htmldir}/uk/
%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/
%endif

%changelog
openSUSE Build Service is sponsored by