File rstart.spec of Package rstart

#
# spec file for package rstart
#
# Copyright (c) 2012 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/
#

Name:           rstart
Version:        1.0.4
Release:        0
License:        MIT
Summary:        Sample implementation of a Remote Start client
Url:            http://xorg.freedesktop.org/
Group:          System/X11/Utilities
Source0:        http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
# rstart.diff -- Change path to config file
Patch0:         rstart.diff
# needed for patch0
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(xorg-macros) >= 1.8
BuildRequires:  pkgconfig(xproto)
# This was part of the xorg-x11 package up to version 7.6
Conflicts:      xorg-x11 <= 7.6
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package includes both the client and server sides implementing
the protocol described in the "A Flexible Remote Execution Protocol
Based on rsh" paper found in the specs/ subdirectory.

This software has been deprecated in favor of the X11 forwarding
provided in common ssh implementations.

%prep
%setup -q
%patch0 -p0
# needed for patch0
autoreconf -fi

%build
%configure
make %{?_smp_mflags}

%install
%make_install
# for FHS/FSSTND compliance (bnc#470983)
mv %{buildroot}%{_sysconfdir}/X11/rstart/rstartd.real %{buildroot}%{_bindir}
sed -i 's+%{_sysconfdir}/X11/rstart/rstartd.real+%{_bindir}/rstartd.real+' %{buildroot}%{_bindir}/rstartd
# fdo#35867 (closed INVALID, but because of above fix, we want it)
ln -s rstartd.1%{?ext_man} %{buildroot}%{_mandir}/man1/rstartd.real.1%{?ext_man}

%files
%defattr(-,root,root)
%doc ChangeLog COPYING README
%config %{_sysconfdir}/X11/rstart/
%{_bindir}/rstart
%{_bindir}/rstartd
%{_bindir}/rstartd.real
%{_mandir}/man1/rstart.1%{?ext_man}
%{_mandir}/man1/rstartd.1%{?ext_man}
%{_mandir}/man1/rstartd.real.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by