LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cinnamon-screensaver.spec of Package cinnamon-screensaver (Project home:k0da)

#
# spec file for package 
#
# Copyright (c) specCURRENT_YEAR SUSE LINUX Products 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:        1.7.1
Release:        0
License:        GPL-2.0
Summary:        Cinnamon screensaver
Url:            https://github.com/linuxmint/cinnamon-screensaver
Group:          Amusements/Toys/Screensavers 
Source:         %{name}-%{version}.tar.bz2
#Copied over from cinnamon 1.7.1
Source1:        org.cinnamon.screensaver.gschema.xml
Patch0:         suse-pam.patch
Patch1:         cinnamon-screensaver-helper.patch
BuildRequires:  gnome-common
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pam-devel
BuildRequires:  systemd-devel
Requires:       /sbin/unix2_chkpwd
%glib2_gsettings_schema_requires

Conflicts:      gnome-screensaver

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
cinnamon-screensaver is a screen saver and locker that aims to have
simple, sane, secure defaults and be well integrated with the desktop.
It is designed to support:

        * the ability to lock down configuration settings
        * translation into many languages
        * user switching


%lang_package

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--with-systemd \
	--with-console-kit \
	--enable-authentication-scheme=helper \
	--with-passwd-helper="/sbin/unix2_chkpwd"
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} %{?no_lang_C}
install -D -m0644 %{S:1} %{buildroot}%{_datadir}/glib-2.0/schemas/org.cinnamon.screensaver.gschema.xml
%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/cinnamon-screensaver*
%{_bindir}/gnome-screensaver*
%{_libexecdir}/cinnamon-screensaver-dialog
%{_sysconfdir}/xdg/autostart/cinnamon-screensaver.desktop
%config /etc/pam.d/cinnamon-screensaver
%{_datadir}/dbus-1/services/org.cinnamon.ScreenSaver.service
%{_mandir}/man1/cinnamon-screensaver.1.gz
%{_mandir}/man1/cinnamon-screensaver-command.1.gz
%{_datadir}/glib-2.0/schemas/org.cinnamon.screensaver.gschema.xml

%files lang -f %{name}.lang
%defattr(-,root,root,-)
%{_datadir}/locale/*/*/cinnamon-screensaver*

%changelog