Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 874e9bc9bc9e19a89883655e5c8655c9 > files > 8

sddm-0.11.0-1.1.mga5.src.rpm

Name:		sddm
Version:	0.11.0
%define subrel	1
Release:	%mkrel 1
License:	GPLv2+
Summary:	QML based X11 desktop manager
Group:		Graphical desktop/KDE
Url:		https://github.com/sddm/sddm
Source0:	https://github.com/sddm/sddm/archive/v%{version}.tar.gz
# PAM configs shamelessly stolen from our gdm package
Source1:	sddm.pam
Source2:	sddm-autologin.pam
# Adds sddm to drakedm
Source3:	11sddm.conf
# Xsession script
Source4:	Xsession
# theme deliberately stolen from https://github.com/intialonso/intialonso.github.io/tree/master/themes/sddm/numix :P
Source5: https://github.com/intialonso/intialonso.github.io/raw/master/themes/sddm/numix-0.10.tar.gz
# default /etc/sddm.conf, created from man sddm.conf
# show users with UID >= 500 and hide system users
Source6:	sddm.conf
# rediffed from https://github.com/sddm/sddm/commit/4cfed6b0a625593fb43876f04badc4dd99799d86
# CVE-2015-0856 - prevent themes from loading KDE crash handler
Patch0:		sddm-0.11-mga-CVE-2015-0856.patch

BuildRequires:	cmake
BuildRequires:	systemd-devel
BuildRequires:	upower-devel
BuildRequires:	pam-devel
BuildRequires:	python-docutils
BuildRequires:	libxcb-devel
BuildRequires:	pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Help)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Test)

Obsoletes:	slim < 1.3.6

# For default background
Requires:	mageia-theme

# For themes, without this one gets
# "module "QtQuick" is not installed" errors
Requires:	qtdeclarative5

Requires:	xinitrc
Requires:	pam
Requires:	systemd
Requires:	x11-server-xorg
Requires(post):	systemd
Requires(preun): systemd
Requires(postun): systemd

%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
%apply_patches

# use default mga background image in themes
#
# (doktor5000) - this makes most part of the themes useless and ugly (default.jpg is not resolution-optimized)
# instead, a separate Mageia theme is created further bewlo and used by default
# sed -i -e 's,\(^background=\).*,\1%{_datadir}/mga/backgrounds/default.jpg,' data/themes/*/theme.conf



# replace upstream Xsession script
install -Dpm755 %{_sourcedir}/Xsession data/scripts/Xsession

%build
# get rid of the architecture flag
sed -i "s/-march=native//" CMakeLists.txt
%cmake_qt5 \
	-DUSE_QT5=ON \
	-DBUILD_MAN_PAGES=ON \
	-DENABLE_JOURNALD=ON

%make

%install
make install/fast DESTDIR=%{buildroot} -C build

# dm config
install -Dpm 644 %{_sourcedir}/11sddm.conf %{buildroot}%{_datadir}/X11/dm.d/11sddm.conf

# PAM config stolen from our gdm package
install -Dpm 644 %{_sourcedir}/sddm.pam %{buildroot}%{_sysconfdir}/pam.d/sddm
install -Dpm 644 %{_sourcedir}/sddm-autologin.pam %{buildroot}%{_sysconfdir}/pam.d/sddm-autologin

# system user home dir
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}

# extract additional numix theme, based on Maui
tar -xf %{SOURCE5} -C %{buildroot}%{_datadir}/sddm/themes

####
# create Mageia theme based on default Maui theme, and use Mageia default background
cp -a %{buildroot}%{_datadir}/sddm/themes/maui %{buildroot}%{_datadir}/sddm/themes/mga-maui
sed -i -e 's,\(^background=\).*,\1%{_datadir}/mga/backgrounds/default.jpg,' %{buildroot}%{_datadir}/sddm/themes/mga-maui/theme.conf

export metadata=%{buildroot}%{_datadir}/sddm/themes/mga-maui/metadata.desktop

cat > $metadata << EOF
[SddmGreeterTheme]
Name=Mageia Maui
Description=Mageia Maui Theme - based on original Maui theme
Author=doktor5000
Copyright=(c) 2013, Abdurrahman AVCI
License=CC-BY-SA
Type=sddm-theme
Version=0.1
Website=https://github.com/sddm/sddm
Screenshot=default.jpg
MainScript=Main.qml
ConfigFile=theme.conf
TranslationsDirectory=translations
Email=doktor5000@mageia.org
Theme-Id=mga-maui
Theme-API=2.0
EOF

####

# install default sddm.conf
install -Dpm 644 %{_sourcedir}/sddm.conf %{buildroot}%{_sysconfdir}/

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /sbin/nologin

%if 0
%post
%_post_service sddm

%preun
%_preun_service sddm
%endif

%files
%doc COPYING README.md CONTRIBUTORS
%attr(700,sddm,sddm) %{_localstatedir}/lib/%{name}/
%config(noreplace) %{_sysconfdir}/sddm.conf
%config(noreplace) %{_sysconfdir}/pam.d/sddm
%config(noreplace) %{_sysconfdir}/pam.d/sddm-autologin
%config(noreplace) %{_sysconfdir}/pam.d/sddm-greeter
%{_datadir}/X11/dm.d/11sddm.conf
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf
%{_libexecdir}/sddm-helper
%{_bindir}/sddm
%{_bindir}/sddm-greeter
%{_unitdir}/sddm.service
%{_qt5_qml}/SddmComponents
%{_datadir}/sddm/faces
%{_datadir}/sddm/scripts
%{_datadir}/sddm/themes
%{_datadir}/sddm/flags
%{_datadir}/sddm/translations
%{_mandir}/man?/%{name}*


