/[packages]/cauldron/sddm/current/SPECS/sddm.spec
ViewVC logotype

Diff of /cauldron/sddm/current/SPECS/sddm.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 886042 by doktor5000, Wed Dec 3 18:38:18 2014 UTC revision 886043 by doktor5000, Sat Oct 3 20:48:22 2015 UTC
# Line 1  Line 1 
1  Name:           sddm  Name:           sddm
2  Version:        0.11.0  Version:        0.12.0
3  Release:        %mkrel 1  Release:        %mkrel 1
4  License:        GPLv2+  License:        GPLv2+
5  Summary:        QML based X11 desktop manager  Summary:        QML based X11 desktop manager
# Line 16  Source4:       Xsession Line 16  Source4:       Xsession
16  # theme deliberately stolen from https://github.com/intialonso/intialonso.github.io/tree/master/themes/sddm/numix :P  # theme deliberately stolen from https://github.com/intialonso/intialonso.github.io/tree/master/themes/sddm/numix :P
17  Source5: https://github.com/intialonso/intialonso.github.io/raw/master/themes/sddm/numix-0.10.tar.gz  Source5: https://github.com/intialonso/intialonso.github.io/raw/master/themes/sddm/numix-0.10.tar.gz
18  # default /etc/sddm.conf, created from man sddm.conf  # default /etc/sddm.conf, created from man sddm.conf
19    # similar can be obtained via sddm --example-config
20  # show users with UID >= 500 and hide system users  # show users with UID >= 500 and hide system users
21    # allow display of custom user icons read from /var/lib/AccountsService/icons/
22    # ( by default SDDM reads user icon from either ~/.face.icon or FacesDir/username.face.icon )
23  Source6:        sddm.conf  Source6:        sddm.conf
24    # new default theme without a userlist, provided by Chris Denice
25    # https://bugs.mageia.org/show_bug.cgi?id=16493
26    Source7:        mga-coffee.tar.gz
27    
28  BuildRequires:  cmake  BuildRequires:  cmake
29  BuildRequires:  systemd-devel  BuildRequires:  systemd-devel
# Line 63  designer the ability to create smooth, a Line 69  designer the ability to create smooth, a
69  # use default mga background image in themes  # use default mga background image in themes
70  #  #
71  # (doktor5000) - this makes most part of the themes useless and ugly (default.jpg is not resolution-optimized)  # (doktor5000) - this makes most part of the themes useless and ugly (default.jpg is not resolution-optimized)
72  # instead, a separate Mageia theme is created further bewlo and used by default  # instead, a separate Mageia theme is created further below and used by default
73  # sed -i -e 's,\(^background=\).*,\1%{_datadir}/mga/backgrounds/default.jpg,' data/themes/*/theme.conf  # sed -i -e 's,\(^background=\).*,\1%{_datadir}/mga/backgrounds/default.jpg,' data/themes/*/theme.conf
74    
75    
   
76  # replace upstream Xsession script  # replace upstream Xsession script
77  install -Dpm755 %{_sourcedir}/Xsession data/scripts/Xsession  install -Dpm755 %{_sourcedir}/Xsession data/scripts/Xsession
78    
79  %build  %build
80  # get rid of the architecture flag  # set UID_MIN and UID_MAX here as autodetection from /etc/login.defs is not
81  sed -i "s/-march=native//" CMakeLists.txt  # possible for normal users due to missing read permissions
82  %cmake_qt5 \  %cmake_qt5 \
83          -DUSE_QT5=ON \          -DUSE_QT5=ON \
84          -DBUILD_MAN_PAGES=ON \          -DBUILD_MAN_PAGES=ON \
85          -DENABLE_JOURNALD=ON          -DENABLE_JOURNALD=ON \
86            -DUID_MIN=500 \
87            -DUID_MAX=60000
88    
89  %make  %make
90    
# Line 97  mkdir -p %{buildroot}%{_localstatedir}/l Line 104  mkdir -p %{buildroot}%{_localstatedir}/l
104  # extract additional numix theme, based on Maui  # extract additional numix theme, based on Maui
105  tar -xf %{SOURCE5} -C %{buildroot}%{_datadir}/sddm/themes  tar -xf %{SOURCE5} -C %{buildroot}%{_datadir}/sddm/themes
106    
107    # extract new default theme mga-coffee
108    tar -xf %{SOURCE7} -C %{buildroot}%{_datadir}/sddm/themes
109    
110  ####  ####
111  # create Mageia theme based on default Maui theme, and use Mageia default background  # create Mageia theme based on default Maui theme, and use Mageia default background
112  cp -a %{buildroot}%{_datadir}/sddm/themes/maui %{buildroot}%{_datadir}/sddm/themes/mga-maui  cp -a %{buildroot}%{_datadir}/sddm/themes/maui %{buildroot}%{_datadir}/sddm/themes/mga-maui
113  sed -i -e 's,\(^background=\).*,\1%{_datadir}/mga/backgrounds/default.jpg,' %{buildroot}%{_datadir}/sddm/themes/mga-maui/theme.conf  sed -i -e 's,\(^background=\).*,\1%{_datadir}/mga/backgrounds/default.jpg,' %{buildroot}%{_datadir}/sddm/themes/mga-maui/theme.conf
114    
115    # fix display of text messages in front of Mageia logo
116    sed -i '/id: txtMessage/,/\}/ s/anchors.margins: 20/anchors.margins: 5/' %{buildroot}%{_datadir}/sddm/themes/mga-maui/Main.qml
117    
118  export metadata=%{buildroot}%{_datadir}/sddm/themes/mga-maui/metadata.desktop  export metadata=%{buildroot}%{_datadir}/sddm/themes/mga-maui/metadata.desktop
119    
120  cat > $metadata << EOF  cat > $metadata << EOF

Legend:
Removed from v.886042  
changed lines
  Added in v.886043

  ViewVC Help
Powered by ViewVC 1.1.30