librtas/librtas.spec
Marcus Meissner 5897227aa6 Accepting request 404975 from home:michel_mno:branches:devel:libraries:c_c++
- version update to 2.0.0 (bsc#981294)
  * SO version change from 1 -> 2
  * generate static libraries
  * minor fixes (see Changelog)

This is a merge of package from  SUSE:SLE-12-SP2:GA (and Leap 42.2)
and the doc split already present in this devel project.

OBS-URL: https://build.opensuse.org/request/show/404975
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librtas?expand=0&rev=39
2016-06-27 12:17:22 +00:00

114 lines
3.4 KiB
RPMSpec

#
# spec file for package librtas
#
# Copyright (c) 2016 SUSE LINUX 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/
#
%define sover 2
Name: librtas
Version: 2.0.0
Release: 0
Summary: Libraries to provide access to RTAS calls and RTAS events
License: LGPL-2.1+
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ppc ppc64 ppc64le
Url: https://github.com/nfont/librtas
Source0: %{name}-%{version}.tar.gz
Source1: baselibs.conf
Patch: librtas-failedmagic.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.
%package devel
Summary: Devel librtas files
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
%description devel
This package provides devel files of librtas
%package devel-static
Summary: Static librtas files
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
%description devel-static
This package provides devel files of librtas
%package -n %{name}%{sover}
Summary: Libraries to provide access to RTAS calls and RTAS events
Group: System/Libraries
%description -n %{name}%{sover}
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.
%prep
%setup -q
%patch
%build
make CFLAGS="%optflags -fPIC -g -I $PWD/librtasevent_src" LIB_DIR="%{_libdir}" %{?_smp_mflags}
%install
rm -rf doc/*/latex
make install DESTDIR=%buildroot LIB_DIR="%{_libdir}"
# documents are in -doc subpackage
rm -rf %buildroot/%_docdir
/sbin/ldconfig -n %buildroot%{_libdir}
chmod -x %{buildroot}%{_libdir}/*.a
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%defattr(-, root, root)
%doc COPYING.LESSER Changelog README
%{_libdir}/lib*.so.*
%files devel
%defattr(-, root, root)
%doc COPYING.LESSER
%{_libdir}/librtasevent.so
%{_libdir}/librtas.so
%{_includedir}/librtas.h
%{_includedir}/librtasevent.h
%{_includedir}/librtasevent_v4.h
%{_includedir}/librtasevent_v6.h
%files devel-static
%defattr(-,root,root)
%{_libdir}/librtas.a
%{_libdir}/librtasevent.a
%changelog