2007-01-15 23:42:47 +00:00
|
|
|
#
|
2011-11-30 18:41:35 +00:00
|
|
|
# spec file for package xlockmore
|
2007-01-15 23:42:47 +00:00
|
|
|
#
|
Accepting request 833544 from home:dirkmueller:branches:X11:Utilities
- update to 5.65:
Fix from Jan Kratochvil and Adrian Reber, adrian AT lisas.de for Fedora.
xlock -startCmd true... would core on Fedora, exit() replaced with
_exit().
Update for magick.c to use strncpy thanks to Jouk Jansen.
Fix for hyper mode from original author, for potential but not
likely memory leak and free(NULL) issue John Heidemann, johnh
AT isi.edu.
More buffer gcc warnings removed for dclock.c, image.c, and
scrnsave.c.
ras.c/magick.c gcc 10 fix from Adrian Reber, adrian AT lisas.de .
VMS already handles this in make.com.
Lots of spelling errors fixed due to codespell
https://manpages.debian.org/testing/codespell/codespell.1.en.html
A few more gl modes (molecule, invert) fixed up by
EoflaOE ViceCity to run in xscreensaver.
Added additional changes to solitaire and invert. invert will
build in xscreensaver with some coaxing, see README in
xscreensaver directory.
Removed buffer gcc warning about nose.c.
Fix from brett.diamond AT gmail.com to get "xlock -help" from
crashing.
As a Blake's 7 fan, I had to add the Liberator to star mode.
Same fix from Jouk Jansen and Adrian Reber, adrian AT lisas.de
for juggler3d.cc in previous release.
Change from Denys Vlasenko (thanks to Adrian Reber for pointing out)
https://bugzilla.redhat.com/show_bug.cgi?id=874484
This helps xlock's parent process to know xlock crashed.
ico mode added truncated octahedron.
Another gl mode, sierpinski3d, fixed up by EoflaOE ViceCity to run
OBS-URL: https://build.opensuse.org/request/show/833544
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xlockmore?expand=0&rev=44
2020-09-11 08:19:35 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
Accepting request 833544 from home:dirkmueller:branches:X11:Utilities
- update to 5.65:
Fix from Jan Kratochvil and Adrian Reber, adrian AT lisas.de for Fedora.
xlock -startCmd true... would core on Fedora, exit() replaced with
_exit().
Update for magick.c to use strncpy thanks to Jouk Jansen.
Fix for hyper mode from original author, for potential but not
likely memory leak and free(NULL) issue John Heidemann, johnh
AT isi.edu.
More buffer gcc warnings removed for dclock.c, image.c, and
scrnsave.c.
ras.c/magick.c gcc 10 fix from Adrian Reber, adrian AT lisas.de .
VMS already handles this in make.com.
Lots of spelling errors fixed due to codespell
https://manpages.debian.org/testing/codespell/codespell.1.en.html
A few more gl modes (molecule, invert) fixed up by
EoflaOE ViceCity to run in xscreensaver.
Added additional changes to solitaire and invert. invert will
build in xscreensaver with some coaxing, see README in
xscreensaver directory.
Removed buffer gcc warning about nose.c.
Fix from brett.diamond AT gmail.com to get "xlock -help" from
crashing.
As a Blake's 7 fan, I had to add the Liberator to star mode.
Same fix from Jouk Jansen and Adrian Reber, adrian AT lisas.de
for juggler3d.cc in previous release.
Change from Denys Vlasenko (thanks to Adrian Reber for pointing out)
https://bugzilla.redhat.com/show_bug.cgi?id=874484
This helps xlock's parent process to know xlock crashed.
ico mode added truncated octahedron.
Another gl mode, sierpinski3d, fixed up by EoflaOE ViceCity to run
OBS-URL: https://build.opensuse.org/request/show/833544
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xlockmore?expand=0&rev=44
2020-09-11 08:19:35 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:42:47 +00:00
|
|
|
#
|
|
|
|
|
2011-12-21 19:02:28 +00:00
|
|
|
|
2007-01-15 23:42:47 +00:00
|
|
|
Name: xlockmore
|
2020-11-20 07:08:22 +00:00
|
|
|
Version: 5.66
|
2011-11-30 18:41:35 +00:00
|
|
|
Release: 0
|
2007-01-15 23:42:47 +00:00
|
|
|
Summary: Screen Saver and Locker for the X Window System
|
2015-03-10 10:12:08 +00:00
|
|
|
License: MIT
|
2011-12-21 19:02:28 +00:00
|
|
|
Group: System/X11/Utilities
|
Accepting request 833544 from home:dirkmueller:branches:X11:Utilities
- update to 5.65:
Fix from Jan Kratochvil and Adrian Reber, adrian AT lisas.de for Fedora.
xlock -startCmd true... would core on Fedora, exit() replaced with
_exit().
Update for magick.c to use strncpy thanks to Jouk Jansen.
Fix for hyper mode from original author, for potential but not
likely memory leak and free(NULL) issue John Heidemann, johnh
AT isi.edu.
More buffer gcc warnings removed for dclock.c, image.c, and
scrnsave.c.
ras.c/magick.c gcc 10 fix from Adrian Reber, adrian AT lisas.de .
VMS already handles this in make.com.
Lots of spelling errors fixed due to codespell
https://manpages.debian.org/testing/codespell/codespell.1.en.html
A few more gl modes (molecule, invert) fixed up by
EoflaOE ViceCity to run in xscreensaver.
Added additional changes to solitaire and invert. invert will
build in xscreensaver with some coaxing, see README in
xscreensaver directory.
Removed buffer gcc warning about nose.c.
Fix from brett.diamond AT gmail.com to get "xlock -help" from
crashing.
As a Blake's 7 fan, I had to add the Liberator to star mode.
Same fix from Jouk Jansen and Adrian Reber, adrian AT lisas.de
for juggler3d.cc in previous release.
Change from Denys Vlasenko (thanks to Adrian Reber for pointing out)
https://bugzilla.redhat.com/show_bug.cgi?id=874484
This helps xlock's parent process to know xlock crashed.
ico mode added truncated octahedron.
Another gl mode, sierpinski3d, fixed up by EoflaOE ViceCity to run
OBS-URL: https://build.opensuse.org/request/show/833544
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xlockmore?expand=0&rev=44
2020-09-11 08:19:35 +00:00
|
|
|
URL: http://sillycycle.com/xlockmore.html
|
2017-05-03 18:12:33 +00:00
|
|
|
Source: http://sillycycle.com/xlock/%{name}-%{version}.tar.xz
|
2007-01-15 23:42:47 +00:00
|
|
|
Source1: xlock.pamd
|
|
|
|
Source2: xlock-wrapper
|
|
|
|
Source3: xlock-wrapper_xorg6
|
2017-05-31 15:12:39 +00:00
|
|
|
Source4: http://sillycycle.com/xlock/%{name}-%{version}.tar.xz.asc
|
2013-07-19 16:30:54 +00:00
|
|
|
Source5: %{name}.keyring
|
2007-01-15 23:42:47 +00:00
|
|
|
# apply even patches when X.org < 7.0 else apply odd patches
|
|
|
|
Patch1: %{name}-bitmaps.patch
|
2013-04-23 11:07:33 +00:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2007-01-15 23:42:47 +00:00
|
|
|
Patch3: xlockmore-ttf_dir.patch
|
|
|
|
# end of X.org related patches
|
2007-08-09 21:00:51 +00:00
|
|
|
Patch7: xlockmore-strict-aliasing.patch
|
2013-12-16 06:26:06 +00:00
|
|
|
# PATCH-FIX-UPSTREAM xlockmore-extend-freetype-include-search.patch -- search only for freetype.h, not the half path. Also,
|
|
|
|
# extended list of directories where could freetype be found
|
|
|
|
Patch9: xlockmore-extend-freetype-include-search.patch
|
2015-03-14 18:55:57 +00:00
|
|
|
Patch10: xlockmore-nose_mode_crash.patch
|
2015-01-28 20:19:58 +00:00
|
|
|
BuildRequires: ImageMagick-devel
|
2013-04-23 11:07:33 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: ftgl-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libXdmcp-devel
|
2015-01-28 20:19:58 +00:00
|
|
|
BuildRequires: libXinerama-devel
|
|
|
|
BuildRequires: libXpm-devel
|
2013-04-23 11:07:33 +00:00
|
|
|
BuildRequires: libXt-devel
|
|
|
|
BuildRequires: libdrm-devel
|
2017-05-03 18:12:33 +00:00
|
|
|
BuildRequires: pam-devel
|
2013-04-23 11:07:33 +00:00
|
|
|
BuildRequires: pkg-config
|
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.
|
|
|
|
|
2013-04-23 11:07:33 +00:00
|
|
|
%define _xorg7libs %{_lib}
|
2007-01-15 23:42:47 +00:00
|
|
|
%define _xorg7libs32 lib
|
|
|
|
%define _xorg7bin bin
|
2013-04-23 11:07:33 +00:00
|
|
|
%define _xorg7_mandir %{_mandir}
|
2007-01-15 23:42:47 +00:00
|
|
|
%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
|
2013-12-16 06:26:06 +00:00
|
|
|
%patch9 -p1
|
2015-03-14 18:55:57 +00:00
|
|
|
%patch10 -p1
|
2007-01-15 23:42:47 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
aclocal
|
|
|
|
autoconf
|
2013-12-16 06:26:06 +00:00
|
|
|
export CPPFLAGS="-I/usr/include/FTGL $(freetype-config --cflags)"
|
2013-04-23 11:07:33 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2007-01-15 23:42:47 +00:00
|
|
|
./configure \
|
2007-08-09 21:00:51 +00:00
|
|
|
--prefix=%{_xorg7_prefix}\
|
|
|
|
--with-libraries=%{_libdir}\
|
2015-01-28 20:19:58 +00:00
|
|
|
--with-magick\
|
|
|
|
--with-xinerama\
|
|
|
|
--with-xpm\
|
2007-08-09 21:00:51 +00:00
|
|
|
--without-gtk\
|
2015-01-28 20:19:58 +00:00
|
|
|
--without-motif\
|
2007-08-09 21:00:51 +00:00
|
|
|
--disable-bomb\
|
2017-05-03 18:12:33 +00:00
|
|
|
--enable-pam\
|
2009-07-28 22:46:58 +00:00
|
|
|
--enable-vtlock\
|
|
|
|
--disable-allow-root\
|
|
|
|
--x-includes=%{_xorg7_prefix}/include\
|
2013-04-23 11:07:33 +00:00
|
|
|
--x-libraries=%{_xorg7_prefix}/%{_lib}
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:42:47 +00:00
|
|
|
|
|
|
|
%install
|
2013-04-23 11:07:33 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d
|
|
|
|
install -d -m 755 %{buildroot}%{_prefix}/%{_xorg7bin}/
|
|
|
|
install -d -m 755 %{buildroot}%{_prefix}/%{_xorg7libshare}/X11/app-defaults/
|
|
|
|
install -d -m 755 %{buildroot}%{_xorg7_mandir}/man1/
|
|
|
|
install -d -m 755 %{buildroot}%{_prefix}/%{_xorg7libs32}/xlock
|
|
|
|
install -m 755 xlock/xlock %{buildroot}%{_prefix}/%{_xorg7libs32}/xlock/xlock
|
|
|
|
install -m 644 xlock/XLock.ad %{buildroot}%{_prefix}/%{_xorg7libshare}/X11/app-defaults/XLock
|
|
|
|
install -m 644 xlock/xlock.man %{buildroot}%{_xorg7_mandir}/man1/xlock.1x
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/xlock
|
2007-01-15 23:42:47 +00:00
|
|
|
%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr"
|
2013-04-23 11:07:33 +00:00
|
|
|
install -m 755 %{SOURCE2} %{buildroot}%{_prefix}/%{_xorg7bin}/xlock
|
2007-01-15 23:42:47 +00:00
|
|
|
%else
|
2013-04-23 11:07:33 +00:00
|
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_prefix}/%{_xorg7bin}/xlock
|
2007-01-15 23:42:47 +00:00
|
|
|
%endif
|
2013-04-23 11:07:33 +00:00
|
|
|
%fdupes %{buildroot}/usr
|
2007-08-09 21:00:51 +00:00
|
|
|
|
2007-01-15 23:42:47 +00:00
|
|
|
%clean
|
2013-04-23 11:07:33 +00:00
|
|
|
rm -rf %{buildroot}
|
2007-01-15 23:42:47 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_xorg7_mandir}/man1/xlock.1x.gz
|
2013-07-19 16:30:54 +00:00
|
|
|
%doc README docs/3d.howto docs/Purify docs/Revisions docs/TODO docs/cell_automata
|
2013-04-23 11:07:33 +00:00
|
|
|
%config %{_sysconfdir}/pam.d/xlock
|
|
|
|
%{_prefix}/%{_xorg7libshare}/X11/app-defaults
|
|
|
|
%{_prefix}/%{_xorg7bin}/xlock
|
|
|
|
%{_prefix}/%{_xorg7libs32}/xlock
|
2007-01-15 23:42:47 +00:00
|
|
|
|
2007-08-09 21:00:51 +00:00
|
|
|
%changelog
|