File vlock.spec of Package vlock

# spec file for package vlock (Version 2.2.2)
# Copyright (c) 2010 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

# norootforbuild

Name:           vlock
BuildRequires:  pam-devel
Version:        2.2.2
Release:        9
PreReq:         permissions
AutoReqProv:    on
Group:          System/Console
License:        GPLv2+
Summary:        It allows you to lock your console display
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.pamd
Patch0:         vlock-2.2.2-security.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

    Frank Benkstein <>

%setup -q

# not a real configure script, can't use macro :-/
./configure --prefix=%{_prefix} --libdir=%{_libdir}
make %{?_smp_mflags} CFLAGS="%{optflags} -W -pedantic -std=gnu99"

install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/vlock
install -D -m 0755 vlock %{buildroot}%{_bindir}/vlock
install -D -m 2755 vlock-main %{buildroot}%{_sbindir}/vlock-main
install -D -m 0644 man/vlock.1 %{buildroot}%{_mandir}/man1/vlock.1
install -D -m 0644 man/vlock-plugins.5 %{buildroot}%{_mandir}/man5/vlock-plugins.5
install -D -m 0644 man/vlock-main.8 %{buildroot}%{_mandir}/man8/vlock-main.8
install -D -m 0755 modules/ %{buildroot}%{_libdir}/vlock/modules/
install -D -m 0755 modules/ %{buildroot}%{_libdir}/vlock/modules/
install -D -m 0755 modules/ %{buildroot}%{_libdir}/vlock/modules/

%set_permissions %{_sbindir}/vlock-main

%verify_permissions -e %{_sbindir}/vlock-main

rm -rf %{buildroot}

%doc %{_mandir}/man?/*
%attr(0755,-,-) %{_sbindir}/vlock-main
%config %{_sysconfdir}/pam.d/vlock
%dir %{_libdir}/vlock
%dir %{_libdir}/vlock/modules

openSUSE Build Service is sponsored by