forked from ibm-power-utilities/librtas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
librtas.spec.in
82 lines (67 loc) · 2.03 KB
/
librtas.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%define name librtas
%define version @PACKAGE_VERSION@
%define sover 2
%define release 1
Summary: Libraries to provide access to RTAS calls and RTAS events.
Name: %{name}
Version: %{version}
Release: %{release}
License: GNU Lesser General Public License (LGPL)
Source: %{name}-%{version}.tar.gz
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExclusiveArch: ppc ppc64 ppc64le
%description
The librtas shared library provides user space 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: C header files for development with librtas
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The librtas-devel package contains the header files necessary for
developing programs using librtas.
%package static
Summary: Static verions of the librtas libraries
Group: Development/Libraries
%description static
The librtas-static package contains the static libraries which
correspond to the librtas and librtas-devel packages.
%prep
%setup -q
%build
%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%post
ldconfig
%postun
ldconfig
%files
%defattr(-, root, root)
%{_docdir}/%{name}/COPYING.LESSER
%{_docdir}/%{name}/README
%{_libdir}/librtas.so.%{sover}
%{_libdir}/librtas.so.%{version}
%{_libdir}/librtasevent.so.%{version}
%{_libdir}/librtasevent.so.%{sover}
%{_libdir}/librtas.la
%{_libdir}/librtasevent.la
%files devel
%{_libdir}/librtas.so
%{_libdir}/librtasevent.so
%{_includedir}/librtas.h
%{_includedir}/librtasevent.h
%{_includedir}/librtasevent_v4.h
%{_includedir}/librtasevent_v6.h
%{_libdir}/pkgconfig/librtas.pc
%files static
%{_libdir}/librtas.a
%{_libdir}/librtasevent.a