File lxqt-common.spec of Package lxqt-common

#
# spec file for package lxqt-common
#
# 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-common
Version:        0.9.1
Release:        0
Summary:        Common Data File
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-UPSTREAM sfalken@opensuse.org -- Renames theme dirs to all lower case, as lxqt expects, otherwise you get a broken theme'd lxqt on first boot (gh#lxde/lxqt#500)
Patch0:         lxqt-common-0.9.1-fix-theme-dirnames.patch
# trcs@gmx.com -- Use gnomesu for pcmanfm-qt SuCommand [System] setting, gksu is not available in openSUSE
Patch1:			lxqt-common-0.9.1-pcmanfm-qt-use-gnomesu-not-gksu.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  kwindowsystem-devel
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(lxqt) >= 0.9.0
Requires(pre):	desktop-file-utils
Requires(post):	desktop-file-utils
Requires:		libgnomesu
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Common data file required for running an lxqt session

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake
%__make %{?_smp_mflags}

%install
%cmake_install
%fdupes %{buildroot}/%{_datadir}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%dir %{_sysconfdir}/xdg/lxqt
%dir %{_sysconfdir}/xdg/pcmanfm-qt
%dir %{_sysconfdir}/xdg/pcmanfm-qt/lxqt
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/lxqt/*.conf
%config %{_sysconfdir}/xdg/pcmanfm-qt/lxqt/*.conf
%{_sysconfdir}/xdg/autostart/*.desktop
%config %{_sysconfdir}/xdg/menus/*.menu
%{_bindir}/startlxqt
%{_datadir}/apps
%{_datadir}/lxqt
%{_datadir}/xsessions/*.desktop
%{_datadir}/desktop-directories/
%{_datadir}/icons/hicolor/scalable/places/*.svg

%changelog
openSUSE Build Service is sponsored by