xlockmore/xlockmore.spec

422 lines
15 KiB
RPMSpec

#
# spec file for package xlockmore (Version 5.26.1)
#
# 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: xlockmore
BuildRequires: bc esound-devel fdupes freeglut-devel freetype2-devel gcc-c++ gltt-devel libdrm-devel pkg-config
License: GPL v2 or later; X11/MIT
Group: System/X11/Utilities
Provides: xlock
Obsoletes: xlock
AutoReqProv: on
Version: 5.26.1
Release: 1
Summary: Screen Saver and Locker for the X Window System
Url: http://www.tux.org/~bagleyd/xlockmore.html
Source: %{name}-%{version}.tar.bz2
Source1: xlock.pamd
Source2: xlock-wrapper
Source3: xlock-wrapper_xorg6
Patch: %{name}-null.patch
# apply even patches when X.org < 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 X.org related patches
Patch5: xlockmore-gltt-libttf.patch
Patch6: xlockmore-gltt+ftgl.patch
Patch7: xlockmore-strict-aliasing.patch
Patch8: xlockmore-null-fontset.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The xlock utility locks your X Window System session and runs a screen
saver until a password is entered.
Authors:
--------
David Albert Bagley <bagleyd@bigfoot.com>
Patrick J. Naughton <naughton@eng.sun.com>
%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
%else
%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
%endif
%prep
%setup -q
chmod -x README docs/Revisions
%patch
%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr"
%patch1
%patch3
%else
%patch2
%patch4
%endif
%patch5
%patch6
%patch7
%patch8
%build
%{?suse_update_config:%{suse_update_config -f}}
aclocal
autoconf
export CPPFLAGS="-I/usr/include/FTGL"
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{_xorg7_prefix}\
--with-libraries=%{_libdir}\
--without-motif\
--without-gtk\
--with-passwd-helper=/sbin/unix2_chkpwd\
--disable-bomb\
--enable-vtlock\
--enable-use-mb\
--x-includes=%{_xorg7_prefix}/include\
--x-libraries=%{_xorg7_prefix}/%_lib
make %{?jobs:-j%jobs}
%install
install -d -m 755 $RPM_BUILD_ROOT/etc/pam.d
install -d -m 755 $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/bitmaps/
install -d -m 755 $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/pixmaps/
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 644 bitmaps/*.xbm $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/bitmaps/
install -m 644 pixmaps/*.xpm $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/pixmaps/
install -m 755 xlock/xlock $RPM_BUILD_ROOT/usr/%{_xorg7libs32}/xlock/xlock
install -m 644 xlock/XLock.ad $RPM_BUILD_ROOT/usr/%{_xorg7libshare}/X11/app-defaults/XLock
install -m 644 xlock/xlock.man $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
%else
install -m 755 %{S:3} $RPM_BUILD_ROOT/usr/%{_xorg7bin}/xlock
%endif
%fdupes $RPM_BUILD_ROOT/usr
%clean
rm -rf $RPM_BUILD_ROOT
%files
%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
/usr/%{_xorg7libshare}/X11/app-defaults/XLock
/usr/%{_xorg7bin}/xlock
/usr/%{_xorg7libs32}/xlock
/usr/%{_xorg7pixmaps}/X11/bitmaps/*
/usr/%{_xorg7pixmaps}/X11/pixmaps/*
%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr/X11R6"
%dir /usr/X11R6/include/X11/bitmaps
%dir /usr/X11R6/include/X11/pixmaps
%endif
%changelog
* Wed Sep 03 2008 sbrabec@suse.cz
- Updated to version 5.26.1:
* PAM_putText() would set pointer resp->resp to buffer.
* "Esc" key now resets password entry. Do not put an escape in
your password. This should behave the same as Control-U.
* -showdate added. +showdate allows you to turn off date in
password window.
* Inverted bitmap for xlock.
* Updated the Java launcher in xlock.
* antic cleanups.
* New mode pyro2: -mode pyro2 -msg 'MSGSTR' -fnt 'FONT'
* Modifications for +install, -mono.
* New resource files for Chinese...
* Automata modes now have triangular tilings drawn with a black
triangle around it.
* Fix for xlock -resource in life.c.
* Added a compile-time option "-DNO_TIME if you dont want the
time in the password window.
* Thu Jun 05 2008 pgajdos@suse.cz
- prevented against segfault when wrong locale selected [#90543]
(null-fontset.patch)
* Tue Jun 03 2008 pgajdos@suse.cz
- removed mode text3d2 (xlockmore isn't linked against ftgl from
now) [bnc#352683]
* Fri Apr 25 2008 sbrabec@suse.cz
- Updated to version 5.25:
* ant3d, ant, life1d now with better colors.
* rain a new mode from Frank Fesevur.
* Fix for xlock -resource in life.c.
* Added a compile-time option "-DNO_TIME if you dont want the
time in the password window.
* Tue Aug 07 2007 sbrabec@suse.cz
- Updated to version 5.24:
* penrose added to xlock95.
* xcl added with a fix for DefaultScreen, which should not be
there since xlock is a multiscreen program.
* Patch for solitare and reducing binary size for xlock95.
* dilemma, voters, wator hexagonal/triangular drawing
improvements.
* More triangular/hexagonal life.
* Fixes for old options for command line -rule S2b34B2a and
-rule S2a2b4aB2a3a4b using -neighbors 6.
* Fixes for hexagonal diagonal shooters.
* Added new hexagonal life -rule S35B2 and S3B245.
* Added many new triangular life rules with gliders.
* Updated random soup to include multiple symmetries.
* Added options runtime -glidersearch and -patternsearch.
* Added -repeat num option to help find patterns that do not
repeat in num periods.
* Added -vertical option to more modules.
* DirectColor fixes for password window.
- Build with GLTT and FTGL modules.
* Wed Nov 15 2006 dmueller@suse.de
- build against freetype2, not freetype
* Mon Oct 23 2006 sbrabec@suse.cz
- Updated to version 5.23:
* Bug fixes.
* Several new options.
* Memory leak fixes.
* Wed Sep 13 2006 sbrabec@suse.cz
- Adjusted BuildRequires for ftgl.
* Tue Sep 05 2006 lmichnovic@suse.cz
- fixed wrong path to the ttf fonts (ttf_dir*patch) [#153404]
- removed comments in xlockmore-bitmaps.patch
- file "xlock-wrapper_xorg6" created for use whith X.org <= 6.9
- fixed build with X.org <= 6.9; patches 2, 4 applies; the names
ends with "xorg_6.patch"; patches 1, 3 applies if X.org >= 7.0
- fixed X libraries and headers path
* Wed Aug 09 2006 sndirsch@suse.de
- fixed paths in xlock wrapper script
* Wed Aug 02 2006 lmichnovic@suse.cz
- distinguishing prefix in X.org instead of suse_version
* Fri Jul 21 2006 lmichnovic@suse.cz
- fixed build for new X.org 7.x
* Tue Jun 06 2006 lmichnovic@suse.cz
- Update to version 5.22
- fiberlamp fix for array bounds read and leak fix for deluxe
- magick and raster file (ras) fixes for True Color by Jouk Jansen
- Removed some compiler/lint warnings.
- deluxe mode ported from xscreensaver by Jouk Jansen.
- anemone mode ported from xscreensaver by Jouk Jansen
- win32 changes from Petey Leinonen:
added XPutPixel()
pacman now works by changing the initialization and now can
create a 1 bit depth bitmap when asked for.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 sbrabec@suse.cz
- Updated to version 5.21.
* Tue Nov 15 2005 uli@suse.de
- build with -O1 on ARM (ICE workaround)
* Thu Aug 04 2005 sbrabec@suse.cz
- Updated to version 5.18.
* Tue May 24 2005 mcihar@suse.cz
- update to 5.17
* Wed May 11 2005 mcihar@suse.cz
- update to 5.16
- dropped patch accepted by upstream
* Fri Mar 11 2005 mcihar@suse.cz
- fix reading resources (bug #72191)
* Tue Mar 08 2005 mcihar@suse.cz
- fix permissions
* Mon Feb 14 2005 mcihar@suse.cz
- update to 5.15
- more fontset support merged upstream
* Mon Dec 06 2004 mcihar@suse.cz
- update to 5.14.1
* Mon Nov 15 2004 kukuk@suse.de
- Use common-* PAM config files
* Tue Sep 14 2004 mcihar@suse.cz
- work correctly with utf-8 (bug #45065):
- use multibyte X functions (--enable-use-mb)
- calculate correctly font height for multibyte (xlockmore-fonts.patch)
- use different fontset for signature (fixed) and messages (sans) (xlockmore-fonts.patch)
- set default fonts to one available in SUSE (xlockmore-fonts.patch)
* Wed Aug 04 2004 mcihar@suse.cz
- update to 5.13
* Thu May 27 2004 mcihar@suse.cz
- update to 5.12
* Tue Apr 20 2004 mcihar@suse.cz
- enabled VT locking
* Tue Feb 24 2004 mcihar@suse.cz
- compile with -fno-strict-aliasing
- include more docs
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Wed Jan 07 2004 schwab@suse.de
- Don't hardcode SIGCHLD value.
- Fix quoting.
* Wed Jan 07 2004 mcihar@suse.cz
- updated to 5.11.1
- removed patches accepted by author
- do not trap SIGCHLD in wrapper script - bug #32858
* Thu Nov 06 2003 mcihar@suse.cz
- update to 5.10
* Wed Aug 06 2003 mcihar@suse.cz
- updated to 5.09
* Fri Jun 13 2003 kukuk@suse.de
- fix filelist
* Wed Apr 30 2003 mcihar@suse.cz
- renamed to xlockmore
- updated to 5.07.1:
* Many buxfixes.
* Checks for OpenGL errors.
* Added a Caps Lock check.
* Fri Mar 07 2003 tcrhak@suse.cz
- restart xlock only when a signal was received,
not when xlock ended with an error, e.g. unknown mode
* Mon Mar 03 2003 tcrhak@suse.cz
- Added xlock wrapper (source xlock-wrapper), replacing
the original xlock. The wrapper restarts xlock whenever
it terminates unexpectedly, e.g. when the used module
segfaults. [bug #23091]
* Fri Feb 07 2003 kukuk@suse.de
- Use pam_unix2.so instead of pam_unix.so
* Tue Feb 04 2003 pmladek@suse.cz
- updated to version 5.06:
* new mode petri
* allow -erasemode to handle more complicated requests like
-erasemode all-circle_wipe
* and many bug fixes
- helper-bug.dif merged in helper.dif
* Tue Nov 19 2002 ro@suse.de
- removed duplication of AC_CONFIG_HEADER(config.h)
* Thu Sep 19 2002 pmladek@suse.cz
- previous change fixes the bugs #18790, #14329 and not the bug #18774
* Tue Sep 03 2002 pmladek@suse.cz
- fixed helper patch, FALLBACK_XLOCKRC is still not needed because PAM
support is replaced by PASSWD_HELPER_PROGRAM [#18774]
* Tue Aug 27 2002 pmladek@suse.cz
- used --with-libraries=%%{_libdir} to fix for lib64
* Mon Aug 26 2002 pmladek@suse.cz
- pam module is accessed via new helper utility unix2_chkpw and xlock binary
do not need group id bit now, many thanks to Olaf Kirch <okir@suse.de>
for hint and patch [#18132]
* Mon Feb 18 2002 tcrhak@suse.cz
- fixed application default resources (XLock.*.bitmap); bug #13347
* Tue Feb 12 2002 cihlar@suse.cz
- removed sound support (it breaks Minimal+X11 selection)
* Tue Feb 12 2002 cihlar@suse.cz
- removed xlock-mesa due to problems with mesa
screensavers [#12944]
* Tue Feb 05 2002 cihlar@suse.cz
- update to version 5.03
- added sound support (sound off by default)
- fixed to compile xlock without mesa and
xlock-mesa with mesa
* Thu Nov 08 2001 ro@suse.de
- use mesa-devel-packages in neededforbuild
* Mon Oct 29 2001 dan@suse.cz
- update to 5.02 version
* Fri Aug 24 2001 schwab@suse.de
- Fix conflicting declaration.
* Tue Aug 14 2001 ro@suse.de
- Don't use absolute paths to PAM modules in PAM config files
* Thu Aug 09 2001 dan@suse.cz
- update to the latest stable (4.17.2)
* Mon Jun 25 2001 pblaha@suse.cz
- remove mode cartoon due to a copyright problems
* Tue May 08 2001 mfabian@suse.de
- bzip2 sources
* Thu Mar 15 2001 ro@suse.de
- changed neededforbuild <mesaglu> to <xf86glu>
- changed neededforbuild <mesaglu-devel> to <xf86glu-devel>
* Wed Mar 07 2001 ro@suse.de
- changed neededforbuild <mesadev> to <mesa-devel>
* Wed Feb 07 2001 uli@suse.de
- fixed for glibc 2.2.1
- removed cracklib, pam from neededforbuild
* Mon Jan 22 2001 schwab@suse.de
- Fix conflicting declarations.
- Add %%suse_update_config.
* Thu Aug 17 2000 smid@suse.cz
- format string security bug fixed
* Wed May 24 2000 smid@suse.cz
- mesadev added to needeforbuild
* Tue Apr 18 2000 smid@suse.cz
- buildroot added
- upgrade to 4.16
* Thu Mar 23 2000 ro@suse.de
- fixed to compile on both xf86
* Fri Jan 07 2000 kukuk@suse.de
- Update to 4.15
* Sat Oct 16 1999 kukuk@suse.de
- Build one version with and one without Mesa.
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jul 01 1999 kukuk@suse.de
- Link against Mesa
* Wed Jun 30 1999 kukuk@suse.de
- Don't give egid away, it's needed for reading shadow
* Mon Jun 28 1999 kukuk@suse.de
- update to 4.14
* Tue Jun 08 1999 kukuk@suse.de
- update 4.12 -> 4.13.1
- Compile with PAM
* Tue Jan 12 1999 uli@suse.de
- update 4.04 -> 4.12
* Tue Oct 14 1997 ro@suse.de
- updated file list
ready for autobuild
* Fri Oct 10 1997 florian@suse.de
- update to version 4.04
* Sun Jun 22 1997 florian@suse.de
- update to version 4.02.1
* Wed Apr 30 1997 florian@suse.de
- make xlock sgid "shadow" and not suid "root"
* Sun Apr 27 1997 bs@suse.de
- update to new version 4.02 (security fix)
* Mon Apr 14 1997 florian@suse.de
- update to new version 4.01
- do not enable automatic logout button
* Sun Feb 02 1997 florian@suse.de
- update to new version 3.13
* Thu Jan 02 1997 florian@suse.de
- update from beta-version to official 3.12
* Thu Jan 02 1997 florian@suse.de
- update to newest version 3.12BETA due to security problems
* Thu Jan 02 1997 florian@suse.de
update to new version 3.10