File xlockmore.spec of Package xlockmore

# spec file for package xlockmore (Version 5.28)
# Copyright (c) 2009 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

# norootforbuild

Name:           xlockmore
BuildRequires:  bc esound-devel fdupes freeglut-devel freetype2-devel ftgl-devel gcc-c++ gltt-devel libdrm-devel pkg-config
License:        GPL v2 or later ; MIT License (or similar)
Group:          System/X11/Utilities
Provides:       xlock
Obsoletes:      xlock
AutoReqProv:    on
Version:        5.28
Release:        2
Summary:        Screen Saver and Locker for the X Window System
Source:         %{name}-%{version}.tar.bz2
Source1:        xlock.pamd
Source2:        xlock-wrapper
Source3:        xlock-wrapper_xorg6
Patch:          %{name}-null.patch
# apply even patches when < 7.0 else apply odd patches
Patch1:         %{name}-bitmaps.patch
Patch2:         %{name}-bitmaps_xorg6.patch
Patch3:         xlockmore-ttf_dir.patch
Patch4:         xlockmore-ttf_dir_xorg6.patch
# end of related patches
Patch5:         xlockmore-gltt-libttf.patch
Patch6:         xlockmore-gltt+ftgl.patch
Patch7:         xlockmore-strict-aliasing.patch
Patch8:         xlockmore-null-fontset.patch
Patch9:         xlockmore-void-return.patch
Patch10:        xlockmore-undefined-code.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The xlock utility locks your X Window System session and runs a screen
saver until a password is entered.

    David Albert Bagley <>
    Patrick J. Naughton <>

%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
%define _xorg7_prefix /usr
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
%define _xorg7_prefix /usr/X11R6

%setup -q
chmod -x README docs/Revisions
%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr"

%{?suse_update_config:%{suse_update_config -f}}
export CPPFLAGS="-I/usr/include/FTGL"
./configure \
make %{?jobs:-j%jobs}

install -d -m 755 $RPM_BUILD_ROOT/etc/pam.d
install -d -m 755 $RPM_BUILD_ROOT/usr/%{_xorg7bin}/
install -d -m 755 $RPM_BUILD_ROOT/usr/%{_xorg7libshare}/X11/app-defaults/
install -d -m 755 $RPM_BUILD_ROOT%{_xorg7_mandir}/man1/
install -d -m 755 $RPM_BUILD_ROOT/usr/%{_xorg7libs32}/xlock
install -m 755 xlock/xlock $RPM_BUILD_ROOT/usr/%{_xorg7libs32}/xlock/xlock
install -m 644 xlock/ $RPM_BUILD_ROOT/usr/%{_xorg7libshare}/X11/app-defaults/XLock
install -m 644 xlock/ $RPM_BUILD_ROOT%{_xorg7_mandir}/man1/xlock.1x
install -m 644 %{S:1} $RPM_BUILD_ROOT/etc/pam.d/xlock
%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr"
install -m 755 %{S:2} $RPM_BUILD_ROOT/usr/%{_xorg7bin}/xlock
install -m 755 %{S:3} $RPM_BUILD_ROOT/usr/%{_xorg7bin}/xlock
%fdupes $RPM_BUILD_ROOT/usr


%defattr(-, root, root)
%doc %{_xorg7_mandir}/man1/xlock.1x.gz
%doc README docs/cell_automata docs/Purify docs/Revisions docs/TODO
%config /etc/pam.d/xlock

openSUSE Build Service is sponsored by