2014-02-07 14:56:18 +00:00
|
|
|
|
#
|
2014-02-07 14:57:54 +00:00
|
|
|
|
# spec file for package paflib
|
2014-02-07 14:56:18 +00:00
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2014-02-07 14:57:54 +00:00
|
|
|
|
Name: paflib
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%define lname libpaflib0
|
2020-03-06 11:17:46 +00:00
|
|
|
|
Version: 0.3
|
2014-02-07 14:56:18 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Exposes Power Architecture Facilities to userspace via an API
|
|
|
|
|
License: MIT
|
2014-02-07 15:01:44 +00:00
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
2014-02-07 14:56:18 +00:00
|
|
|
|
Url: https://github.com/paflib
|
2014-02-07 15:01:44 +00:00
|
|
|
|
Source: paflib-%{version}.tar.bz2
|
2014-02-07 14:56:18 +00:00
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
ExclusiveArch: ppc64 ppc64le
|
2014-02-25 17:10:10 +00:00
|
|
|
|
Patch1: paflib.no_return_nonvoid_conftest.patch
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PAFLib is a IBM written library which exposes Power Architecture Facilities
|
|
|
|
|
to userspace 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.
|
|
|
|
|
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%package -n %lname
|
2014-02-07 14:56:18 +00:00
|
|
|
|
Summary: Exposes Power Architecture Facilities to userspace via an API
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%description -n %lname
|
2014-02-07 14:56:18 +00:00
|
|
|
|
PAFLib is a IBM written library which exposes Power Architecture Facilities
|
|
|
|
|
to userspace 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.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for PAFLib
|
2014-02-07 15:01:44 +00:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-02-07 15:12:23 +00:00
|
|
|
|
Requires: %lname = %version
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Contains header files for building with PAFLib.
|
|
|
|
|
|
|
|
|
|
%prep
|
2014-02-07 14:57:54 +00:00
|
|
|
|
%setup -q
|
2014-02-25 17:10:10 +00:00
|
|
|
|
%patch1 -p1
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./autogen.sh
|
|
|
|
|
# wants to configure in a separate build directory
|
2014-02-07 15:01:44 +00:00
|
|
|
|
mkdir paflib-build
|
|
|
|
|
cd paflib-build
|
2014-02-07 15:03:37 +00:00
|
|
|
|
%define _configure ../configure
|
|
|
|
|
%configure
|
2014-02-07 15:01:44 +00:00
|
|
|
|
make %{?_smp_mflags}
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2014-02-07 15:01:44 +00:00
|
|
|
|
cd paflib-build
|
|
|
|
|
make install DESTDIR="%buildroot"
|
2014-02-07 15:12:23 +00:00
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2020-03-06 11:17:46 +00:00
|
|
|
|
rm -f "%buildroot/%{_datadir}/doc/libpaf"/ChangeLog.md
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%files -n %lname
|
2014-02-07 14:56:18 +00:00
|
|
|
|
%defattr(-,root,root)
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%{_libdir}/libpaf*.so.0*
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYING
|
|
|
|
|
%{_includedir}/paf
|
|
|
|
|
%{_libdir}/libpaf*.a
|
|
|
|
|
%{_libdir}/libpaf*.so
|
2014-02-07 15:12:23 +00:00
|
|
|
|
%{_mandir}/man3/*
|
2014-02-07 14:56:18 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|