File light-locker-settings.spec of Package light-locker-settings
#
# spec file for package light-locker-settings
#
# Copyright (c) 2016 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/
#
Name: light-locker-settings
Version: 1.5.0
Release: 0
Summary: Just a simple settings dialog for light-locker
License: GPL-3.0
Group: System/X11/Utilities
Url: https://launchpad.net/light-locker-settings
Source: %{name}-%{version}.tar.xz
# Needed for typelib() - Requires.
BuildRequires: gobject-introspection
BuildRequires: intltool
BuildRequires: python3-distutils-extra
Requires: light-locker
Requires: python3-gobject
Requires: python3-psutil
Requires: typelib(Gtk) = 3.0
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Simple configuration tool for light-locker light-locker-settings is a simple
configuration utility that allows you to configure your screensaver and locking
settings.
%lang_package
%prep
%setup -q
sed -i "s/\(Exec=\).*/\1%{name}/" %{name}.desktop.in
%build
./configure --prefix=%{_prefix} --python=python%{py3_ver}
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
chmod a-x %{buildroot}%{_datadir}/%{name}/%{name}/%{name}.glade
rm -rf %{buildroot}%{_datadir}/doc/%{name}
%find_lang %{name}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog