Name: sddm Version: 0.1.0 Release: 1 License: GPLv2+ Summary: QML based X11 desktop manager Url: https://github.com/sddm/sddm Source0: https://github.com/sddm/sddm/archive/%{version}.zip # Originally kdm config, shamelessly stolen from kde-settings Source1: sddm.pam BuildRequires: systemd-devel BuildRequires: upower-devel BuildRequires: pam-devel BuildRequires: libxcb-devel BuildRequires: qt-devel BuildRequires: gcc-c++ BuildRequires: pkgconfig %description SDDM is a modern display manager for X11 aiming to be fast, simple and beautiful. It uses modern technologies like QtQuick, which in turn gives the designer the ability to create smooth, animated user interfaces. %prep %setup -q -n sddm-%{version} %build mkdir -p %{_target_platform} # get rid of the architecture flag sed -i "s/-march=native//" CMakeLists.txt pushd %{_target_platform} %{cmake} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} cp -p %SOURCE1 %{buildroot}%{_sysconfdir}/pam.d/sddm # set the first VT used to be 1 sed -i "s/^MinimumVT=[0-9]*$/MinimumVT=1/" %{buildroot}%{_sysconfdir}/sddm.conf %post %systemd_post sddm.service %preun %systemd_preun sddm.service %files %config %{_sysconfdir}/pam.d/sddm %config %{_sysconfdir}/sddm.conf %{_bindir}/sddm %{_bindir}/sddm-greeter %{_unitdir}/sddm.service %{_libdir}/qt4/imports/SddmComponents %{_datadir}/apps/sddm/faces/* %{_datadir}/apps/sddm/scripts/* %{_datadir}/apps/sddm/sddm.conf.sample %{_datadir}/apps/sddm/themes/* %changelog * Thu Jul 04 2013 Martin Briza - 0.1.0-1 - Initial build.