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