%global relver 1.2 Name: lightdm-gtk-greeter-settings Version: %{relver}.2 Release: 26%{?dist} Summary: Settings editor for LightDM GTK+ Greeter # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: https://launchpad.net/lightdm-gtk-greeter-settings Source0: https://launchpad.net/%{name}/%{relver}/%{version}/+download/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: intltool BuildRequires: python3-devel BuildRequires: python3-distutils-extra BuildRequires: python3-setuptools Requires: lightdm-gtk Requires: python3-gobject %description Just a small dialog to make it easier for users to modify the settings of lightdm-gtk-greeter. %prep %autosetup -p 1 rm -f PKG-INFO # Rename the ubuntu references to fedora sed -i -e 's@com.ubuntu.pkexec@com.fedora.pkexec@g' com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in \ po/* mv com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in com.fedora.pkexec.lightdm-gtk-greeter-settings.policy.in %build %py3_build %install # %%py3_install des not work properly here. %{__python3} setup.py install --root=$RPM_BUILD_ROOT --optimize=1 # Remove shebang from files for lib in %{buildroot}%{python3_sitelib}/lightdm_gtk_greeter_settings/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %find_lang %{name} %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files -f %{name}.lang %doc NEWS README %license COPYING %{_bindir}/lightdm-gtk-greeter-settings %{_bindir}/lightdm-gtk-greeter-settings-pkexec %{python3_sitelib}/lightdm_gtk_greeter_settings-%{version}-py*.egg-info %{python3_sitelib}/lightdm_gtk_greeter_settings/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/lightdm-gtk-greeter-settings* %{_datadir}/lightdm-gtk-greeter-settings/ %{_datadir}/polkit-1/actions/com.fedora.pkexec.lightdm-gtk-greeter-settings.policy %changelog * Mon Jul 29 2024 Miroslav Suchý - 1.2.2-26 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 1.2.2-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.2.2-24 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 1.2.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.2.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.2.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.2.2-20 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 1.2.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.2.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.2.2-17 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 1.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.2.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.2-14 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 1.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.2-11 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 1.2.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.2.2-9 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.2.2-8 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 1.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.2-4 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 11 2018 Igor Gnatenko - 1.2.2-2 - Remove obsolete scriptlets * Fri Jan 05 2018 Björn Esser - 1.2.2-1 - New upstream release (rhbz#1530973, 1531497) * Wed Jul 26 2017 Fedora Release Engineering - 1.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.2.0-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.2.0-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Sat Jul 04 2015 Leigh Scott - 1.2.0-1 - Initial build