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 http://bugs.opensuse.org/
#
# norootforbuild
Name: xibod
BuildRequires: openmotif openmotif-devel update-desktop-files xorg-x11
License: GPL v2 or later
Group: Hardware/ISDN
AutoReqProv: on
Url: http://www.datenwelt.net/oss/ibod
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
%description
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.
Authors:
--------
Bjoern Smith <Smith@Compound.SE>
Karsten Keil <kkeil@suse.de>
%prep
%setup -n xibod
%patch0 -p1
cd ../ibod
%patch1
%build
test -x /usr/sbin/switch_motif_linking && \
/usr/sbin/switch_motif_linking dynamic
make CFLAGS="$RPM_OPT_FLAGS"
#LDFLAGS="-L/usr/%{_lib}"
#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
make CFLAGS="$RPM_OPT_FLAGS"
%install
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 Xibod.ad $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 ibod.cf $RPM_BUILD_ROOT/etc/ppp
install -p -m 644 ibod.1 $RPM_BUILD_ROOT/usr/share/man/man1
install -p -m 644 ibod.cf.4 $RPM_BUILD_ROOT/usr/share/man/man4
%suse_update_desktop_file -i %name System SystemSetup
%files
%defattr(-,root,root)
/usr/bin/xibod
%config /usr/share/X11/app-defaults/Xibod
/usr/sbin/ibod
/usr/share/applications/*.desktop
%config(noreplace) /etc/ppp/ibod.cf
%doc /usr/share/man/man1/ibod.1.gz
%doc /usr/share/man/man4/ibod.cf.4.gz
%doc %{_defaultdocdir}/%{name}
%changelog