]>
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 |
3a4021f3 | 4 | Version: 2.0.3 |
712a88de JB |
5 | Release: 1 |
6 | License: LGPL v2.1 (library), GPL v2 (utilities) | |
7 | Group: Applications/System | |
3a4021f3 TP |
8 | Source0: ftp://oss.sgi.com/www/projects/libnuma/download/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 8e4fb249e5f719c25d7f433964fb9220 | |
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 JB |
34 | |
35 | %prep | |
36 | %setup -q | |
37 | ||
e911599b | 38 | rm -f *.o |
712a88de JB |
39 | |
40 | %build | |
41 | %{__make} \ | |
e911599b JB |
42 | CC="%{__cc}" \ |
43 | OPT_CFLAGS="%{rpmcflags} -Wall" | |
712a88de JB |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
6c4067a2 | 47 | install -d $RPM_BUILD_ROOT%{_mandir}/man5 |
712a88de JB |
48 | |
49 | %{__make} install \ | |
50 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
51 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
52 | ||
3a4021f3 TP |
53 | install migspeed numamon $RPM_BUILD_ROOT%{_bindir} |
54 | install move_pages.2 $RPM_BUILD_ROOT%{_mandir}/man2 | |
712a88de | 55 | # missing in make install |
3a4021f3 | 56 | install {migratepages,migspeed,numastat}.8 $RPM_BUILD_ROOT%{_mandir}/man8 |
712a88de JB |
57 | |
58 | for f in `find $RPM_BUILD_ROOT%{_mandir}/man3 -type l` ; do | |
59 | rm -f $f | |
60 | echo '.so numa.3' > $f | |
61 | done | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post -p /sbin/ldconfig | |
67 | %postun -p /sbin/ldconfig | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc CHANGES README TODO | |
4edb3907 JB |
72 | %attr(755,root,root) %{_bindir}/memhog |
73 | %attr(755,root,root) %{_bindir}/migratepages | |
3a4021f3 | 74 | %attr(755,root,root) %{_bindir}/migspeed |
712a88de JB |
75 | %attr(755,root,root) %{_bindir}/numactl |
76 | %attr(755,root,root) %{_bindir}/numademo | |
3a4021f3 | 77 | %attr(755,root,root) %{_bindir}/numamon |
712a88de | 78 | %attr(755,root,root) %{_bindir}/numastat |
712a88de | 79 | %attr(755,root,root) %{_libdir}/libnuma.so.* |
70260b98 | 80 | %{_mandir}/man8/migratepages.8* |
3a4021f3 | 81 | %{_mandir}/man8/migspeed.8* |
712a88de | 82 | %{_mandir}/man8/numactl.8* |
6c4067a2 | 83 | %{_mandir}/man8/numastat.8* |
712a88de JB |
84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_libdir}/libnuma.so | |
88 | %{_includedir}/numa*.h | |
3a4021f3 | 89 | %{_mandir}/man2/* |
712a88de | 90 | %{_mandir}/man3/* |