Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:lxde
slim
slim.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File slim.spec of Package slim
# # spec file for package slim # # Copyright (c) 2017 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/ # %define _dminitdir %{_prefix}/lib/X11/displaymanagers Name: slim Version: 1.3.6 Release: 0 Summary: Simple Login Manager License: GPL-2.0 Group: System/X11/Displaymanagers Url: https://github.com/data-modul/slim Source0: https://github.com/data-modul/slim/archive/v%{version}/%{name}-%{version}.tar.gz Source1: slim.conf Source2: slim.pamd Source4: slim-theme-openSUSE.tar.gz Source5: slim.logrotate Source6: sysconfig.displaymanager-slim Source7: slim Source8: slim.sysvinit # PATCH-FIX-OPENSUSE fix CMake modules for cmake <2.8.8 as in 12.1 and below toganm@opensuse.org Patch0: slim-1.3.4-xmu-cmakelist.patch # disable for now, see bnc#531540 # Patch3: slim-1.3.1-xinerama.patch # PATCH-FIX-OPENSUSE Patch1: slim-1.3.2-includes.patch # PATCH-FIX-UPSTREAM Disable log to stderr http://patch-tracker.debian.org/patch/series/view/slim/1.3.4-2/disable_log.patch Patch2: slim-1.3.5-disable_log.patch # PATCH-FIX-UPSTREAM Ian Stakenvicius <axs@gentoo.org> - Fix libraries linking Patch3: libslim-cmake-fixes.patch # PATCH-FIX-UPSTREAM marguerite@opensuse.org - Honour system pre-defined CFLAGS Patch4: slim-1.3.6-honour-cflags.patch # PATCH-FIX-UPSTREAM Jan de Groot - Fix pam reuse problem Patch5: slim-1.3.6-systemd-session.patch # PATCH-FIX-UPSTREAM Ian Stakenvicius <axs@gentoo.org> - Set directory that contains the xsessions Patch6: slim-1.3.6-add-sessiondir.patch # PATCH-FIX-UPSTREAM Nicolas Schier <nicolas@cs.tu-berlin.de> - Fix slim memory corruption in slim child Patch7: slim-1.3.6-fix-env-alloc.patch # PATCH-FIX-UPSTREAM Mateusz Lukasik <mati175@linuxmint.pl> - Fix hyphen used as minus sign Patch8: slim-1.3.6-hyphen-used-as-minus-sign.patch # PATCH-FIX-UPSTREAM zlib required in CMakeLists.txt but never used Patch9: slim-1.3.6-drop-zlib.patch # PATCH-FIX-UPSTREAM if slim is started from its systemd service file then don't let it try to # set up a consolekit session Patch10: slim-1.3.5-disable-ck-for-systemd.patch BuildRequires: cmake BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libstdc++-devel BuildRequires: pam-devel BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-libXmu-devel Requires: pam # allow screenshots with F11 Recommends: ImageMagick # allow logs to rotate Recommends: logrotate BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} %if 0%{?suse_version} < 1220 BuildRequires: freeglut-devel %endif %if 0%{?suse_version} >= 1210 BuildRequires: systemd %endif %if 0%{?suse_version} < 1310 BuildRequires: ConsoleKit-devel %endif %description SLiM is a Desktop-independent graphical login manager for X11, derived from Login.app, with no KDE or GNOME dependencies. %prep %setup -q %if 0%{?suse_version} < 1220 %patch0 -p1 %endif %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 rm -f slim.conf cp %{SOURCE1} . %build export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" export CPPFLAGS="$CFLAGS" mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ %ifarch x86_64 -DLIB_SUFFIX=64 \ %endif %if 0%{?suse_version} < 1310 -DUSE_CONSOLEKIT=yes \ %else -DUSE_CONSOLEKIT=no \ %endif -DUSE_PAM=yes \ .. make %{?_smp_mflags} VERBOSE=1 %install cd build %make_install install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/slim # openSUSE Theme, IMHO it should be splitted # as slim-branding-openSUSE cd %{buildroot}%{_datadir}/slim/themes/ tar xf %{SOURCE4} # Install a logrotate script (or the log will keep growing until it errors out # at 2 GB size...) install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/slim # set slim as Default DM mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates cp %{SOURCE6} %{buildroot}%{_localstatedir}/adm/fillup-templates/ mkdir -p %{buildroot}%{_dminitdir}/ cp %{SOURCE7} %{buildroot}%{_dminitdir}/ # fix systemd service path # below 11.4 we don't have systemd at all, install slim.sysvinit instead %if 0%{?suse_version} <= 1140 rm -rf %{buildroot}/lib/systemd/system/slim.service mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_initddir} install -m 755 %{SOURCE8} %{buildroot}%{_sbindir}/rcslim ln -sf %{_sbindir}/rcslim %{buildroot}%{_initddir}/slim %endif # starting with 1230, we no longer install service to /lib. %if 0%{?suse_version} >= 1230 mkdir -p %{buildroot}%{_unitdir} mv %{buildroot}/lib/systemd/system/slim.service %{buildroot}%{_unitdir} rm -rf %{buildroot}/lib %endif %if 0%{?suse_version} >= 1210 %pre %service_add_pre slim.service %post /sbin/ldconfig %service_add_post slim.service %{fillup_only -n displaymanager -s slim} %preun %service_del_preun slim.service %postun /sbin/ldconfig %service_del_postun slim.service %else %post /sbin/ldconfig %{fillup_only -n displaymanager -s slim} %postun -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc COPYING ChangeLog README THEMES TODO xinitrc.sample %config(noreplace) %{_sysconfdir}/slim.conf %config(noreplace) %{_sysconfdir}/pam.d/slim %{_bindir}/slim %{_bindir}/slimlock %{_libdir}/libslim.so %{_libdir}/libslim.so.%{version} %{_mandir}/man1/slim* %dir %{_datadir}/slim %dir %{_datadir}/slim/themes %dir %{_datadir}/slim/themes/default %dir %{_datadir}/slim/themes/openSUSE %dir %{_dminitdir} %{_datadir}/slim/themes/*/* %config %{_sysconfdir}/logrotate.d/slim %{_dminitdir}/slim %config %{_localstatedir}/adm/fillup-templates/sysconfig.displaymanager-slim %if 0%{?suse_version} >=1210 %{_unitdir}/slim.service %else %{_sbindir}/rcslim %{_initddir}/slim %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor