File gnome-screensaver.spec of Package gnome-screensaver

#
# spec file for package gnome-screensaver (Version 2.24.0)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           gnome-screensaver
BuildRequires:  fdupes gnome-common gnome-desktop-devel gnome-menus-devel
BuildRequires:  intltool libfprint-devel libglade2-devel libgnomekbd-devel libgnomeui-devel
BuildRequires:  libnotify-devel libxslt pam-devel perl-XML-Parser
BuildRequires:  update-desktop-files xmlto xscreensaver
%if %suse_version > 1010
BuildRequires:  dbus-1-glib-devel
%else
BuildRequires:  dbus-1-devel dbus-1-glib
%endif
Version:        2.24.0
Release:        7
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
License:        GPL v2 or later
Summary:        GNOME Screen Saver and Locker
Source:         ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.18/%{name}-%{version}.tar.bz2
Source1:        xscreensaver-blacklist
# PATCH-FEATURE-OPENSUSE gnome-screensaver-suse-pam.diff
Patch:          gnome-screensaver-suse-pam.diff
# PATCH-FEATURE-OPENSUSE gnome-screensaver-xvkbd-on-lock.patch rodrigo@novell.com -- Run xvkbd when locking the screen
Patch7:         gnome-screensaver-xvkbd-on-lock.patch
# PATCH-NEEDS-REBASE gnome-screensaver-2.19.1.1-securitytoken.patch
Patch8:         gnome-screensaver-2.19.1.1-securitytoken.patch
# PATCH-FEATURE-OPENSUSE gnome-screensaver-finger-print.patch fate#301953
Patch10:        gnome-screensaver-finger-print.patch
# PATCH-FIX-UPSTREAM gnome-screensaver-dont-leak-root-windows.patch bnc#432980 bgo#555701 rodrigo@novell.com
Patch11:        gnome-screensaver-dont-leak-root-windows.patch
AutoReqProv:    on
Requires:       /sbin/unix2_chkpwd xscreensaver
Requires:       %{name}-lang = %{version}
Provides:       %{name}-devel = %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
gnome-screensaver is a screen saver and locker that aims to
   havesimple, sane, and secure defaults and to be well integrated
   in the desktop. It is designed to support: * The ability to lock
   down configuration settings

* Translation into other languages

* User switching



Authors:
--------
    William Jon McCann <mccann@jhu.edu>

%lang_package
%prep
%setup -q
%patch
%patch7 -p1
# %patch8 -p1
%patch10
%patch11 -p1

%build
# gnome-common intltool are needed only here
autoreconf -f -i
# needed for gnome-screensaver-2.16.1:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: Maybe libexecdir the same as xscreensaver.
%configure\
	--libexecdir=%{_prefix}/lib/%{name}\
	--with-pam-prefix=/etc\
	--enable-authentication-scheme=helper\
	--with-passwd-helper="/sbin/unix2_chkpwd"\
	--with-xscreensaverdir=/etc/xscreensaver\
	--disable-docbook-docs
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file gnome-screensaver-preferences GNOME Screensaver X-SuSE-ControlCenter-LookAndFeel
%suse_update_desktop_file popsquares
%suse_update_desktop_file personal-slideshow
%suse_update_desktop_file footlogo-floaters
%suse_update_desktop_file cosmos-slideshow
# migrate all xscreensaver savers, except blacklisted ones because they are ugly
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/screensavers
for file in `ls -1 /etc/xscreensaver/*.xml | grep -v -f %{S:1} | xargs` ; do
    file_root=`basename "$file" .xml`
    sh data/migrate-xscreensaver-config.sh $file
    mv $file_root.desktop $RPM_BUILD_ROOT%{_datadir}/applications/screensavers
    #%suse_update_desktop_file $file_root
done
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
sed -e 's/common-auth/common-auth-smartcard/g' < $RPM_BUILD_ROOT/etc/pam.d/gnome-screensaver > $RPM_BUILD_ROOT/etc/pam.d/gnome-screensaver-smartcard
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog HACKING NEWS README TODO
%config /etc/pam.d/gnome-screensaver
%config /etc/pam.d/gnome-screensaver-smartcard
%{_sysconfdir}/xdg/menus/gnome-screensavers.menu
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/applications/screensavers/*.desktop
%{_datadir}/desktop-directories/gnome-screensaver.directory
%{_datadir}/pixmaps/backgrounds/*
%{_datadir}/gnome-screensaver
%{_datadir}/pixmaps/gnome-logo-white.svg
%{_mandir}/man1/gnome-screensaver*.1.gz
%{_libdir}/pkgconfig/gnome-screensaver.pc
%{_prefix}/lib/%{name}
# FIXME: Directory ownership:
%dir %{_datadir}/applications/screensavers
# FIXME: Maybe bad directory ownership:
%dir %{_datadir}/pixmaps/backgrounds
# FIXME: Directory ownership:
#%dir %{_sysconfdir}/xdg/menus

%files lang -f %{name}.lang

%changelog
* Mon Nov 24 2008 thoenig@suse.de
- don't bail out if fingerprint reader device is busy (bnc#448166)
* Mon Nov 10 2008 rodrigo@novell.com
- Add upstream patch for bgo#555701
* Mon Nov 03 2008 vuntz@novell.com
- Remove gnome-screensaver-compile.diff: fixed upstream.
* Wed Oct 29 2008 rodrigo@novell.com
- Remove unneeded patch
- Tag untagged patches
* Mon Oct 27 2008 thoenig@suse.de
- Updated gnome-screensaver-finger-print.patch to fix some issues
  as stated in bnc#438624
* Thu Oct 23 2008 rodrigo@novell.com
- Added gnome-screensaver-finger-print.patch for finger print
  authentication on lock screen dialog (fate#301953)
* Wed Oct 01 2008 mboman@suse.de
- Update to version 2.24.0:
  + Translation updates
* Wed Sep 03 2008 mboman@novell.com
- Update to version 2.23.90:
  + use standard icon names
  + Paint widget background color as face background color.
  + Add/remove windows as necessary in response to RANDR 1.2 events
  + Honor the disable_user_switching lockdown key.
  + Fixed bgo#547013, The dialog incorrectly tell that the numlock is on
  + Translation updates.
* Tue Aug 26 2008 mboman@novell.com
- Update to version 2.23.3:
  + Fix build issue (Wouter Bolsterlee)
  + Add a simple frame around user icon
  + Add a new child widget to use for themes to draw on
* Sat Aug 09 2008 coolo@suse.de
- make it compile
* Tue Jun 24 2008 maw@suse.de
- Update to version 2.23.2:
  + Fix gamma lost during fade
  + Show default desktop background behind lock dialog
  + Add reporting of inhibitors to --querty command
- Tag gnome-screensaver-2.19.1.1-securitytoken.patch and
  gnome-screensaver-early-passwd-helper-thoenig-04.patch for
  rebasing.
* Tue May 06 2008 thoenig@suse.de
- Add patch gnome-screensaver-early-passwd-helper-thoenig-04.patch
  to bring back fingerprint reader support (bnc#326744)
* Fri Apr 11 2008 maw@suse.de
- Update to version 2.22.2:
  + Bug fixed bgo#525785 (CVE-2008-0887)
  + Add a 160 char limit to the message text box
- Drop gnome-screensaver-372609-pwent-unlock.patch.
* Thu Mar 20 2008 maw@suse.de
- Add gnome-screensaver-372609-pwent-unlock.patch (#372609 and
  CVE-2008-0887), fixing a security problem whereby
  gnome-screensaver will unlock without a valid password if a NIS
  server is down.
* Fri Mar 14 2008 maw@suse.de
- Update to version 2.22.0:
  + Updated translations.
* Wed Feb 20 2008 maw@suse.de
- Update to version 2.21.6:
  + New theme transfer progress dialog
  + Port to gio
  + Set default action after cancelling note
  + New manpages
- Remove gnome-screensaver-2.20.0-desktop-conformance.patch, which
  has been upstreamed.
* Tue Nov 13 2007 rodrigo@suse.de
- Replaced g_spawn_command_line_sync with system (#341113)
* Fri Nov 09 2007 rodrigo@suse.de
- Fixed gnome-screensaver-xvkbd-on-lock.patch to actually display
  correctly the xvkbd window (#304399)
* Thu Oct 18 2007 jpr@suse.de
- Add libgnomekbd-devel to BuildRequires to enable keyboard layout
  indicator support
- Add libnotify-devel to BuildRequires to enable message leaving
  support
- Remove gnome-screensaver-unlock-dialog-size.patch the UI it applied
  to was removed
- Add gnome-screensaver-2.20.0-desktop-conformance.patch to cleanup
  rpmlint desktop warnings
- Make xscreensaver blacklist a file
- Get translations for screensaver .desktop files
* Tue Sep 18 2007 maw@suse.de
- Update to version 2.20.0:
  + Fixed bugzilla.gnome.org #442853
  + Updated translations.
* Thu Sep 13 2007 rodrigo@suse.de
- Trap BadWindow errors to avoid crashes (#244713)
* Fri Aug 31 2007 maw@suse.de
- Update to version 2.19.7:
  + Fixed build on Solaris (b.g.o #437225)
  + Last libgnome dependency removed (b.g.o #463754)
  + Initialize XWindowAttributes
  + Slideshow improvements
  + Updated translations.
* Tue Aug 07 2007 maw@suse.de
- Split off a -lang subpackage.
* Thu Aug 02 2007 maw@suse.de
- Update to version 2.19.6:
  + Bugs (bugzilla.gnome.org) fixed: #331515, #354663, #434712,
  [#436818], #445443, #461824, #461814, #461722, #461028, #456705,
  and #327602.
  + Updated translations.
- Use %%fdupes.
* Fri Jul 27 2007 jberkman@novell.com
- add support for locking the screen if a smartcard was used to log in, and
  for unlocking using a smartcard
* Mon Jul 09 2007 maw@suse.de
- Update to version 2.19.1.1
- Fixes for bugzilla.gnome.org #384509, #411252, and #428199.
* Wed Jun 20 2007 rodrigo@suse.de
- Updated xvkbd patch to check correctly XGetClasHint return code
  (found by Scott Reeves).
* Fri Jun 15 2007 rodrigo@suse.de
- Updated xvkbd patch to initialize X structures to avoid use of
  uninitialised values.
* Thu May 03 2007 rodrigo@suse.de
- Added patch from SLE10-SP1 to run xvkbd on the lock window (FATE
  [#300346])
* Thu Apr 12 2007 maw@suse.de
- Update to version 2.18.1
- Fixes for bugzilla.gnome.org #424165 and #425550
- Updates for the zh_CN, ca, da, lv, sl, eu, and gl locales.
* Fri Mar 30 2007 maw@suse.de
- Update to version 2.18.0
- b.g.o 417538, 417323, 412492, 412486, 411393, 400579, 407964,
  and 407524.
* Fri Mar 09 2007 maw@suse.de
- Update to version 2.17.7
  * #402183, use gdm socket command to start a login procedure
  when available (Matthias Clasen)
  * #403936, Specifically block shaping the window (William Jon McCann)
  * Sync FUSA code with upstream
  Translators
  * Updated fr: Stéphane Raimbault
  * Updated nl: Wouter Bolsterlee
  * Updated ca: Josep Puigdemont i Casamajó
  * Updated pt_BR: Leonardo Ferreira Fontenelle
  * Updated da: Lasse Bang Mikkelsen
* Fri Jan 12 2007 sbrabec@suse.cz
- Spec file cleanup.
* Fri Dec 29 2006 james@usr-local-bin.org
- Fix %%post.
* Thu Dec 14 2006 maw@suse.de
- Move to /usr
- Do some specfile cleanup.
* Thu Nov 30 2006 sbrabec@suse.cz
- Build correctly in older products.
* Thu Nov 09 2006 rodrigo@suse.de
- Removed patch to enable switch users by default (#195338)
* Thu Oct 19 2006 jpr@suse.de
- Remove gnome-screensaver-disable-root-unlock.patch, upstream no
  longer allows the root password to unlock (#213090)
* Tue Oct 17 2006 danw@suse.de
- Remove dead patches
* Fri Oct 13 2006 rodrigo@suse.de
- Added --enable-authentication-scheme=helper option to configure,
  to make it really use the helper program (#204364)
* Wed Oct 04 2006 jhargadon@suse.de
- update to version 2.16.1
- Set the correct value of DISPLAY for the gl helper
- Don't queue keys that may cause focus navigation
- Don't explicitly set icon sizes in preview bar
- translation updates
* Fri Sep 29 2006 rodrigo@suse.de
- Filter some xscreensaver hacks, like for SP1.
* Thu Sep 14 2006 jhargadon@suse.de
- update to version 2.16.0
- translation updates
* Wed Sep 13 2006 rodrigo@suse.de
- Added dependency on libxslt (xsltproc) for generating the .desktop
  files for xscreensaver hacks, and copy the resulting files to the
  new directory ($datadir/applications/screensavers).
* Sat Sep 02 2006 aj@suse.de
- Cleanup BuildRequires.
- Disable patch for Bug 186204 since the code does not exist anymore.
* Wed Aug 30 2006 jhargadon@suse.de
- update to version 2.15.7
- translation updates
* Tue Aug 29 2006 rodrigo@suse.de
- Added patch to disable root's ability to unlock users'
  screensaver (#186204)
- Added missing build dependencies
* Tue Aug 22 2006 jhargadon@suse.de
- update to version 2.15.6
- Support drag-n-drop of themes to preferences dialog
- Add support for embedding a keyboard in window
- More memory usage reduction
- Only allow a small number of queued key events
* Mon Aug 14 2006 thoenig@suse.de
- Add patch gnome-screensaver-dbus-api-fix-thoenig-01.patch: Use
  dbus_connection_close, not dbus_connection_disconnect
* Mon Aug 07 2006 rodrigo@suse.de
- Create XML files for xscreensaver hacks at build time (#116331)
* Tue Aug 01 2006 schwab@suse.de
- Remove newline from substituted variable.
* Mon Jun 19 2006 rodrigo@suse.de
- Removed last patch, which didn't fix 167510 and introduced a new
  bug (#185103)
* Thu May 25 2006 rodrigo@suse.de
- Added patch to lock the screen before signalling DBUS listeners
  that the screen saver is active. Thus, gnome-power-manager will
  start the suspend when the screensaver is active, avoiding seeing
  the screen fading out when resuming (167510)
* Mon May 08 2006 rodrigo@suse.de
- Added gnome-screensaver-unlock-dialog-size.patch to fix weird
  resizing of the users list (#170846)
* Wed Apr 26 2006 gekker@suse.de
- Fix incorrect indication of caps lock (#159513)
* Thu Apr 13 2006 sbrabec@suse.cz
- Call %%suse_update_desktop_file.
- Use new control-center Categories instead of illegal old ones.
* Wed Apr 12 2006 danw@suse.de
- Fix the screensaver modules to not unset the fullscreen and
  keep_above flags, because compiz, unlike metacity, restacks
  the window in that case. #163931.
* Mon Mar 20 2006 ro@suse.de
- lib64 buildfix (pkgconfig is lib64)
* Tue Mar 14 2006 rodrigo@suse.de
- Updated to latest upstream version, which fixes #156754,
  [#134201].
- Improved regexp for no->nb_NO move.
* Wed Feb 22 2006 rodrigo@suse.de
- Updated to latest upstream version, which fixes #146434,
  [#148739], #119784. as well as others.
- Removed upstreamed patches.
* Mon Feb 20 2006 jpr@suse.de
- Don't abort if XFree86-VidModeExtension is not available (#152147)
* Mon Feb 13 2006 rodrigo@suse.de
- Removed extra g_free already present upstream (#148379).
* Mon Feb 13 2006 rodrigo@suse.de
- Use correct types for string formatting. Fixes #148379.
* Mon Feb 06 2006 rodrigo@suse.de
- Use correct UTF-8 strings. Fixes #146434.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 rodrigo@suse.de
- Updated to 0.0.25.
- Updated missing-icon patch to upstream changes.
- Some spec file fixes.
* Thu Nov 17 2005 rodrigo@suse.de
- Update to 0.0.20 release.
* Wed Nov 16 2005 rodrigo@suse.de
- Added gnome-screensaver-missing-icon.patch.
* Tue Nov 15 2005 rodrigo@suse.de
- Update to 0.0.19 release.
- Update PAM patch.
* Thu Oct 20 2005 rodrigo@suse.de
- Enable user switching by default.
* Tue Oct 18 2005 rodrigo@suse.de
- Update to version 0.0.16.
- Removed patch fixed upstream.
- Added rename of 'no' locale to 'nb_NO'.
* Tue Oct 04 2005 rodrigo@suse.de
- Require xscreensaver, so that default installation has more than
  just 2/3 screensavers.
* Thu Sep 15 2005 clahey@suse.de
- Update categories for desktop file.
- Part of fix for #115299.
* Tue Sep 13 2005 rodrigo@suse.de
- Update to version 0.0.13, which contains the two patches
  recently added (for #116331 and #114729) plus speed up when
  loading xscreensaver hacks.
* Mon Sep 12 2005 sbrabec@suse.cz
- Fixed xscreensaver hack directory (#116331).
* Mon Sep 12 2005 rodrigo@suse.de
- Updated kdm patch to fix all cases for #114729.
* Mon Sep 12 2005 rodrigo@suse.de
- Added xscreensaver to nfb so that we get the /etc/xscreensaver
  directory (#116331)
* Mon Sep 12 2005 rodrigo@suse.de
- Added gnome-screensaver-kdm.patch (#114729)
* Wed Sep 07 2005 sbrabec@suse.cz
- Updated to version 0.0.12.
* Mon Sep 05 2005 rodrigo@suse.de
- Update to version 0.0.11
* Wed Aug 31 2005 rodrigo@suse.de
- Update to version 0.0.10
- Removed upstreamead patch (#113355)
- Added flags to get the /etc/xscreensaver dir.
* Fri Aug 26 2005 rodrigo@suse.de
- Added gnome-screensaver-xscreensaver patch (#113355)
- Removed description patch, since it makes the dialog very ugly
  when displaying the huge list of xscreensaver hacks.
- Moved missing icon part of description patch to its own file.
* Thu Aug 25 2005 rodrigo@suse.de
- Removed pam for nfb.
* Thu Aug 25 2005 rodrigo@suse.de
- Updated to upstream 0.0.9.
- Add my patches in a separate file.
* Mon Aug 15 2005 rodrigo@suse.de
- Updated to CVS's 0.0.9 with all my uncommitted patches.
- Removed upstreamed patch.
* Fri Aug 05 2005 rodrigo@suse.de
- Don't depend on xscreensaver.
- Display icon for configuration to the control center (bug #102357)
* Wed Aug 03 2005 gekker@suse.de
- Update to version 0.0.8
* Tue Aug 02 2005 sbrabec@suse.cz
- Use hacks in its own directory.
* Tue Jul 26 2005 sbrabec@suse.cz
- Patch to share screensaver modules with xscreensaver.
* Tue Jul 19 2005 sbrabec@suse.cz
- Added --with-passwd-helper=/sbin/unix2_chkpwd (#96125).
* Mon Jul 11 2005 sbrabec@suse.cz
- Updated to version 0.0.7.
- Fixed PAM support (patch from Rodrigo Moya).
* Fri Jul 01 2005 sbrabec@suse.cz
- New SuSE package, version 0.0.5.
openSUSE Build Service is sponsored by