%define ver_major 0 %define ver_minor 9 %define ver_patch 2 %define ver_majmin %{ver_major}.%{ver_minor} Name: hwloc Version: %{ver_majmin}.%{ver_patch} Release: 1%{?dist} Summary: Hardware Locality Library Group: System Environment/Libraries License: BSD URL: http://www.open-mpi.org/ Source0: %{url}/software/%{name}/v%{ver_majmin}/downloads/%{name}-%{version}.tar.bz2 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) # None yet #BuildRequires: libxml2 #Requires: %description The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information. It primarily aims at helping applications with gathering information about modern computing hardware so as to exploit it accordingly and efficiently. %package devel Summary: Hardware Locality development package Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development package for hwloc. %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} rm %{buildroot}/%{_libdir}/libhwloc.la %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc README AUTHORS COPYING NEWS %{_bindir}/hwloc-bind %{_bindir}/hwloc-distrib %{_bindir}/hwloc-info %{_bindir}/hwloc-ls %{_bindir}/hwloc-mask %{_bindir}/lstopo %{_libdir}/libhwloc.so.0 %{_libdir}/libhwloc.so.0.0.0 %dir %{_datarootdir}/%{name} %{_datarootdir}/%{name}/hwloc.dtd %{_mandir}/man1/hwloc-bind.1.gz %{_mandir}/man1/hwloc-distrib.1.gz %{_mandir}/man1/hwloc-info.1.gz %{_mandir}/man1/hwloc-ls.1.gz %{_mandir}/man1/hwloc-mask.1.gz %{_mandir}/man1/lstopo.1.gz %files devel %defattr(-,root,root,-) %{_includedir}/hwloc.h %dir %{_includedir}/hwloc %{_includedir}/hwloc/config.h %{_includedir}/hwloc/cpuset.h %{_includedir}/hwloc/glibc-sched.h %{_includedir}/hwloc/helper.h %{_includedir}/hwloc/linux-libnuma.h %{_includedir}/hwloc/linux.h %{_includedir}/hwloc/openfabrics-verbs.h %{_libdir}/pkgconfig/hwloc.pc %{_libdir}/libhwloc.so %changelog * Thu Nov 19 2009 tony@bakeyournoodle.com - 0.9.2-1 - Initial packaging