File finger.spec of Package finger

# spec file for package finger (Version 1.3)
# 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

Name:           finger
License:        BSD-3-Clause
Group:          Productivity/Networking/Other
Requires:       netcfg
Version:        1.3
Release:        150
Summary:        Show User Information (Client)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         finger-bsd-%version.tar.bz2
Source1:        finger.xinetd
Source2:        finger.firewall
Patch1:         finger-utf8_segfault.patch
Patch2:         finger-memory-leak.patch

Finger is a utility that allows users to see information about system
users (login name, home directory, name, and more) on local and remote

%package server
License:        BSD-3-Clause
Summary:        A Server for Showing User Information
Group:          Productivity/Networking/Other
Requires:       netcfg
%description server
The finger daemon implements a simple protocol based on RFC1196 that
provides an interface to the Name and Finger programs at several
network sites. The program is supposed to return a friendly
human-oriented status report on either the system at the moment or a
particular person.

%setup -q -n finger-bsd-%version
%patch2 -p1

export CFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie"

install -d -m 755 $RPM_BUILD_ROOT/etc/xinetd.d
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -d -m 755 $RPM_BUILD_ROOT%{_sbindir}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man3
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man5
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8
make install DESTDIR=$RPM_BUILD_ROOT INSTALL_PROGRAM="install -m 755"
install -m 644 %{S:1} $RPM_BUILD_ROOT/etc/xinetd.d/finger
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/
install -m 644 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-server
%find_lang finger-bsd

%doc %{_mandir}/man1/finger.1.gz

%files server -f finger-bsd.lang
%doc %{_mandir}/man8/fingerd.8.gz
%doc %{_mandir}/man8/in.fingerd.8.gz
%config(noreplace) /etc/xinetd.d/finger
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-server

openSUSE Build Service is sponsored by