File librtas.spec of Package librtas
#
# spec file for package librtas (Version 1.3.4)
#
# 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: librtas
BuildRequires: doxygen
Version: 1.3.4
Release: 1
Group: System/Libraries
License: IBM Public License ..
Summary: Libraries to provide access to RTAS calls and RTAS events
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ppc ppc64
Url: http://librtas.ozlabs.org/
Source0: http://librtas.ozlabs.org/downloads/librtas-%{version}.tar.bz2
Patch: librtas-failedmagic.patch
%description
The librtas shared library provides userspace with an interface through
which certain RTAS calls can be made. The library uses either of the
RTAS User Module or the RTAS system call to direct the kernel in making
these calls.
The librtasevent shared library provides users with a set of
definitions and common routines useful in parsing and dumping the
contents of RTAS events.
Authors:
--------
Nathan Fontenot <nfont@austin.ibm.com>
John Rose <johnrose@us.ibm.com>
Michael Strosaker <strosake@austin.ibm.com>
%prep
%setup -q
%patch
sed s,rtasevent,ofdt,g <doxygen.rtasevent >doxygen.ofdt
%build
make CFLAGS="$RPM_OPT_FLAGS -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?jobs:-j%jobs}
make doc
%install
rm -rf $RPM_BUILD_ROOT doc/*/latex
mkdir $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT LIB_DIR="%{_libdir}"
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
%post
%{run_ldconfig}
%postun
%{run_ldconfig}
%files
%defattr(444, root, root,555)
%doc COPYRIGHT README doc
/usr/include/*
%attr (555,root,root)%{_libdir}/lib*
%changelog