%define majversion %(echo %version | cut -d. -f 1-2) Name: libplpa Version: 1.3.2 Release: 2mamba Summary: Portable Linux Processor Affinity (PLPA) Library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.open-mpi.org/projects/plpa/ Source: http://www.open-mpi.org/software/plpa/v%{majversion}/downloads/plpa-%{version}.tar.bz2 License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The Portable Linux Processor Affinity (PLPA) Library (pronounced "pli-pa") has evolved over time to provide the following capabilities: * a stable API on Linux for processor affinity (Linux has provided three different API signatures over time) * a simple API that translates between Linux processor ID and (socket ID, core ID) tuples, and allows querying processor topology information on supported platforms %package devel Summary: Portable Linux Processor Affinity (PLPA) Development Library Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel The Portable Linux Processor Affinity (PLPA) Library (pronounced "pli-pa") has evolved over time to provide the following capabilities: * a stable API on Linux for processor affinity (Linux has provided three different API signatures over time) * a simple API that translates between Linux processor ID and (socket ID, core ID) tuples, and allows querying processor topology information on supported platforms This package contains libraries and header files need for development. %package -n plpa Summary: Portable Linux Processor Affinity (PLPA) Group: System/Tools Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n plpa The Portable Linux Processor Affinity (PLPA) provide a command-line executable (plpa-taskset) that provides all the same functionality as the venerable taskset command, and several extensions, including the ability to bind processes to specific (socket, core) tuples on supported platforms. %prep %setup -q -n plpa-%{version} %build %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall rm -f %{buildroot}%{_libdir}/libplpa.la %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libplpa.so.* %files devel %defattr(-,root,root) %{_includedir}/plpa.h %{_libdir}/libplpa.so %files -n plpa %defattr(-,root,root) %{_bindir}/plpa-info %{_bindir}/plpa-taskset %doc AUTHORS LICENSE NEWS README %changelog * Mon Apr 04 2011 Stefano Cotta Ramusino 1.3.2-2mamba - removed static subpackage * Thu Dec 23 2010 gil 1.3.2-1mamba - package created by autospec