File cinnamon-screensaver.spec of Package cinnamon-screensaver

#
# spec file for package cinnamon-screensaver
#
# 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:           cinnamon-screensaver
Version:        3.0.1
Release:        0
Summary:        Cinnamon screensaver and locker
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            https://github.com/linuxmint/cinnamon-screensaver
Source:         https://github.com/linuxmint/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:        %{name}.pam
# PATCH-FIX-OPENSUSE cinnamon-screensaver-xscreensaver-path.patch boo#960165 sor.alexei@meowr.ru -- Correct xscreensaver hacks path.
Patch0:         %{name}-xscreensaver-path.patch
BuildRequires:  gnome-common
BuildRequires:  pam-devel
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  xmlto
BuildRequires:  pkgconfig(cinnamon-desktop)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libgnomekbdui)
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(webkit2gtk-4.0)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xscrnsaver)
BuildRequires:  pkgconfig(xxf86misc)
BuildRequires:  pkgconfig(xxf86vm)
Requires:       /sbin/unix2_chkpwd
Requires:       adwaita-icon-theme
Requires:       dbus-1-x11
Requires:       libcinnamon-desktop-data
Recommends:     cinnamon-common
Recommends:     cinnamon-translations
Recommends:     gnome-keyring-pam
Recommends:     gnome-power-manager
Recommends:     xscreensaver-data
Suggests:       xscreensaver-data-extra

%description
cinnamon-screensaver is a screensaver and locker that aims to have
simple, sane and secure defaults, and be well integrated with the
Cinnamon Desktop.

%prep
%setup -q
%patch0 -p1

%build
NOCONFIGURE=1 gnome-autogen.sh
%configure \
  --disable-static          \
  --disable-schemas-compile \
  --with-mit-ext            \
  --with-xf86gamma-ext      \
  --enable-locking          \
  --enable-docbook-docs
make %{?_smp_mflags}

%install
%make_install
install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}

%suse_update_desktop_file %{name}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING* README debian/changelog
%config %{_sysconfdir}/pam.d/%{name}
%{_bindir}/%{name}
%{_bindir}/%{name}-command
%{_libexecdir}/%{name}-dialog
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man?/%{name}*.?%{?ext_man}
%{_datadir}/dbus-1/services/org.cinnamon.ScreenSaver.service

%changelog
openSUSE Build Service is sponsored by