File vlock.spec of Package vlock

#
# spec file for package vlock (Version 2.2.2)
#
# Copyright (c) 2009 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:           vlock
BuildRequires:  pam-devel
Version:        2.2.2
Release:        1
PreReq:         permissions
AutoReqProv:    on
Group:          System/Console
License:        GPL v2 or later
Url:            http://cthulhu.c3d2.de/~toidinamai/vlock/vlock.html
Summary:        It allows you to lock your console display
Source:         %{name}-%{version}.tar.bz2
Patch:          vlock-2.2.2-security.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is vlock, the Linux Virtual Console locking program. It allows you
to lock one or all of the sessions of your Linux console display.



Authors:
--------
    Frank Benkstein <frank-vlock@benkstein.net>

%prep
%setup -q
%patch

%build
./configure --prefix=%{_prefix}
export CFLAGS="%{optflags}"
make %{?jobs:-j%jobs}

%install
install -d -m 755 %{buildroot}%{_bindir}
install vlock %{buildroot}%{_bindir}/
install -d -m 755 %{buildroot}/usr/sbin
install vlock-main %{buildroot}/usr/sbin/
install -d -m 755 %{buildroot}%{_mandir}/man8
install -m 644 man/vlock-main.8 %{buildroot}%{_mandir}/man8/
install -d -m 755 %{buildroot}%{_mandir}/man5
install -m 644 man/vlock-plugins.5 %{buildroot}%{_mandir}/man5/
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 man/vlock.1 %{buildroot}%{_mandir}/man1/
install -d -m 755 %{buildroot}%{_libdir}/vlock/modules
install -m 755 modules/all.so %{buildroot}%{_libdir}/vlock/modules
install -m 755 modules/new.so %{buildroot}%{_libdir}/vlock/modules
install -m 755 modules/nosysrq.so %{buildroot}%{_libdir}/vlock/modules

%post
%run_permissions
%verifyscript
%verify_permissions -e %{_bindir}/vlock
%verify_permissions -e /usr/sbin/vlock-main

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
# %doc README README.X11 ChangeLog SECURITY PLUGINS
%doc %{_mandir}/man?/*
%verify(not mode) %attr(0755,root,shadow) %{_bindir}/vlock
%verify(not mode) %attr(0755,root,shadow) /usr/sbin/vlock-main
%dir %{_libdir}/vlock
%dir %{_libdir}/vlock/modules
%{_libdir}/vlock/modules

%changelog
openSUSE Build Service is sponsored by