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