File ibmrtpkgs.spec of Package ibmrtpkgs.15904

# spec file for package ibmrtpkgs
# 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

Name:           ibmrtpkgs
Summary:        IBM Utilities for SLERT
Version:        2
Release:        6.<RELEASE36>
PreReq:         %insserv_prereq %fillup_prereq
License:        GPL-2.0
Group:          System/Management
Source:         ibmrtpkgs-%{version}.tar.gz
Patch1:         kthreadprio_defaults-bnc415750.diff
Patch2:         kthreadprio_autostart-bnc412439.diff
Patch3:         update_rtcheck_to_devel-bnc623542.diff
Patch4:         set_nfs_to_rt_per_ibm_testing.diff
Patch5:         make_init_lsb.diff
Patch6:         config_run_on_install.diff
Patch7:         correct-nice-for-realtime-bnc464343.patch
Patch8:         kthreadprio_defaults-bnc633514.diff
Patch9:         update_var_directory_usage-bnc714625.diff
Patch10:        irqbindall_cosmetic_fix-bnc703490.diff
Patch11:        irqbindall-rename-irq_balancer-to-irqbalance.diff
Patch12:        config-redirect-setterm-errors-to-dev-null.diff
Patch13:        irqbindall-add-systemd-service-file.diff
Patch14:        set_kthread_prio-add-systemd-service-file.diff
Patch15:        set_kthread_prio-modernize-it-a-bit.diff
Patch16:        config-bsc1173678.diff
AutoReqProv:    yes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A collection of utilities supplied by IBM to create a real time
environment primarily for RT WebSphere applications deployed on SLERT. 
Also contains a utility called ibm-prtm that removes latencies seen
when running SLERT on IBM hardware due to SMI interrupts.


%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1

cd $RPM_BUILD_DIR/ibmrtpkgs-2

mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/modprobe.d $RPM_BUILD_ROOT/sbin $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/usr/lib/systemd/system
install $RPM_BUILD_DIR/ibmrtpkgs-2/config/ $RPM_BUILD_ROOT/usr/sbin/ibmconfig
install $RPM_BUILD_DIR/ibmrtpkgs-2/irqbindall/irqbindall $RPM_BUILD_ROOT/etc/init.d/irqbindall
install -m 644 $RPM_BUILD_DIR/ibmrtpkgs-2/irqbindall/irqbindall.service $RPM_BUILD_ROOT/usr/lib/systemd/system/irqbindall.service
(cd $RPM_BUILD_ROOT/usr/sbin ; ln -s ../../etc/init.d/irqbindall rcirqbindall)
install $RPM_BUILD_DIR/ibmrtpkgs-2/set_kthread_prio/set_kthread_prio.conf $RPM_BUILD_ROOT/etc/set_kthread_prio.conf
install $RPM_BUILD_DIR/ibmrtpkgs-2/set_kthread_prio/set_kthread_prio $RPM_BUILD_ROOT/etc/init.d/set_kthread_prio
install -m 644 $RPM_BUILD_DIR/ibmrtpkgs-2/set_kthread_prio/set_kthread_prio.service $RPM_BUILD_ROOT/usr/lib/systemd/system/set_kthread_prio.service
(cd $RPM_BUILD_ROOT/usr/sbin ; ln -s ../../etc/init.d/set_kthread_prio rcset_kthread_prio)

for i in `( cd $RPM_BUILD_ROOT ; find * | sort )` ; do
        if ! test -d $RPM_BUILD_ROOT/$i ; then
            echo "/$i"
done > %{_builddir}/%{name}.list
# add unowned directory to keep build happy
echo /etc/modprobe.d >> %{_builddir}/%{name}.list

if test ! -e /.buildenv; then

%{restart_on_update irqbinall set_kthread_prio}


%files -f %{_builddir}/%{name}.list

openSUSE Build Service is sponsored by