File lxqt-config.spec of Package lxqt-config
#
# spec file for package lxqt-config
#
# 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/
#
Name: lxqt-config
Version: 0.9.0
Release: 0
Summary: LXQT Control Center
License: GPL-2.0+ and LGPL-2.1+
Group: System/GUI/LXDE-Qt
Url: http://www.lxde.org
Source: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE fix_desktop_categories.patch sfalken@opensuse.org -- Fixes desktop categories to clear rpmlint warnings
Patch0: fix_desktop_categories.patch
# lxqt-config will only show apps that have the "LXQt" Category, since we fix this to be freedesktop compliant ("X-LXQt") we need this fix to
# get the apps displayed.
Patch1: fix_menu_categories.patch
Patch2: lxqt-config-libqt5.5.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kwindowsystem-devel
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Xdg) >= 1.0.0
BuildRequires: pkgconfig(lxqt) >= %{version}
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(zlib)
Requires(pre): desktop-file-utils
Requires(post): desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
System Configuration and Control Center for lxqt
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1
%patch2 -p1
%build
%cmake
%__make %{?_smp_mflags}
%install
%cmake_install
%fdupes -s %{buildroot}/%{_datadir}
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/*.menu
%{_bindir}/%{name}
%{_bindir}/%{name}-appearance
%{_bindir}/%{name}-file-associations
%{_bindir}/%{name}-input
%{_bindir}/%{name}-monitor
%{_libdir}/liblxqt-config-cursor.so
%{_datadir}/applications/*.desktop
%files -n %{name}-lang
%defattr(-,root,root)
%{_datadir}/lxqt/translations
%changelog