-
Notifications
You must be signed in to change notification settings - Fork 9
/
paflib.spec
73 lines (58 loc) · 2.02 KB
/
paflib.spec
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
Name: paflib
Version: 0.1.3
Release: 4%{?dist}
Summary: Library for accessing Power Architecture Facilities
License: MIT
URL: https://github.com/paflib/paflib
Source0: https://github.com/paflib/paflib/archive/%{version}.tar.gz
ExclusiveArch: ppc %{power64}
BuildRequires: libtool
%package devel
Summary: Header files for paflib
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Contains header files for building with paflib.
%description
PAFLib is a IBM written library which exposes Power Architecture Facilities to
user space via an API. This includes the Data Stream Control Register Facility
(DSCR) and the Event-Based Branching facility (EBB). Linux kernel 3.9 has
exposed problem-state DSCR usage for ISA 2.06 (POWER7 – emulated) and ISA
2.07 (POWER8– in hardware). Linux 3.10 has exposed the EBB facility.
%prep
%setup -q -n %{name}-%{version}
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%exclude %{_libdir}/libpaf-dsc.la
%{_libdir}/libpaf-ebb.so.0.0.1
%{_libdir}/libpaf-dsc.so.0.0.1
%{_libdir}/libpaf-dsc.so.0
%{_libdir}/libpaf-ebb.so.0
%exclude %{_libdir}/libpaf-ebb.la
%doc COPYING README.md
%files devel
%{_libdir}/libpaf-dsc.so
%{_libdir}/libpaf-ebb.so
%dir %{_includedir}/paf
%{_includedir}/paf/dsc.h
%{_includedir}/paf/ebb.h
%{_mandir}/man3/libpaf-dsc.3*
%{_mandir}/man3/libpaf-ebb.3*
%changelog
* Mon Sep 15 2014 Rajalakshmi S <raji@linux.vnet.ibm.com> 0.1.3-4
- Move manual pages to devel package and remove Group tag
* Wed Sep 10 2014 Rajalakshmi S <raji@linux.vnet.ibm.com> 0.1-3
- Various spec file fixes
* Tue Sep 09 2014 Rajalakshmi S <raji@linux.vnet.ibm.com> 0.1-2
- Remove passing libdir and prefix to configure in spec file
- Remove RPM_BUILD_ROOT cleanup in install in spec file
* Tue Sep 09 2014 Rajalakshmi S <raji@linux.vnet.ibm.com> 0.1-1
- Fix builddir in spec-file
* Mon Sep 01 2014 Rajalakshmi S <raji@linux.vnet.ibm.com> 0.1-1
- Initial RPM release