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