File mate-screensaver.spec of Package mate-screensaver

#
# spec file for mate-screensaver
#
# Copyright (c) 2014 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:           mate-screensaver
Version:        1.8.1
Release:        0
License:        GPL-2.0+ and LGPL-2.0+
Summary:        MATE Desktop screensaver
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source:         http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Requires:       /sbin/unix2_chkpwd
Requires:       xscreensaver-data
Recommends:     %{name}-lang
%glib2_gsettings_schema_requires

# PATCH-FIX-OPENSUSE - mate-screensaver-1.7.1-vendor_pam_integration.patch
# nmarques@mate-desktop.org - PAM integration with SUSE/Novell patch
Patch0:         %{name}-1.7.1-vendor_pam_integration.patch

BuildRequires:  mate-common
BuildRequires:  libmatekbd-devel
BuildRequires:  pam-devel
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libmate-menu)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(mate-desktop-2.0)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
BuildRequires:  xscreensaver-data
BuildRequires:  xscreensaver-data-extra
BuildRequires:  pkgconfig(libsystemd-login)

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


%package devel
Summary:        Development files for %{name}
Group:          Development/Sources
Requires:       %{name} = %{version}

%description devel
mate-screensaver is a screen saver and locker that aims to have simple,
sane, secure defaults and be well integrated with the desktop.

%lang_package

%prep
%setup -q
%patch0 -p1

%build
%configure                                                             \
   --libexecdir=%{_libexecdir}/%{name}                                 \
   --with-xscreensaverdir=/etc/xscreensaver                            \
   --with-pam-prefix=/etc                                              \
   --enable-authentication-scheme=helper                               \
   --with-systemd                                                      \
   --without-console-kit                                               \
   --with-passwd-helper=/sbin/unix2_chkpwd                             \
   --disable-docbook-docs
make %{?_smp_mflags}

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
# we're not migrating...
rm -rf %{buildroot}%{_datadir}/MateConf/gsettings/*.migrate
pushd %{buildroot}%{_datadir}/applications
   for i in `ls | grep \.desktop`; do
      %suse_update_desktop_file %{buildroot}%{_datadir}/applications/$i
   done
popd

%post
%desktop_database_post
%glib2_gsettings_schema_post

%postun
%desktop_database_postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root,-)
%doc ChangeLog README COPYING COPYING.LIB
%dir %{_sysconfdir}/xdg/menus
%config(noreplace) %{_sysconfdir}/xdg/menus/mate-screensavers.menu
%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-screensaver.desktop
%config(noreplace) %{_sysconfdir}/pam.d/mate-screensaver
%{_bindir}/%{name}*
%{_libexecdir}/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/applications/screensavers/
%{_datadir}/backgrounds/
%{_datadir}/dbus-1/services/*.service
%{_datadir}/desktop-directories/
%{_datadir}/mate-background-properties/
%{_datadir}/%{name}/
%{_datadir}/pixmaps/gnome-logo-white.svg
%{_datadir}/pixmaps/mate-logo-white.svg
%{_datadir}/glib-2.0/schemas/*.xml
%{_mandir}/man1/*.1.gz

%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/mate-screensaver.pc

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by