File mingetty.spec of Package mingetty

# spec file for package mingetty
# Copyright (c) 2011 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:           mingetty
License:        GPL-2.0+
Group:          System/Base
AutoReqProv:    on
Version:        1.0.8s
Release:        8
Summary:        Minimal Getty for Virtual Consoles Only
Provides:       sysvinit:/sbin/mingetty
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         mingetty-1.0.8s.tar.bz2
Patch:          mingetty-1.0.8s.dif

The mingetty program is a lightweight, minimalistic getty program for
use on virtual consoles only. Mingetty is not suitable for serial lines
(you should use the mgetty program for this purpose).

    Miquel van Smoorenburg <>
    Florian La Roche <>
    Werner Fink <>

%setup -q

%ifarch s390 s390x
make %{?_smp_mflags} CC="%__cc" RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -D_FILE_OFFSET_BITS=64" DEFTERM=${DEFTERM}

mkdir -p ${RPM_BUILD_ROOT}{/sbin,%{_mandir}/man8}
make install MANPATH=%{_mandir} DESTDIR=${RPM_BUILD_ROOT}

%doc %{_mandir}/man8/mingetty.8.gz