Blame lightdm-gtk-greeter-settings.spec

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