|
|
69dc9a4 |
%global relver 1.2
|
|
|
4310a23 |
|
|
|
4310a23 |
Name: lightdm-gtk-greeter-settings
|
|
|
69dc9a4 |
Version: %{relver}.2
|
|
|
69dc9a4 |
Release: 1%{?dist}
|
|
|
4310a23 |
Summary: Settings editor for LightDM GTK+ Greeter
|
|
|
69dc9a4 |
|
|
|
4310a23 |
License: GPLv3
|
|
|
4310a23 |
URL: https://launchpad.net/lightdm-gtk-greeter-settings
|
|
|
69dc9a4 |
Source0: https://launchpad.net/%{name}/%{relver}/%{version}/+download/%{name}-%{version}.tar.gz
|
|
|
69dc9a4 |
|
|
|
4310a23 |
BuildArch: noarch
|
|
|
4310a23 |
|
|
|
69dc9a4 |
BuildRequires: desktop-file-utils
|
|
|
69dc9a4 |
BuildRequires: intltool
|
|
|
4310a23 |
BuildRequires: python3-devel
|
|
|
4310a23 |
BuildRequires: python3-distutils-extra
|
|
|
69dc9a4 |
BuildRequires: python3-setuptools
|
|
|
4310a23 |
|
|
|
4310a23 |
Requires: lightdm-gtk
|
|
|
69dc9a4 |
Requires: python3-gobject
|
|
|
4310a23 |
|
|
|
4310a23 |
%description
|
|
|
69dc9a4 |
Just a small dialog to make it easier for users to modify the settings
|
|
|
4310a23 |
of lightdm-gtk-greeter.
|
|
|
4310a23 |
|
|
|
69dc9a4 |
|
|
|
4310a23 |
%prep
|
|
|
69dc9a4 |
%autosetup -p 1
|
|
|
69dc9a4 |
rm -f PKG-INFO
|
|
|
4310a23 |
|
|
|
4310a23 |
# Rename the ubuntu references to fedora
|
|
|
4310a23 |
sed -i -e 's@com.ubuntu.pkexec@com.fedora.pkexec@g' com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in \
|
|
|
4310a23 |
po/*
|
|
|
4310a23 |
mv com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in com.fedora.pkexec.lightdm-gtk-greeter-settings.policy.in
|
|
|
4310a23 |
|
|
|
4310a23 |
|
|
|
4310a23 |
%build
|
|
|
69dc9a4 |
%py3_build
|
|
|
69dc9a4 |
|
|
|
4310a23 |
|
|
|
4310a23 |
%install
|
|
|
69dc9a4 |
# %%py3_install des not work properly here.
|
|
|
4310a23 |
%{__python3} setup.py install --root=$RPM_BUILD_ROOT --optimize=1
|
|
|
4310a23 |
|
|
|
4310a23 |
# Remove shebang from files
|
|
|
69dc9a4 |
for lib in %{buildroot}%{python3_sitelib}/lightdm_gtk_greeter_settings/*.py; do
|
|
|
4310a23 |
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
|
|
|
4310a23 |
touch -r $lib $lib.new &&
|
|
|
4310a23 |
mv $lib.new $lib
|
|
|
4310a23 |
done
|
|
|
4310a23 |
|
|
|
4310a23 |
%find_lang %{name}
|
|
|
4310a23 |
|
|
|
69dc9a4 |
|
|
|
69dc9a4 |
%check
|
|
|
69dc9a4 |
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
69dc9a4 |
|
|
|
69dc9a4 |
|
|
|
4310a23 |
%post
|
|
|
4310a23 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
4310a23 |
|
|
|
69dc9a4 |
|
|
|
4310a23 |
%postun
|
|
|
4310a23 |
if [ $1 -eq 0 ] ; then
|
|
|
69dc9a4 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
69dc9a4 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
4310a23 |
fi
|
|
|
4310a23 |
|
|
|
69dc9a4 |
|
|
|
4310a23 |
%posttrans
|
|
|
4310a23 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
4310a23 |
|
|
|
69dc9a4 |
|
|
|
4310a23 |
%files -f %{name}.lang
|
|
|
4310a23 |
%doc NEWS README
|
|
|
4310a23 |
%license COPYING
|
|
|
4310a23 |
%{_bindir}/lightdm-gtk-greeter-settings
|
|
|
4310a23 |
%{_bindir}/lightdm-gtk-greeter-settings-pkexec
|
|
|
4310a23 |
%{python3_sitelib}/lightdm_gtk_greeter_settings-%{version}-py*.egg-info
|
|
|
4310a23 |
%{python3_sitelib}/lightdm_gtk_greeter_settings/
|
|
|
4310a23 |
%{_datadir}/applications/%{name}.desktop
|
|
|
4310a23 |
%{_datadir}/icons/hicolor/*/apps/lightdm-gtk-greeter-settings*
|
|
|
4310a23 |
%{_datadir}/lightdm-gtk-greeter-settings/
|
|
|
4310a23 |
%{_datadir}/polkit-1/actions/com.fedora.pkexec.lightdm-gtk-greeter-settings.policy
|
|
|
4310a23 |
|
|
|
69dc9a4 |
|
|
|
4310a23 |
%changelog
|
|
|
69dc9a4 |
* Fri Jan 05 2018 Björn Esser <besser82@fedoraproject.org> - 1.2.2-1
|
|
|
69dc9a4 |
- New upstream release (rhbz#1530973, 1531497)
|
|
|
69dc9a4 |
|
|
|
7935d43 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7
|
|
|
7935d43 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
7935d43 |
|
|
|
eeff853 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-6
|
|
|
eeff853 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
eeff853 |
|
|
|
3daa2a3 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-5
|
|
|
3daa2a3 |
- Rebuild for Python 3.6
|
|
|
3daa2a3 |
|
|
|
755254b |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
|
|
|
755254b |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
755254b |
|
|
|
5239fd9 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
|
5239fd9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
5239fd9 |
|
|
|
67424c5 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
|
|
|
67424c5 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
67424c5 |
|
|
|
4310a23 |
* Sat Jul 04 2015 Leigh Scott <leigh123linux@googlemail.com> - 1.2.0-1
|
|
|
4310a23 |
- Initial build
|