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