File plpa.spec of Package plpa

# vim: set ts=4 sw=4 et:

Name:           plpa
Version:        1.3.2
%define soname 0
Release:        0
Summary:        Portable Linux Processor Affinity
Source:         http://www.open-mpi.org/software/plpa/v1.3/downloads/plpa-%{version}.tar.bz2
URL:            http://www.open-mpi.org/software/plpa/v1.3/
Group:          System/Monitoring
License:        BSD (revised)
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  gcc make glibc-devel
BuildRequires:  autoconf automake libtool
Requires:       libplpa%{soname} = %{version}
Provides:       plpa-tools = %{version}-%{release}

%description
This is the Portable Linux Processor Affinity (PLPA) package (pronounced
"pli-pa"). The PLPA has evolved over time to provide the following
capabilities:

1. Provide a stable API on Linux for processor affinity (Linux has
   provided three different API signatures over time).
2. Provide a simple API that translates between Linux processor ID and
   (socket ID, core ID) tuples, and allows querying processor topology
   information on supported platforms.
3. Provide a command-line executable (plpa-taskset(1)) that provides
   all the same functionality as the venerable taskset(1) command, and
   several extensions, including the ability to bind processes to
   specific (socket, core) tuples on supported platforms.

%package -n libplpa%{soname}
Summary:        Portable Linux Processor Affinity Library
Group:          System/Libraries

%description -n libplpa%{soname}
This is the Portable Linux Processor Affinity (PLPA) package (pronounced
"pli-pa"). The PLPA has evolved over time to provide the following
capabilities:

1. Provide a stable API on Linux for processor affinity (Linux has
   provided three different API signatures over time).
2. Provide a simple API that translates between Linux processor ID and
   (socket ID, core ID) tuples, and allows querying processor topology
   information on supported platforms.
3. Provide a command-line executable (plpa-taskset(1)) that provides
   all the same functionality as the venerable taskset(1) command, and
   several extensions, including the ability to bind processes to
   specific (socket, core) tuples on supported platforms.

%package -n libplpa-devel
Summary:        Portable Linux Processor Affinity Library
Group:          Development/Libraries/C and C++
Requires:       libplpa%{soname} = %{version}

%description -n libplpa-devel
This is the Portable Linux Processor Affinity (PLPA) package (pronounced
"pli-pa").

This subpackage contains the development environment files to build
applications against libplpa.

%prep
%setup -q

%build
%configure
%__make %{?_smp_flags}

%install
%makeinstall

%__rm "%{buildroot}%{_libdir}"/*.la

%post   -n libplpa%{soname} -p /sbin/ldconfig
%postun -n libplpa%{soname} -p /sbin/ldconfig

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc AUTHORS LICENSE NEWS README
%{_bindir}/plpa-info
%{_bindir}/plpa-taskset

%files -n libplpa%{soname}
%defattr(-,root,root)
%doc AUTHORS LICENSE NEWS README
%{_libdir}/libplpa.so.%{soname}
%{_libdir}/libplpa.so.%{soname}.*.*

%files -n libplpa-devel
%defattr(-,root,root)
%{_includedir}/plpa.h
%{_libdir}/libplpa.so

%changelog
openSUSE Build Service is sponsored by