%changelog
* Thu Oct 15 2015 doktor5000 <doktor5000> 0.11.0-1.1.mga5
+ Revision: 891920
- added patch for CVE-2015-0856 (mga#16966)
  o prevent themes from loading KDE crash handler

* Wed Dec 03 2014 doktor5000 <doktor5000> 0.11.0-1.mga5
+ Revision: 800515
- new version 0.11.0
- drop Patch to use system locale on greeter start, merged upstream
- really update numix theme to work with sddm >= 0.10.0
- do not change background for all themes to Mageia default background
- create and use custom Mageia theme based on Maui as default
- updated URL to new naming scheme, reenables automatic downloads

* Fri Nov 21 2014 doktor5000 <doktor5000> 0.10.0-5.mga5
+ Revision: 798141
- added /usr/sbin/nologin to HideShells stanza

* Thu Nov 20 2014 doktor5000 <doktor5000> 0.10.0-4.mga5
+ Revision: 797925
- add Patch to use system locale on greeter start
  o from upstream https://github.com/sddm/sddm/pull/312
- remove pam_gnome_keyring.so to fix the impossibility to log out (rhbz#1150283)
- use %%config(noreplace) for /etc/sddm.conf
- add default /etc/sddm.conf with comments on all stanzas
  o allows to show users with UID >= 500 for upgrades from mga4 (mga#11401)
  o hides system users (with login shells /sbin/nologin and /bin/false for now)

* Sat Oct 25 2014 doktor5000 <doktor5000> 0.10.0-2.mga5
+ Revision: 793095
- add numix theme from http://intialonso.github.io/ based on Maui theme

* Fri Oct 24 2014 doktor5000 <doktor5000> 0.10.0-1.mga5
+ Revision: 793031
- new version 0.10.0
- security issues fixed (mga#14238) :
  o Never try to login as the sddm user (CVE-2014-7271)
  o Fix race condition in XAUTHORITY file generation (CVE-2014-7272)
  o XAUTHORITY file is no longer owned by root
- drops QT4 support
- fixes PAM variable handling and some autologin issues

* Wed Oct 15 2014 umeabot <umeabot> 0.9.0-10.mga5
+ Revision: 740556
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.9.0-9.mga5
+ Revision: 689088
- Mageia 5 Mass Rebuild

* Thu Sep 04 2014 colin <colin> 0.9.0-8.mga5
+ Revision: 671891
- Rebuild for new systemd

* Wed Aug 27 2014 wally <wally> 0.9.0-7.mga5
+ Revision: 668797
- require xinitrc

* Wed Aug 06 2014 wally <wally> 0.9.0-6.mga5
+ Revision: 660249
- obsolete slim
- require qtdeclarative5 for themes

* Wed Aug 06 2014 wally <wally> 0.9.0-5.mga5
+ Revision: 660199
- use default Mageia background image in themes
- add dm config file to add sddm to drakedm
- use pam config files from our gdm (sddm and sddm-autologin)

* Wed Aug 06 2014 wally <wally> 0.9.0-4.mga5
+ Revision: 660143
- disable systemd post/preun scripts for now
- create sddm system user for greeter
- tag pam config files as %%config(noreplace)
- build man pages

* Wed Aug 06 2014 neoclust <neoclust> 0.9.0-3.mga5
+ Revision: 660110
- Build against Qt5

* Tue Aug 05 2014 neoclust <neoclust> 0.9.0-2.mga5
+ Revision: 659889
- Fix login (P0)

* Sat Aug 02 2014 neoclust <neoclust> 0.9.0-1.mga5
+ Revision: 659261
- New version 0.9.0

* Sat Oct 19 2013 umeabot <umeabot> 0.1.0-7.mga4
+ Revision: 531342
- Mageia 4 Mass Rebuild

* Sun Aug 04 2013 sander85 <sander85> 0.1.0-6.mga4
+ Revision: 463132
- Fix requires

* Sat Aug 03 2013 neoclust <neoclust> 0.1.0-5.mga4
+ Revision: 462782
- imported package sddm


* Mon Jul 22 2013 Martin Briza <mbriza@redhat.com> - 0.1.0-5
- Store xauth in /var/run/sddm

* Mon Jul 22 2013 Martin Briza <mbriza@redhat.com> - 0.1.0-4
- Added the documentation bits

* Thu Jul 18 2013 Martin Briza <mbriza@redhat.com> - 0.1.0-3
- Changed the source package to tar.gz
- Config files are now noreplace
- Buildrequires -systemd-devel +systemd +cmake

* Tue Jul 16 2013 Martin Briza <mbriza@redhat.com> - 0.1.0-2
- Removed unneeded BuildRequires
- Fixed systemd scriptlets
- Fixed release
- Simplified setup
- Added Requires needed for basic function
- Added Provides for graphical login

* Thu Jul 04 2013 Martin Briza <mbriza@redhat.com> - 0.1.0-1
- Initial build