dd2a13
Summary: Libraries to provide access to RTAS calls and RTAS events
dd2a13
Name:    librtas
dd2a13
Version: 2.0.1
dd2a13
Release: 2%{?dist}
dd2a13
URL:     http://librtas.ozlabs.org
dd2a13
License: LGPL
dd2a13
Group:   System Environment/Libraries
dd2a13
dd2a13
Source: https://github.com/nfont/librtas/archive/v%{version}.tar.gz
dd2a13
dd2a13
BuildRequires: autoconf
dd2a13
BuildRequires: libtool
dd2a13
dd2a13
Patch0: librtas-2.0.1-libversion.patch
dd2a13
Patch1: librtas-2.0.1-rtas-call.patch
dd2a13
dd2a13
Obsoletes: librtas(ppc)
dd2a13
ExclusiveArch: ppc64 ppc64le
dd2a13
dd2a13
%description
dd2a13
The librtas shared library provides userspace with an interface
dd2a13
through which certain RTAS calls can be made.  The library uses
dd2a13
either of the RTAS User Module or the RTAS system call to direct
dd2a13
the kernel in making these calls.
dd2a13
dd2a13
The librtasevent shared library provides users with a set of
dd2a13
definitions and common routines useful in parsing and dumping
dd2a13
the contents of RTAS events.
dd2a13
dd2a13
%package devel
dd2a13
Summary:  C header files for development with librtas
dd2a13
Group:    Development/Libraries
dd2a13
Requires: %{name} = %{version}-%{release}
dd2a13
dd2a13
%description devel
dd2a13
The librtas-devel packages contains the header files necessary for
dd2a13
developing programs using librtas.
dd2a13
dd2a13
%prep
dd2a13
%setup -q -n %{name}-%{version}
dd2a13
%patch0 -p1 -b .ln
dd2a13
%patch1 -p1 -b .rtas
dd2a13
dd2a13
%build
dd2a13
./autogen.sh
dd2a13
# disable "-Werror=format-security" checking gcc option until we fix
dd2a13
# these errors in our code.
dd2a13
%configure --disable-silent-rules --disable-static
dd2a13
CFLAGS="%{optflags} -fPIC -DPIC -I."
dd2a13
CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'`
dd2a13
%make_build CFLAGS="$CFLAGS"
dd2a13
dd2a13
%install
dd2a13
%make_install
dd2a13
find %{buildroot} -name '*.la' -exec rm -f {} ';'
dd2a13
rm -f  %{buildroot}/%{_docdir}/librtas/*
dd2a13
dd2a13
dd2a13
%post -p /sbin/ldconfig
dd2a13
dd2a13
%postun -p /sbin/ldconfig
dd2a13
dd2a13
%files
dd2a13
%doc COPYING.LESSER README Changelog
dd2a13
%{_libdir}/librtas.so.*
dd2a13
%{_libdir}/librtasevent.so.*
dd2a13
dd2a13
%files devel
dd2a13
%{_libdir}/librtas.so
dd2a13
%{_libdir}/librtasevent.so
dd2a13
%{_libdir}/pkgconfig/librtas.pc
dd2a13
%{_includedir}/librtas.h
dd2a13
%{_includedir}/librtasevent.h
dd2a13
%{_includedir}/librtasevent_v4.h
dd2a13
%{_includedir}/librtasevent_v6.h
dd2a13
dd2a13
%changelog
dd2a13
* Wed Sep 13 2017 Sinny Kumari <skumari@redhat.com> 2.0.1-2
dd2a13
- Resolves: #1457407 - Apply feature from librtas-2.0.1-rtas-call.patch
dd2a13
dd2a13
* Fri Mar 17 2017 Sinny Kumari <skumari@redhat.com> 2.0.1-1
dd2a13
- Resolves: #1380656 Rebase to 2.0.1
dd2a13
dd2a13
* Mon Jun 27 2016 Sinny Kumari <skumari@redhat.com> 1.4.1-2
dd2a13
- Resolves: #1349878 - EEH_Tool fails to inject error with librtas-1.4.1-1.ppc64le file
dd2a13
dd2a13
* Thu Apr 28 2016 Sinny Kumari <skumari@redhat.com> 1.4.1-1
dd2a13
- Resolves: #1182039 - librtas package update
dd2a13
- Resolves: #1302727 - License change from CPL to LGPL
dd2a13
- Resolves: #1300542 - If mmap() of /dev/mem fails, librtas does not release /run/lock/LCK.
dd2a13
- Removed patch librtas-papr.patch, changes included in upstream release 1.3.14
dd2a13
dd2a13
* Mon Jun 08 2015 Jakub Čajka <jcajka@redhat.com> 1.3.13-2
dd2a13
- Resolves: #1184466 - errinct failed with error " errinjct: RTAS: ioa-bus-error: Argument error (-3)"
dd2a13
dd2a13
* Mon Nov 10 2014 Jakub Čajka <jcajka@redhat.com> 1.3.13-1
dd2a13
- Resolves: #1161551 - librtas package update for RHEL7.1 Beta
dd2a13
dd2a13
* Thu Aug 21 2014 Jakub Čajka <jcajka@redhat.com> 1.3.12-1
dd2a13
- Related: #1088538 - [7.1 FEAT] librtas package update - ppc64
dd2a13
dd2a13
* Mon Aug 18 2014 Jakub Čajka <jcajka@redhat.com> 1.3.11-2
dd2a13
- Related: #1098215 - [7.1 FEAT] librtas - drop 32bit package - ppc64
dd2a13
dd2a13
* Tue Aug 12 2014 Jakub Čajka <jcajka@redhat.com> 1.3.11-1
dd2a13
- Resolves: #1124003 - librtas needs ppc64le added to ExclusiveArch
dd2a13
- Resolves: #1084063 - add support to recognize qemu pci hotplug events
dd2a13
- Resolves: #1088538 - [7.1 FEAT] librtas package update - ppc64
dd2a13
dd2a13
* Wed Mar 19 2014 Karsten Hopp <karsten@redhat.com> 1.3.8-6
dd2a13
- delete all *.so.* files after unpacking the tarball to make sure they get rebuilt
dd2a13
- Resolves: rhbz 1024888
dd2a13
dd2a13
* Fri Mar 07 2014 Karsten Hopp <karsten@redhat.com> 1.3.8-5
dd2a13
- fix CFLAGS
dd2a13
- Related: rhbz 1024888
dd2a13
dd2a13
* Fri Mar 07 2014 Karsten Hopp <karsten@redhat.com> 1.3.8-4
dd2a13
- remove precompiled binaries before building
dd2a13
- Resolves: rhbz 1024888
dd2a13
dd2a13
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3.8-3
dd2a13
- Mass rebuild 2013-12-27
dd2a13
dd2a13
* Tue Jul 30 2013 Filip Kocina <fkocina@redhat.com> - 1.3.8-2
dd2a13
- Source URL fix
dd2a13
dd2a13
* Thu May 16 2013 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.8
dd2a13
- Update to latest upstream 1.3.8
dd2a13
dd2a13
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-4
dd2a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dd2a13
dd2a13
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-3
dd2a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dd2a13
dd2a13
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
dd2a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dd2a13
dd2a13
* Thu Aug 11 2011 Jiri Skala <jskala@redhat.com> 1.3.6-1
dd2a13
- update to latest upstream 1.3.6
dd2a13
dd2a13
* Mon Aug 08 2011 Jiri Skala <jskala@redhat.com> 1.3.5-1
dd2a13
- update to latest upstream 1.3.5
dd2a13
dd2a13
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
dd2a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dd2a13
dd2a13
* Sat Sep 11 2010 Parag Nemade <paragn AT fedoraproject.org> 2.30.3-3
dd2a13
- Merge-review cleanup (#226059)
dd2a13
dd2a13
* Mon Sep 21 2009 Roman Rakus <rrakus@redhat.com> - 1.3.4-1
dd2a13
- Upstream release 1.3.4
dd2a13
dd2a13
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-5
dd2a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
dd2a13
dd2a13
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-4
dd2a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
dd2a13
dd2a13
* Fri Feb 08 2008 David Cantrell <dcantrell@redhat.com> - 1.3.3-3
dd2a13
- Rebuild for gcc-4.3
dd2a13
dd2a13
* Tue Dec 18 2007 David Cantrell <dcantrell@redhat.com> - 1.3.3-2
dd2a13
- Spec cleanups
dd2a13
dd2a13
* Tue Dec 18 2007 David Cantrell <dcantrell@redhat.com> - 1.3.3-1
dd2a13
- Upgraded to librtas-1.3.3 (#253522)
dd2a13
dd2a13
* Mon Sep 10 2007 David Cantrell <dcantrell@redhat.com> - 1.3.2-1
dd2a13
- Upgraded to librtas-1.3.2
dd2a13
- Cleaned up spec file to conform to Fedora packaging guidelines
dd2a13
dd2a13
* Tue Aug 21 2007 David Cantrell <dcantrell@redhat.com> - 1.2.4-4
dd2a13
- Rebuild
dd2a13
dd2a13
* Sat Mar 31 2007 David Woodhouse <dwmw2@redhat.com> - 1.2.4-3
dd2a13
- Install libraries into /usr/lib64 on PPC64.
dd2a13
dd2a13
* Tue Aug 01 2006 Paul Nasrat <pnasrat@redhat.com> - 1.2.4-2
dd2a13
- Backport syscall fix from upstream 
dd2a13
dd2a13
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.2.2
dd2a13
- rebuild
dd2a13
dd2a13
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.2.1
dd2a13
- bump again for double-long bug on ppc(64)
dd2a13
dd2a13
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.2
dd2a13
- rebuilt for new gcc4.1 snapshot and glibc changes
dd2a13
dd2a13
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
dd2a13
- rebuilt
dd2a13
dd2a13
* Thu Nov 03 2005 Paul Nasrat <pnasrat@redhat.com> 1.2.4-1
dd2a13
- Update to latest version
dd2a13
dd2a13
* Thu Nov 03 2005 Paul Nasrat <pnasrat@redhat.com> 1.2.2-1
dd2a13
- Initial release