librtas/librtas.spec

126 lines
3.9 KiB
RPMSpec

#
# spec file for package librtas (Version 1.3.3)
#
# Copyright (c) 2008 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.3
Release: 38
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
Patch0: librtas.open_prop_file-off_by_one.patch
Patch2: librtas.open_create.patch
Patch3: librtas.firmware_rev.patch
Patch4: librtas.header-compile.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
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%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
* Tue Oct 28 2008 olh@suse.de
- fix header compilation (bnc#439321, bnc#439327)
* Fri Feb 15 2008 sassmann@suse.de
- update to librtas-1.3.3 (bnc#361305)
- removed errno patch (included upstream)
* Mon Jan 21 2008 olh@suse.de
- use correct open mode for O_CREAT
fix out-of-bounds access in parse_post_scn()
fix errno assingment in parse_fru_*_scn()
* Tue Nov 13 2007 sassmann@suse.de
- added patch
librtas.libdir-fix-for-64bit.patch
libraries need to be in lib64 instead of lib on ppc64,
this patch alters the various Makefiles to achieve this.
* Wed Nov 07 2007 sassmann@suse.de
- fixed wrong release number
* Mon Nov 05 2007 sassmann@suse.de
- added arch ppc64 for build
- Patch librtas.signed-char.patch removed
- Patch librtas.syscall.patch removed
* Tue Oct 16 2007 sassmann@suse.de
- update to librtas-1.3.2 (feature #302692)
- patches disabled
Patch0: librtas.signed-char.patch
Patch1: librtas.syscall.patch
* Fri Oct 13 2006 olh@suse.de
- fix off by one in open_prop_file
* Fri Jan 27 2006 olh@suse.de
- package soname symlink
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Dec 10 2005 olh@suse.de
- use unsigned char for fprintf. The rtas_dump output will be
corrupt, depending on the input data (#93851)
* Fri Oct 28 2005 olh@suse.de
- update to version 1.2.4 (130214 - LTC19273)
* Wed Oct 26 2005 olh@suse.de
- update to version 1.2.3 (130214 - LTC19273)
fixes for date parsing and vendor event parsing
* Thu Oct 13 2005 olh@suse.de
- create 32bit package librtas 1.2