]> git.pld-linux.org Git - packages/numactl.git/blame - numactl.spec
- rel 2; drop move_pages.2 - is in man-pages
[packages/numactl.git] / numactl.spec
CommitLineData
712a88de 1Summary: Simple NUMA policy support
8e36b36b 2Summary(pl.UTF-8): Prosta obsługa polityk NUMA
712a88de 3Name: numactl
2d6a684d 4Version: 2.0.6
53b6fdde 5Release: 2
712a88de
JB
6License: LGPL v2.1 (library), GPL v2 (utilities)
7Group: Applications/System
3a4021f3 8Source0: ftp://oss.sgi.com/www/projects/libnuma/download/%{name}-%{version}.tar.gz
2d6a684d 9# Source0-md5: e84a6351312ec786a4b7978fea76f92b
3a4021f3 10URL: http://oss.sgi.com/projects/libnuma/
712a88de
JB
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14Simple NUMA policy support. It consists of a numactl program to run
15other programs with a specific NUMA policy and a libnuma to do
16allocations with NUMA policy in applications.
17
86a6b857
JR
18%description -l pl.UTF-8
19Prosta obsługa polityk NUMA. Pakiet zawiera program numactl do
20uruchamiania innych programów z określoną polityką NUMA oraz libnuma
21do przydzielania pamięci z polityką NUMA w aplikacjach.
712a88de
JB
22
23%package devel
24Summary: Header files for libnuma library
8e36b36b 25Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnuma
712a88de
JB
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28
29%description devel
30Header files for libnuma library.
31
86a6b857
JR
32%description devel -l pl.UTF-8
33Pliki nagłówkowe biblioteki libnuma.
712a88de 34
27fd96c5
JB
35%package static
36Summary: Static libnuma library
37Summary(pl.UTF-8): Statyczna biblioteka libnuma
38Group: Development/Libraries
39Requires: %{name}-devel = %{version}-%{release}
40
41%description static
42Static libnuma library.
43
44%description static -l pl.UTF-8
45Statyczna biblioteka libnuma.
46
712a88de
JB
47%prep
48%setup -q
49
712a88de
JB
50%build
51%{__make} \
e911599b
JB
52 CC="%{__cc}" \
53 OPT_CFLAGS="%{rpmcflags} -Wall"
712a88de
JB
54
55%install
56rm -rf $RPM_BUILD_ROOT
712a88de
JB
57
58%{__make} install \
59 prefix=$RPM_BUILD_ROOT%{_prefix} \
60 libdir=$RPM_BUILD_ROOT%{_libdir}
61
62# missing in make install
27fd96c5
JB
63install numamon $RPM_BUILD_ROOT%{_bindir}
64install move_pages.2 $RPM_BUILD_ROOT%{_mandir}/man2
3a4021f3 65install {migratepages,migspeed,numastat}.8 $RPM_BUILD_ROOT%{_mandir}/man8
712a88de
JB
66
67for f in `find $RPM_BUILD_ROOT%{_mandir}/man3 -type l` ; do
2d6a684d 68 %{__rm} $f
712a88de
JB
69 echo '.so numa.3' > $f
70done
71
53b6fdde
AM
72# is in man-pages
73rm $RPM_BUILD_ROOT%{_mandir}/man2/move_pages.2*
74
712a88de
JB
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%post -p /sbin/ldconfig
79%postun -p /sbin/ldconfig
80
81%files
82%defattr(644,root,root,755)
83%doc CHANGES README TODO
4edb3907
JB
84%attr(755,root,root) %{_bindir}/memhog
85%attr(755,root,root) %{_bindir}/migratepages
3a4021f3 86%attr(755,root,root) %{_bindir}/migspeed
712a88de
JB
87%attr(755,root,root) %{_bindir}/numactl
88%attr(755,root,root) %{_bindir}/numademo
3a4021f3 89%attr(755,root,root) %{_bindir}/numamon
712a88de 90%attr(755,root,root) %{_bindir}/numastat
27fd96c5 91%attr(755,root,root) %{_libdir}/libnuma.so.1
70260b98 92%{_mandir}/man8/migratepages.8*
3a4021f3 93%{_mandir}/man8/migspeed.8*
712a88de 94%{_mandir}/man8/numactl.8*
6c4067a2 95%{_mandir}/man8/numastat.8*
712a88de
JB
96
97%files devel
98%defattr(644,root,root,755)
99%attr(755,root,root) %{_libdir}/libnuma.so
100%{_includedir}/numa*.h
27fd96c5
JB
101%{_mandir}/man3/numa.3*
102
103%files static
104%defattr(644,root,root,755)
105%{_libdir}/libnuma.a
This page took 0.044191 seconds and 4 git commands to generate.