2007-01-15 23:42:47 +00:00
|
|
|
#
|
2010-12-20 14:44:45 +00:00
|
|
|
# spec file for package xlockmore (Version 5.32)
|
2007-01-15 23:42:47 +00:00
|
|
|
#
|
2010-12-20 14:44:45 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:42:47 +00:00
|
|
|
#
|
2008-09-06 02:28:14 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:42:47 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-25 14:48:09 +00:00
|
|
|
|
2007-01-15 23:42:47 +00:00
|
|
|
Name: xlockmore
|
2010-12-20 14:44:37 +00:00
|
|
|
BuildRequires: bc esound-devel fdupes freeglut-devel freetype2-devel ftgl-devel gcc-c++ libdrm-devel pkg-config
|
2010-12-20 14:44:45 +00:00
|
|
|
License: GPLv2+ ; MIT License (or similar)
|
2007-01-15 23:42:47 +00:00
|
|
|
Group: System/X11/Utilities
|
|
|
|
Provides: xlock
|
|
|
|
Obsoletes: xlock
|
2008-04-25 14:48:09 +00:00
|
|
|
AutoReqProv: on
|
2010-12-20 14:44:37 +00:00
|
|
|
Version: 5.32
|
2010-12-20 14:44:45 +00:00
|
|
|
Release: 1
|
2007-01-15 23:42:47 +00:00
|
|
|
Summary: Screen Saver and Locker for the X Window System
|
2008-04-25 14:48:09 +00:00
|
|
|
Url: http://www.tux.org/~bagleyd/xlockmore.html
|
2007-01-15 23:42:47 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: xlock.pamd
|
|
|
|
Source2: xlock-wrapper
|
|
|
|
Source3: xlock-wrapper_xorg6
|
|
|
|
# apply even patches when X.org < 7.0 else apply odd patches
|
|
|
|
Patch1: %{name}-bitmaps.patch
|
|
|
|
Patch3: xlockmore-ttf_dir.patch
|
|
|
|
# end of X.org related patches
|
2007-08-09 21:00:51 +00:00
|
|
|
Patch7: xlockmore-strict-aliasing.patch
|
2007-01-15 23:42:47 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%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
|
2008-04-25 14:48:09 +00:00
|
|
|
|
2007-01-15 23:42:47 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-09-06 02:28:14 +00:00
|
|
|
chmod -x README docs/Revisions
|
2007-01-15 23:42:47 +00:00
|
|
|
%patch1
|
|
|
|
%patch3
|
2007-08-09 21:00:51 +00:00
|
|
|
%patch7
|
2007-01-15 23:42:47 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
|
|
aclocal
|
|
|
|
autoconf
|
2007-08-09 21:00:51 +00:00
|
|
|
export CPPFLAGS="-I/usr/include/FTGL"
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2007-01-15 23:42:47 +00:00
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
./configure \
|
2007-08-09 21:00:51 +00:00
|
|
|
--prefix=%{_xorg7_prefix}\
|
|
|
|
--with-libraries=%{_libdir}\
|
|
|
|
--without-motif\
|
|
|
|
--without-gtk\
|
|
|
|
--with-passwd-helper=/sbin/unix2_chkpwd\
|
|
|
|
--disable-bomb\
|
2009-07-28 22:46:58 +00:00
|
|
|
--enable-vtlock\
|
|
|
|
--enable-use-mb\
|
|
|
|
--disable-allow-root\
|
|
|
|
--x-includes=%{_xorg7_prefix}/include\
|
|
|
|
--x-libraries=%{_xorg7_prefix}/%_lib
|
2007-01-15 23:42:47 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
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/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
|
2007-08-09 21:00:51 +00:00
|
|
|
%fdupes $RPM_BUILD_ROOT/usr
|
|
|
|
|
2007-01-15 23:42:47 +00:00
|
|
|
%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
|
2007-08-09 21:00:51 +00:00
|
|
|
/usr/%{_xorg7libshare}/X11/app-defaults/XLock
|
2007-01-15 23:42:47 +00:00
|
|
|
/usr/%{_xorg7bin}/xlock
|
|
|
|
/usr/%{_xorg7libs32}/xlock
|
|
|
|
|
2007-08-09 21:00:51 +00:00
|
|
|
%changelog
|