# # spec file for package numactl (Version 2.0.6) # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Url: http://oss.sgi.com/projects/libnuma/ Name: numactl License: GPLv2+ Summary: NUMA Policy Control Version: 2.0.6 Release: 2 %define origversion 2.0.6 AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: numactl-64bit %endif # Source: numactl-%{origversion}.tar.bz2 Source2: baselibs.conf Patch0: numactl_install_all_manpages Group: System/Management BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: ia64 x86_64 ppc64 ppc %sparc Requires: perl %description Control NUMA policy for individual processes. Offer libnuma for individual NUMA policy in applications. %package -n libnuma1 License: LGPLv2.1+ Summary: NUMA Policy Control Group: Development/Languages/C and C++ AutoReqProv: on %description -n libnuma1 Control NUMA policy for individual processes. Offer libnuma for individual NUMA policy in applications. %package -n libnuma-devel License: GPLv2+ Summary: NUMA Policy Control Group: Development/Languages/C and C++ AutoReqProv: on Requires: libnuma1 = %{version} %description -n libnuma-devel Control NUMA policy for individual processes. Offer libnuma for individual NUMA policy in applications. %prep %setup -q -n %{name}-%{origversion} %patch0 -p1 %build make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}" %install install -d -m 755 $RPM_BUILD_ROOT/usr/bin install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man3 install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man5 install -d -m 755 $RPM_BUILD_ROOT%{_libdir} install -d -m 755 $RPM_BUILD_ROOT/usr/include make prefix="%buildroot/%_prefix" libdir="%buildroot/%_libdir" install rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*a %clean rm -rf $RPM_BUILD_ROOT %post -n libnuma1 -p /sbin/ldconfig %postun -n libnuma1 -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/* %{_mandir}/man8/* %doc CHANGES %files -n libnuma1 %defattr(-,root,root) %{_libdir}/lib*so.* %files -n libnuma-devel %defattr(-,root,root) %doc %{_mandir}/man3/* %{_includedir}/* %{_libdir}/lib*so %changelog