kcm_sddm/kcm_sddm.spec

91 lines
2.8 KiB
RPMSpec

#
# spec file for package kcm_sddm
#
# 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: kcm_sddm
Summary: A sddm control module for KDE
License: GPL-2.0
Group: System/GUI/KDE
Version: 5.3.0
Release: 0
Url: https://projects.kde.org/projects/kdereview/sddm-kcm/repository
Source: sddm-kcm-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kauth-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: kxmlgui-devel
BuildRequires: pkgconfig(Qt5Core) >= 5.4.0
BuildRequires: pkgconfig(Qt5Designer) >= 5.4.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.4.0
BuildRequires: pkgconfig(Qt5Quick) >= 5.4.0
BuildRequires: pkgconfig(Qt5QuickWidgets) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.4.0
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-shm)
# cmakelists broken upstream, /home/abuild/rpmbuild/BUILD/sddm-kcm-0.0.0.1/src/cursortheme/thememodel.cpp:34:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
BuildRequires: pkgconfig(xcursor)
%if %{with lang}
Recommends: %{name}-lang
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SDDM control module for KDE. It provides a graphical frontend for the
sddm.
%lang_package
%prep
%setup -q -n sddm-kcm-%{version}
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
echo "setBadness('suse-dbus-unauthorized-service', 0)" > $RPM_SOURCE_DIR/%name-rpmlintrc
%if %{with lang}
%find_lang %{name} %{name}.lang
%endif
%if %{with lang}
%files lang -f %{name}.lang
%endif
%files
%defattr(-,root,root)
%doc README
%{_kf5_servicesdir}/
%{_kf5_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
%config %{_kf5_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf
%{_kf5_sharedir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service
%{_kf5_libdir}/libexec/
%{_kf5_plugindir}/
%{_kf5_sharedir}/sddm-kcm/
%changelog