Blob Blame Raw
Summary: Screen lock and screen saver
Name: xlockmore
Version: 5.15
Release: 1
License: BSD
Group: Amusements/Graphics
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pam-devel esound-devel
BuildRequires: xorg-x11-Mesa-libGL xorg-x11-Mesa-libGLU
BuildRequires: desktop-file-utils
BuildRequires: openmotif-devel gtk2-devel

Locks the local X display until a password is entered.

%package motif
Group: Amusements/Graphics
Summary: Motif based frontend for xlockmore
Requires: %{name} = %{version}-%{release}

%description motif
Motif based frontend for xlockmore.

%package gtk
Group: Amusements/Graphics
Summary: GTK based frontend for xlockmore
Requires: %{name} = %{version}-%{release}

%description gtk
GTK based frontend for xlockmore.

%setup -q

%{__sed} -i -e "s,/lib,/%{_lib},g" configure

%configure \
	--with-crypt --enable-pam --enable-syslog --disable-setuid
%{__make} %{?_smp_mflags}

%{__rm} -rf %{buildroot}
%{__install} -D -m0755 xlock/xlock %{buildroot}%{_bindir}/xlock
%{__install} -D -m0755 xmlock/xmlock %{buildroot}%{_bindir}/xmlock
%{__install} -D -m0755 xglock/xglock %{buildroot}%{_bindir}/xglock
%{__install} -p -D -m0644 xlock/ %{buildroot}%{_mandir}/man1/xlock.1
%{__install} -p -D -m0644 xlock/ %{buildroot}%{_libdir}/X11/app-defaults/XLock
%{__install} -p -D -m0644 xmlock/ %{buildroot}%{_libdir}/X11/app-defaults/XmLock

%{__mkdir_p} %{buildroot}%{_sysconfdir}/pam.d
cat > %{buildroot}%{_sysconfdir}/pam.d/xlock << EOF
auth       required service=system-auth
account    required service=system-auth
password   required service=system-auth
session    required service=system-auth

%{__mkdir_p} %{buildroot}%{_datadir}/applications

cat >> %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Comment=Screen Saver

desktop-file-install \
	--vendor=fedora \
	--dir %{buildroot}%{_datadir}/applications \
	--delete-original \
	--add-category X-Fedora \
	--add-category Application \
	--add-category Graphics \

%{__rm} -rf %{buildroot}

%defattr(-, root, root, 0755)
%doc README docs/*
%doc %{_mandir}/man1/xlock.1*
%config(noreplace) %{_sysconfdir}/pam.d/xlock

%files motif
%defattr(-, root, root, 0755)

%files gtk
%defattr(-, root, root, 0755)

* Thu Feb 24 2005 Adrian Reber <> - 5.15-1
- update to 5.15
- moved motif and gtk2 frontend to subpackages
- build with pam support
- added .desktop file

* Sun Dec 12 2004 Dries Verachtert <> 5.14.1-1
- Update to release 5.14.1.

* Thu Oct 28 2004 Dries Verachtert <> 5.13-1
- update to release 5.13

* Thu May 27 2004 Dries Verachtert <> 5.12-1
- update to 5.12

* Sun Jan 11 2004 Dries Verachtert <> 5.10-2
- cleanup of spec file

* Thu Dec 25 2003 Dries Verachtert <> 5.10-1
- first packaging for Fedora Core 1