File lxqt-common.spec of Package lxqt-common

#
# spec file for package lxqt-common
#
# Copyright (c) 2016 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:        @SERVICE@
Release:        0
Summary:        Common Data File
License:        GPL-2.0+ and LGPL-2.1+
Group:          System/GUI/LXQt
Url:            http://www.lxde.org
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.0.2
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(lxqt) >= %{version}
Requires:       oxygen-icon-theme
Requires(post): desktop-file-utils
Requires(pre):  desktop-file-utils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildArch:      noarch

%description
Common data file required for running an LXQt session

%prep
%setup -q

%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
%dir %{_sysconfdir}/xdg/openbox
%dir %{_datadir}/kdm
%dir %{_datadir}/kdm/sessions
%config %{_sysconfdir}/xdg/lxqt/*.conf
%config %{_sysconfdir}/xdg/pcmanfm-qt/lxqt/*.conf
%config %{_sysconfdir}/xdg/menus/*.menu
%{_sysconfdir}/xdg/autostart/*.desktop
%{_sysconfdir}/xdg/openbox/lxqt-rc.xml
%{_bindir}/startlxqt
%{_datadir}/lxqt
%{_datadir}/xsessions/*.desktop
%{_datadir}/desktop-directories/
%{_datadir}/icons/hicolor/scalable/places/*.svg
%{_datadir}/kdm/sessions/lxqt.desktop
%{_datadir}/icons/hicolor/scalable/apps/lxqt.svg
%{_mandir}/man1/startlxqt.1%{ext_man}

%changelog