Name: lightdm-settings Version: 1.0.2 Release: 4%{?dist} Summary: Configuration tool for the LightDM display manager License: GPLv3+ URL: https://github.com/linuxmint/%{name} Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # Patches from upstream. Patch0: %{url}/commit/b4ffcdbdd70fd4da65d32c1a8997830938e0f080.patch#/%{name}-1.0.2-HiDPI_support.patch Patch1: %{url}/commit/3c4d3a35847cd762402c70f56ddaa28d5e2127d0.patch#/%{name}-1.0.2-pot_file.patch Patch2: %{url}/commit/6c64af74ef5f9c55996791b2f45e6bab9b383e0a.patch#/%{name}-1.0.2-force_HiDPI-on_off.patch Patch3: %{url}/commit/558833d57f9fd4119500af7d543c863cc37f7380.patch#/%{name}-1.0.2-dont_show_toolbar.patch Patch4: %{url}/commit/2f4e9c4ed6e4263652f98361687d09e67cff1e52.patch#/%{name}-1.0.2-user_bg_ubuntu_only.patch BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gettext Requires: filesystem Requires: hicolor-icon-theme Requires: polkit Requires: python3-gobject Requires: python3-setproctitle Requires: slick-greeter %description This tool currently lets users configure slick-greeter. %prep %autosetup -p 1 # Clean she-bangs. for f in .%{_prefix}/lib/%{name}/*.py ; do %{__sed} -e '/^#!.*/d' < ${f} > ${f}.new /bin/touch -r ${f} ${f}.new %{__mv} -f ${f}.new ${f} done # We use pkexec instead of gksu and /bin/sh instead of /bin/bash. f=.%{_bindir}/%{name} %{__sed} -e 's~#![ \t]*/bin/bash~#!/bin/sh~g' \ -e 's!gksu!%{_bindir}/pkexec!g' < ${f} > ${f}.new /bin/touch -r ${f} ${f}.new %{__mv} -f ${f}.new ${f} # Create polkit policy configuration for lightdm-settings. %{__cat} << EOF > org.freedesktop.policykit.exec.%{name}.policy Fedora http://fedoraproject.org/ Run %{name} with elevated privileges Authentication is required to run %{name} as root %{name} no no auth_admin_keep %{_prefix}/lib/%{name}/%{name} true EOF %build %make_build %install # No install-target in Makefile. %{__cp} -prv .%{_prefix} %{buildroot} # Install polkit policy configuration for lightdm-settings. %{__install} -Dpm 0644 org.freedesktop.policykit.exec.%{name}.policy \ %{buildroot}%{_datadir}/polkit-1/actions/org.freedesktop.policykit.exec.%{name}.policy # Set exec-permissions where needed. %{__chmod} -c 0755 %{buildroot}%{_bindir}/%{name} \ %{buildroot}%{_prefix}/lib/%{name}/%{name} # Find localizations and build manifest. #%%find_lang %{name} %check %{_bindir}/desktop-file-validate \ %{buildroot}%{_datadir}/applications/*.desktop %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor \ &>/dev/null || : fi %posttrans %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor \ &>/dev/null || : %files #%%files -f %%{name}.lang %license debian/copyright COPYING %doc debian/changelog README.md %{_bindir}/%{name} %{_prefix}/lib/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/polkit-1/actions/org.freedesktop.policykit.exec.%{name}.policy %changelog * Wed Apr 26 2017 Björn Esser - 1.0.2-4 - Add missing dependency on python3-setproctitle (rhbz#1444436) * Sat Apr 08 2017 Björn Esser - 1.0.2-3 - Add more patches from upstream * Fri Apr 07 2017 Björn Esser - 1.0.2-2 - Add patches from upstream * Fri Apr 07 2017 Björn Esser - 1.0.2-1 - Initial import (rhbz#1440240) * Fri Apr 07 2017 Björn Esser - 1.0.2-0.1 - Initial rpm-release (rhbz#1440240)