File xibod.spec of Package xibod

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

# norootforbuild

Name:           xibod
BuildRequires:  openmotif openmotif-devel update-desktop-files xorg-x11
License:        GPL v2 or later
Group:          Hardware/ISDN
AutoReqProv:    on
Version:        2.0
Release:        1029
Summary:        A Control Panel for the Ibod ISDN Bandwidth-On-Demand Daemon
Source:         xibod-2.0.tar.bz2
Source1:        xibod.desktop
Patch0:         xibod.dif
Patch1:         ibod.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is the control panel for the ibod(1) ISDN Bandwidth On Demand
daemon. It is a Motif application that communicates over TCP socket
port 6051 with the ibod daemon. This package includes the ibod daemon.

    Bjoern Smith <Smith@Compound.SE>
    Karsten Keil <>

%setup -n xibod
%patch0 -p1
cd ../ibod

test -x /usr/sbin/switch_motif_linking && \
  /usr/sbin/switch_motif_linking dynamic
#mv xibod xibod.SuSE-dynamic
#test -x /usr/sbin/switch_motif_linking && \
#  /usr/sbin/switch_motif_linking static
#make LDFLAGS="-L/usr/X11R6/lib"
cd ../ibod
rm -f ibod

mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/X11/app-defaults
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/etc/ppp
mkdir -p $RPM_BUILD_ROOT/usr/share/man/{man1,man4}
install -p xibod $RPM_BUILD_ROOT/usr/bin
#install -p xibod.SuSE-dynamic $RPM_BUILD_ROOT/usr/bin
install -p $RPM_BUILD_ROOT/usr/share/X11/app-defaults/Xibod
#ln -sf xibod.SuSE-static $RPM_BUILD_ROOT/usr/bin/xibod
install -p -d $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
install -p README $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
cd ../ibod
install -p -m 755 ibod $RPM_BUILD_ROOT/usr/sbin
install -p -m 644 $RPM_BUILD_ROOT/etc/ppp
install -p -m 644 ibod.1 $RPM_BUILD_ROOT/usr/share/man/man1
install -p -m 644 $RPM_BUILD_ROOT/usr/share/man/man4
%suse_update_desktop_file -i %name System SystemSetup

%config /usr/share/X11/app-defaults/Xibod
%config(noreplace) /etc/ppp/
%doc /usr/share/man/man1/ibod.1.gz
%doc /usr/share/man/man4/
%doc %{_defaultdocdir}/%{name}