]> git.pld-linux.org Git - packages/hwloc.git/blob - hwloc.spec
- initial PLD release
[packages/hwloc.git] / hwloc.spec
1 Summary:        Portable Hardware Locality
2 Name:           hwloc
3 Version:        1.3
4 Release:        1
5 License:        BSD
6 Group:          Applications/System
7 Source0:        http://www.open-mpi.org/software/hwloc/v1.3/downloads/%{name}-%{version}.tar.bz2
8 # Source0-md5:  e3ba4029ff4956727431495b642d1afb
9 URL:            http://www.open-mpi.org/projects/hwloc/
10 BuildRequires:  cairo-devel
11 BuildRequires:  libxml2-devel
12 BuildRequires:  numactl-devel
13 BuildRequires:  pciutils-devel
14 BuildRequires:  xorg-lib-libX11-devel
15 BuildRequires:  xorg-proto-xproto-devel
16 Requires:       %{name}-libs = %{version}-%{release}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The Portable Hardware Locality (hwloc) software package provides a
21 portable abstraction (across OS, versions, architectures, ...) of the
22 hierarchical topology of modern architectures, including NUMA memory
23 nodes, sockets, shared caches, cores and simultaneous multithreading.
24 It also gathers various system attributes such as cache and memory
25 information. It primarily aims at helping applications with gathering
26 information about modern computing hardware so as to exploit it
27 accordingly and efficiently.
28
29 %package libs
30 Summary:        %{name} library
31 Group:          Libraries
32
33 %description libs
34 %{name} library.
35
36 %package devel
37 Summary:        Header files for %{name} library
38 Group:          Development/Libraries
39 Requires:       %{name}-libs = %{version}-%{release}
40
41 %description devel
42 Header files for %{name} library.
43
44 %prep
45 %setup -q
46
47 %build
48 %configure
49 %{__make} V=1
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %{__rm} %{_libdir}/lib%{name}.la
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post   libs -p /sbin/ldconfig
63 %postun libs -p /sbin/ldconfig
64
65 %files
66 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/%{name}-*
68 %attr(755,root,root) %{_bindir}/lstopo
69 %{_datadir}/%{name}
70 %{_mandir}/man1/%{name}-*.1*
71 %{_mandir}/man1/lstopo.1*
72 %{_mandir}/man7/%{name}.7*
73
74 %files libs
75 %defattr(644,root,root,755)
76 %{_pkgconfigdir}/%{name}.pc
77 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
78 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.4
79
80 %files devel
81 %defattr(644,root,root,755)
82 %doc doc/doxygen-doc/html doc/doxygen-doc/%{name}-*.pdf
83 %attr(755,root,root) %{_libdir}/lib%{name}.so
84 %{_includedir}/%{name}
85 %{_includedir}/%{name}.h
86 %{_mandir}/man3/HWLOC_*.3*
87 %{_mandir}/man3/hwloc_*.3*
88 %{_mandir}/man3/hwlocality_*.3*
This page took 0.061136 seconds and 3 git commands to generate.