2a8e4f
Summary: Screen lock and screen saver
2a8e4f
Name: xlockmore
d67246
Version: 5.22
a9fd2e
Release: 3%{?dist}
2a8e4f
License: BSD
2a8e4f
Group: Amusements/Graphics
2a8e4f
URL: http://www.tux.org/~bagleyd/xlockmore.html
d67246
Source0: http://www.tux.org/~bagleyd/latest/xlockmore-5.22.tar.bz2
2a8e4f
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2a8e4f
BuildRequires: pam-devel esound-devel
e4b39f
BuildRequires: mesa-libGL-devel mesa-libGLU-devel
e4b39f
BuildRequires: desktop-file-utils libXdmcp-devel
a9fd2e
BuildRequires: lesstif-devel gtk2-devel
e4b39f
BuildRequires: libXau-devel
2a8e4f
2a8e4f
%description
2a8e4f
Locks the local X display until a password is entered.
2a8e4f
2a8e4f
%package motif
2a8e4f
Group: Amusements/Graphics
2a8e4f
Summary: Motif based frontend for xlockmore
2a8e4f
Requires: %{name} = %{version}-%{release}
2a8e4f
2a8e4f
%description motif
2a8e4f
Motif based frontend for xlockmore.
2a8e4f
2a8e4f
%package gtk
2a8e4f
Group: Amusements/Graphics
2a8e4f
Summary: GTK based frontend for xlockmore
2a8e4f
Requires: %{name} = %{version}-%{release}
2a8e4f
2a8e4f
%description gtk
2a8e4f
GTK based frontend for xlockmore.
2a8e4f
2a8e4f
%prep
2a8e4f
%setup -q
2a8e4f
2a8e4f
%{__sed} -i -e "s,/lib,/%{_lib},g" configure
2a8e4f
2a8e4f
%build
2a8e4f
%configure \
2a8e4f
	--with-crypt --enable-pam --enable-syslog --disable-setuid
e4b39f
%{__make} %{?_smp_mflags}
2a8e4f
2a8e4f
%install
2a8e4f
%{__rm} -rf %{buildroot}
2a8e4f
%{__install} -D -m0755 xlock/xlock %{buildroot}%{_bindir}/xlock
2a8e4f
%{__install} -D -m0755 xmlock/xmlock %{buildroot}%{_bindir}/xmlock
2a8e4f
%{__install} -D -m0755 xglock/xglock %{buildroot}%{_bindir}/xglock
2a8e4f
%{__install} -p -D -m0644 xlock/xlock.man %{buildroot}%{_mandir}/man1/xlock.1
2a8e4f
%{__install} -p -D -m0644 xlock/XLock.ad %{buildroot}%{_libdir}/X11/app-defaults/XLock
2a8e4f
%{__install} -p -D -m0644 xmlock/XmLock.ad %{buildroot}%{_libdir}/X11/app-defaults/XmLock
2a8e4f
2a8e4f
2a8e4f
%{__mkdir_p} %{buildroot}%{_sysconfdir}/pam.d
2a8e4f
cat > %{buildroot}%{_sysconfdir}/pam.d/xlock << EOF
2a8e4f
#%PAM-1.0
d67246
auth       include      system-auth
d67246
account    include      system-auth
d67246
password   include      system-auth
d67246
session    include      system-auth
2a8e4f
EOF
2a8e4f
2a8e4f
%{__mkdir_p} %{buildroot}%{_datadir}/applications
2a8e4f
2a8e4f
cat >> %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
2a8e4f
[Desktop Entry]
2a8e4f
Name=Xlock
2a8e4f
Comment=Screen Saver
2a8e4f
Encoding=UTF-8
2a8e4f
Icon=gnome-lockscreen.png
2a8e4f
Exec=xlock
2a8e4f
Terminal=false
2a8e4f
Type=Application
2a8e4f
EOF
2a8e4f
2a8e4f
desktop-file-install \
2a8e4f
	--vendor=fedora \
2a8e4f
	--dir %{buildroot}%{_datadir}/applications \
2a8e4f
	--delete-original \
2a8e4f
	--add-category X-Fedora \
2a8e4f
	--add-category Application \
2a8e4f
	--add-category Graphics \
