Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
irqbalance
irqbalance.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File irqbalance.spec of Package irqbalance
# # spec file for package irqbalance # # Copyright (c) 2012 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/ # Name: irqbalance Version: 1.0.3 Release: 0 Summary: Balance IRQs on SMP Machines License: GPL-2.0+ Group: System/Daemons Url: http://code.google.com/p/irqbalance Source: %{name}-%{version}.tar.bz2 Source2: irq_balancer Source3: sysconfig.irqbalance BuildRequires: libnuma-devel BuildRequires: libtool BuildRequires: pkgconfig(glib-2.0) Requires(pre): coreutils Requires(pre): fillup BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: ia64 x86_64 ppc64 ppc %sparc %if 0%{?suse_version} >= 1130 BuildRequires: libcap-ng-devel %endif %if 0%{?suse_version} > 1140 BuildRequires: systemd %{?systemd_requires} %define has_systemd 1 %endif %description irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from being used for all IRQs. %prep %setup -q %build ./autogen.sh %configure make LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie" cp %{SOURCE3} . gzip irqbalance.1 %install mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sysconfdir}/init.d install -m 0755 irqbalance %{buildroot}%{_sbindir} install -m 0755 $RPM_SOURCE_DIR/irq_balancer %{buildroot}%{_sysconfdir}/init.d ln -s /etc/init.d/irq_balancer %{buildroot}%{_sbindir}/rcirq_balancer mkdir -p %{buildroot}%{_mandir}/man1 install -m 0644 irqbalance.1.gz %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/ install -m 0644 sysconfig.irqbalance %{buildroot}%{_localstatedir}/adm/fillup-templates/ %if 0%{?has_systemd} install -D -m 0644 misc/irqbalance.service %{buildroot}%{_unitdir}/irqbalance.service %endif %pre %if 0%{?has_systemd} %service_add_pre irqbalance.service %endif %post %fillup_only %if 0%{?has_systemd} %service_add_post irqbalance.service %endif %preun %stop_on_removal irq_balancer %if 0%{?has_systemd} %service_del_preun irqbalance.service %endif %postun %restart_on_update irq_balancer %insserv_cleanup %if 0%{?has_systemd} %service_del_postun irqbalance.service %endif %files %defattr(-,root,root,-) %{_sbindir}/irqbalance %{_sysconfdir}/init.d/irq_balancer %if 0%{?has_systemd} %{_unitdir}/irqbalance.service %endif %{_sbindir}/rcirq_balancer %{_mandir}/man1/irqbalance.1.gz %{_localstatedir}/adm/fillup-templates/sysconfig.irqbalance %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor