numactl/numactl.spec

130 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package numactl (Version 2.0.4.rc1)
#
# Copyright (c) 2010 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 ; GPLv2+
Summary: NUMA Policy Control
Version: 2.0.4.rc2
Release: 3
%define origversion 2.0.4-rc2
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: numactl-64bit
%endif
#
Source: numactl-%{origversion}.tar.bz2
Source2: baselibs.conf
Patch0: numactl_install_all_manpages
Patch1: numactl_fix_mem_corrup_numa_init.patch
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.
Authors:
--------
Andi Kleen (ak@suse.de)
Cliff Wickman (cpw@sgi.com)
%package -n libnuma1
License: GPLv2+
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.
Authors:
--------
Andi Kleen (ak@suse.de)
Cliff Wickman (cpw@sgi.com)
%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.
Authors:
--------
Andi Kleen (ak@suse.de)
Cliff Wickman (cpw@sgi.com)
%prep
%setup -n %{name}-%{origversion}
%patch0 -p1
%patch1 -p1
%build
make %{?jobs:-j%jobs} 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