]>
Commit | Line | Data |
---|---|---|
712a88de | 1 | Summary: Simple NUMA policy support |
8e36b36b | 2 | Summary(pl.UTF-8): Prosta obsługa polityk NUMA |
712a88de | 3 | Name: numactl |
c3fcb2e4 JB |
4 | Version: 2.0.11 |
5 | Release: 1 | |
712a88de JB |
6 | License: LGPL v2.1 (library), GPL v2 (utilities) |
7 | Group: Applications/System | |
3a4021f3 | 8 | Source0: ftp://oss.sgi.com/www/projects/libnuma/download/%{name}-%{version}.tar.gz |
c3fcb2e4 | 9 | # Source0-md5: d3bc88b7ddb9f06d60898f4816ae9127 |
3a4021f3 | 10 | URL: http://oss.sgi.com/projects/libnuma/ |
712a88de JB |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
14 | Simple NUMA policy support. It consists of a numactl program to run | |
15 | other programs with a specific NUMA policy and a libnuma to do | |
16 | allocations with NUMA policy in applications. | |
17 | ||
86a6b857 JR |
18 | %description -l pl.UTF-8 |
19 | Prosta obsługa polityk NUMA. Pakiet zawiera program numactl do | |
20 | uruchamiania innych programów z określoną polityką NUMA oraz libnuma | |
21 | do przydzielania pamięci z polityką NUMA w aplikacjach. | |
712a88de JB |
22 | |
23 | %package devel | |
24 | Summary: Header files for libnuma library | |
8e36b36b | 25 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnuma |
712a88de JB |
26 | Group: Development/Libraries |
27 | Requires: %{name} = %{version}-%{release} | |
28 | ||
29 | %description devel | |
30 | Header files for libnuma library. | |
31 | ||
86a6b857 JR |
32 | %description devel -l pl.UTF-8 |
33 | Pliki nagłówkowe biblioteki libnuma. | |
712a88de | 34 | |
27fd96c5 JB |
35 | %package static |
36 | Summary: Static libnuma library | |
37 | Summary(pl.UTF-8): Statyczna biblioteka libnuma | |
38 | Group: Development/Libraries | |
39 | Requires: %{name}-devel = %{version}-%{release} | |
40 | ||
41 | %description static | |
42 | Static libnuma library. | |
43 | ||
44 | %description static -l pl.UTF-8 | |
45 | Statyczna biblioteka libnuma. | |
46 | ||
712a88de JB |
47 | %prep |
48 | %setup -q | |
49 | ||
712a88de | 50 | %build |
a58a6351 JB |
51 | %configure \ |
52 | --disable-silent-rules | |
53 | ||
54 | %{__make} | |
712a88de JB |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
712a88de JB |
58 | |
59 | %{__make} install \ | |
a58a6351 | 60 | DESTDIR=$RPM_BUILD_ROOT |
712a88de | 61 | |
a58a6351 JB |
62 | # not needed (library without external dependencies) |
63 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnuma.la | |
64 | # in man-pages (it's Linux syscall, although API is defined in numaif.h) | |
65 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man2/move_pages.2 | |
712a88de JB |
66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
a58a6351 JB |
70 | %pretrans |
71 | # it used to be library itself, now it's SONAME symlink | |
72 | if [ -f %{_libdir}/libnuma.so.1 ]; then | |
73 | rm -f %{_libdir}/libnuma.so.1 | |
74 | fi | |
75 | ||
712a88de JB |
76 | %post -p /sbin/ldconfig |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc CHANGES README TODO | |
4edb3907 JB |
82 | %attr(755,root,root) %{_bindir}/memhog |
83 | %attr(755,root,root) %{_bindir}/migratepages | |
3a4021f3 | 84 | %attr(755,root,root) %{_bindir}/migspeed |
712a88de JB |
85 | %attr(755,root,root) %{_bindir}/numactl |
86 | %attr(755,root,root) %{_bindir}/numademo | |
87 | %attr(755,root,root) %{_bindir}/numastat | |
a58a6351 JB |
88 | %attr(755,root,root) %{_libdir}/libnuma.so.*.*.* |
89 | %attr(755,root,root) %ghost %{_libdir}/libnuma.so.1 | |
70260b98 | 90 | %{_mandir}/man8/migratepages.8* |
3a4021f3 | 91 | %{_mandir}/man8/migspeed.8* |
712a88de | 92 | %{_mandir}/man8/numactl.8* |
6c4067a2 | 93 | %{_mandir}/man8/numastat.8* |
712a88de JB |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libnuma.so | |
98 | %{_includedir}/numa*.h | |
27fd96c5 JB |
99 | %{_mandir}/man3/numa.3* |
100 | ||
101 | %files static | |
102 | %defattr(644,root,root,755) | |
103 | %{_libdir}/libnuma.a |