2a8e4f
        %{buildroot}%{_datadir}/applications/%{name}.desktop
2a8e4f
2a8e4f
%clean
2a8e4f
%{__rm} -rf %{buildroot}
2a8e4f
2a8e4f
%files
2a8e4f
%defattr(-, root, root, 0755)
2a8e4f
%doc README docs/*
2a8e4f
%doc %{_mandir}/man1/xlock.1*
2a8e4f
%{_bindir}/xlock
2a8e4f
%{_libdir}/X11/app-defaults/XLock
2a8e4f
%config(noreplace) %{_sysconfdir}/pam.d/xlock
2a8e4f
%{_datadir}/applications/*
2a8e4f
2a8e4f
%files motif
2a8e4f
%defattr(-, root, root, 0755)
2a8e4f
%{_bindir}/xmlock
2a8e4f
%{_libdir}/X11/app-defaults/XmLock
2a8e4f
2a8e4f
%files gtk
2a8e4f
%defattr(-, root, root, 0755)
2a8e4f
%{_bindir}/xglock
2a8e4f
2a8e4f
%changelog
a9fd2e
* Tue Sep 12 2006 Adrian Reber <adrian@lisas.de> - 5.22-3
a9fd2e
- rebuilt
a9fd2e
- swtiched to lesstif
a9fd2e
6109d3
* Sun Jul 09 2006 Adrian Reber <adrian@lisas.de> - 5.22-2
6109d3
- rebuild for new freetype
6109d3
d67246
* Mon May 01 2006 Adrian Reber <adrian@lisas.de> - 5.22-1
d67246
- updated to 5.22
d67246
- changed pam file to use include instead of pam_stack.so
d67246
f62029
* Tue Feb 21 2006 Adrian Reber <adrian@lisas.de> - 5.21-1
f62029
- updated to 5.21
f62029
e4b39f
* Fri Dec 16 2005 Adrian Reber <adrian@lisas.de> - 5.20.1-1
e4b39f
- updated to 5.20.1
e4b39f
- changes for modular X
e4b39f
- removed "GENTOO" hack
e4b39f
4905da
* Sun Aug 21 2005 Adrian Reber <adrian@lisas.de> - 5.19-1
4905da
- updated to 5.19
4905da
- upstream included a fix for (BZ #161740), but "GENTOO" needs
4905da
  to be defined during compilation
4905da
17ef1b
* Mon Jun 27 2005 Adrian Reber <adrian@lisas.de> - 5.18-3
17ef1b
- included patch to make it work again with PAM (BZ #161740)
17ef1b
2e11f4
* Fri Jun 17 2005 Adrian Reber <adrian@lisas.de> - 5.18-2
85fe50
- update to 5.18
85fe50
79ef54
* Wed Apr 13 2005 Adrian Reber <adrian@lisas.de> - 5.16-1
79ef54
- update to 5.16
79ef54
062078
* Fri Apr  7 2005 Michael Schwendt <mschwendt[at]users.sf.net>
062078
- rebuilt
062078
2a8e4f
* Thu Feb 24 2005 Adrian Reber <adrian@lisas.de> - 5.15-1
2a8e4f
- update to 5.15
2a8e4f
- moved motif and gtk2 frontend to subpackages
2a8e4f
- build with pam support
2a8e4f
- added .desktop file
2a8e4f
2a8e4f
* Sun Dec 12 2004 Dries Verachtert <dries@ulyssis.org> 5.14.1-1
2a8e4f
- Update to release 5.14.1.
2a8e4f
2a8e4f
* Thu Oct 28 2004 Dries Verachtert <dries@ulyssis.org> 5.13-1
2a8e4f
- update to release 5.13
2a8e4f
2a8e4f
* Thu May 27 2004 Dries Verachtert <dries@ulyssis.org> 5.12-1
2a8e4f
- update to 5.12
2a8e4f
2a8e4f
* Sun Jan 11 2004 Dries Verachtert <dries@ulyssis.org> 5.10-2
2a8e4f
- cleanup of spec file
2a8e4f
2a8e4f
* Thu Dec 25 2003 Dries Verachtert <dries@ulyssis.org> 5.10-1
2a8e4f
- first packaging for Fedora Core 1