8a89c9
Summary: Libraries to provide access to RTAS calls and RTAS events
8a89c9
Name:    librtas
8a89c9
Version: 2.0.2
8a89c9
Release: 14%{?dist}
8a89c9
URL:     https://github.com/nfont/librtas
8a89c9
License: LGPLv2+
8a89c9
8a89c9
Source0: https://github.com/nfont/librtas/archive/v%{version}.tar.gz
8a89c9
8a89c9
BuildRequires: autoconf
8a89c9
BuildRequires: libtool
8a89c9
BuildRequires: make
8a89c9
8a89c9
Patch0:  librtas-2.0.1-libversion.patch
8a89c9
Patch1:  librtas-2.0.2-coverity.patch
8a89c9
8a89c9
ExclusiveArch: %{power64}
8a89c9
8a89c9
%description
8a89c9
The librtas shared library provides userspace with an interface
8a89c9
through which certain RTAS calls can be made.  The library uses
8a89c9
either of the RTAS User Module or the RTAS system call to direct
8a89c9
the kernel in making these calls.
8a89c9
8a89c9
The librtasevent shared library provides users with a set of
8a89c9
definitions and common routines useful in parsing and dumping
8a89c9
the contents of RTAS events.
8a89c9
8a89c9
%package devel
8a89c9
Summary:  C header files for development with librtas
8a89c9
Requires: %{name}%{?_isa} = %{version}-%{release}
8a89c9
8a89c9
%description devel
8a89c9
The librtas-devel packages contains the header files necessary for
8a89c9
developing programs using librtas.
8a89c9
8a89c9
%prep
8a89c9
%autosetup -p1
8a89c9
8a89c9
%build
8a89c9
./autogen.sh
8a89c9
%configure --disable-silent-rules --disable-static
8a89c9
%make_build
8a89c9
8a89c9
%install
8a89c9
%make_install
8a89c9
find %{buildroot} -name '*.la' -exec rm -f {} ';'
8a89c9
rm -f  %{buildroot}/%{_docdir}/librtas/*
8a89c9
8a89c9
%post -p /sbin/ldconfig
8a89c9
8a89c9
%postun -p /sbin/ldconfig
8a89c9
8a89c9
%files
8a89c9
%{!?_licensedir:%global license %%doc}
8a89c9
%license COPYING.LESSER
8a89c9
%doc README Changelog
8a89c9
%{_libdir}/librtas.so.*
8a89c9
%{_libdir}/librtasevent.so.*
8a89c9
8a89c9
%files devel
8a89c9
%{_libdir}/librtas.so
8a89c9
%{_libdir}/librtasevent.so
8a89c9
%{_libdir}/pkgconfig/librtas.pc
8a89c9
%{_includedir}/librtas.h
8a89c9
%{_includedir}/librtasevent.h
8a89c9
%{_includedir}/librtasevent_v4.h
8a89c9
%{_includedir}/librtasevent_v6.h
8a89c9
8a89c9
%changelog
8a89c9
* Wed Feb 09 2022 Than Ngo <than@redhat.com> - 2.0.2-14
8a89c9
- Resolves: #2039517, add librtas-devel to compose
8a89c9
8a89c9
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.2-13
8a89c9
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
8a89c9
  Related: rhbz#1991688
8a89c9
8a89c9
* Mon May 10 2021 Than Ngo <than@redhat.com> - 2.0.2-12
8a89c9
- Resolves: #1958942, fix license tag
8a89c9
8a89c9
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.2-11
8a89c9
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
8a89c9
8a89c9
* Fri Mar 26 2021 Than Ngo <than@redhat.com> - 2.0.2-10
8a89c9
- clean up librtas by using rtas_copy
8a89c9
8a89c9
* Thu Mar 25 2021 Than Ngo <than@redhat.com> - 2.0.2-9
8a89c9
- Undo ExclusiveArch
8a89c9
8a89c9
* Thu Mar 25 2021 Than Ngo <than@redhat.com> - 2.0.2-8
8a89c9
- Resolves: #1938786, coverity issues
8a89c9
8a89c9
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8a89c9
8a89c9
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8a89c9
8a89c9
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8a89c9
8a89c9
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8a89c9
8a89c9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8a89c9
8a89c9
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8a89c9
8a89c9
* Fri Jul 06 2018 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.0.2-1
8a89c9
- Rebase to 2.0.2
8a89c9
8a89c9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8a89c9
8a89c9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8a89c9
8a89c9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8a89c9
8a89c9
* Tue Apr 04 2017 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.0.1-1
8a89c9
- Rebase to 2.0.1
8a89c9
8a89c9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8a89c9
8a89c9
* Mon Jul 11 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.0-2
8a89c9
- Package cleanup, update URLs
8a89c9
- Use %%license
8a89c9
8a89c9
* Wed Apr 06 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.0.0-1
8a89c9
- Update to upstream release 2.0.0
8a89c9
- do-not-enable-debug-message patch is available in this release
8a89c9
8a89c9
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.4.0-2
8a89c9
- Do not enable debug message by default
8a89c9
8a89c9
* Fri Mar 11 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.4.0-1
8a89c9
- Update to latest upstream 1.4.0
8a89c9
- License change from CPL to LGPL
8a89c9
8a89c9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-2
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8a89c9
8a89c9
* Mon Nov 16 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.3.14
8a89c9
- Update to latest upstream 1.3.14
8a89c9
8a89c9
* Fri Jul 03 2015 Jakub Čajka - 1.3.13-3
8a89c9
- Fix byteswapping see http://sourceforge.net/p/librtas/code/ci/4e46c718f42bf05e797c7fcfdd6cfc2a21fb4c91/
8a89c9
8a89c9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.13-2
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8a89c9
8a89c9
* Mon Nov 03 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.13
8a89c9
- Update to latest upstream 1.3.13
8a89c9
8a89c9
* Mon Sep 22 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.12
8a89c9
- Update to latest upstream 1.3.12
8a89c9
8a89c9
* Fri Aug 01 2014 Brent Baude <bbaude@redhat.com> - 1.3.9-6
8a89c9
- NVR bump for Fedora 21 build on merged koji
8a89c9
8a89c9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-5
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8a89c9
8a89c9
* Mon May 26 2014 Jakub Čajka <jcajka@redhat.com> 1.3.9-4
8a89c9
- Spec file clean up
8a89c9
8a89c9
* Fri Mar 07 2014 Karsten Hopp <karsten@redhat.com> 1.3.9-3
8a89c9
- fix CFLAGS
8a89c9
8a89c9
* Thu Mar 06 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.9-2
8a89c9
- Disable "-Werror=format-security" gcc option
8a89c9
8a89c9
* Tue Mar 04 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.9
8a89c9
- Update to latest upstream 1.3.9
8a89c9
8a89c9
* Wed Oct 09 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.3.8-3
8a89c9
- Add ppc64le architecture
8a89c9
8a89c9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-2
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8a89c9
8a89c9
* Thu May 16 2013 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.8
8a89c9
- Update to latest upstream 1.3.8
8a89c9
8a89c9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-4
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8a89c9
8a89c9
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-3
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8a89c9
8a89c9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8a89c9
8a89c9
* Thu Aug 11 2011 Jiri Skala <jskala@redhat.com> 1.3.6-1
8a89c9
- update to latest upstream 1.3.6
8a89c9
8a89c9
* Mon Aug 08 2011 Jiri Skala <jskala@redhat.com> 1.3.5-1
8a89c9
- update to latest upstream 1.3.5
8a89c9
8a89c9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8a89c9
8a89c9
* Sat Sep 11 2010 Parag Nemade <paragn AT fedoraproject.org> 2.30.3-3
8a89c9
- Merge-review cleanup (#226059)
8a89c9
8a89c9
* Mon Sep 21 2009 Roman Rakus <rrakus@redhat.com> - 1.3.4-1
8a89c9
- Upstream release 1.3.4
8a89c9
8a89c9
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-5
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8a89c9
8a89c9
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-4
8a89c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8a89c9
8a89c9
* Fri Feb 08 2008 David Cantrell <dcantrell@redhat.com> - 1.3.3-3
8a89c9
- Rebuild for gcc-4.3
8a89c9
8a89c9
* Tue Dec 18 2007 David Cantrell <dcantrell@redhat.com> - 1.3.3-2
8a89c9
- Spec cleanups
8a89c9
8a89c9
* Tue Dec 18 2007 David Cantrell <dcantrell@redhat.com> - 1.3.3-1
8a89c9
- Upgraded to librtas-1.3.3 (#253522)
8a89c9
8a89c9
* Mon Sep 10 2007 David Cantrell <dcantrell@redhat.com> - 1.3.2-1
8a89c9
- Upgraded to librtas-1.3.2
8a89c9
- Cleaned up spec file to conform to Fedora packaging guidelines
8a89c9
8a89c9
* Tue Aug 21 2007 David Cantrell <dcantrell@redhat.com> - 1.2.4-4
8a89c9
- Rebuild
8a89c9
8a89c9
* Sat Mar 31 2007 David Woodhouse <dwmw2@redhat.com> - 1.2.4-3
8a89c9
- Install libraries into /usr/lib64 on PPC64.
8a89c9
8a89c9
* Tue Aug 01 2006 Paul Nasrat <pnasrat@redhat.com> - 1.2.4-2
8a89c9
- Backport syscall fix from upstream 
8a89c9
8a89c9
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.2.2
8a89c9
- rebuild
8a89c9
8a89c9
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.2.1
8a89c9
- bump again for double-long bug on ppc(64)
8a89c9
8a89c9
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.2
8a89c9
- rebuilt for new gcc4.1 snapshot and glibc changes
8a89c9
8a89c9
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
8a89c9
- rebuilt
8a89c9
8a89c9
* Thu Nov 03 2005 Paul Nasrat <pnasrat@redhat.com> 1.2.4-1
8a89c9
- Update to latest version
8a89c9
8a89c9
* Thu Nov 03 2005 Paul Nasrat <pnasrat@redhat.com> 1.2.2-1
8a89c9
- Initial release