]> git.pld-linux.org Git - packages/irqbalance.git/blobdiff - irqbalance.spec
- up to 0.55
[packages/irqbalance.git] / irqbalance.spec
index 11cfa881658f7f98e7f17a7f96228930a0f430fb..675ad602b7591a1a8db5ac8bba7906b99e384964 100644 (file)
@@ -1,37 +1,49 @@
 Summary:       Balancing of IRQs between multiple CPUs
 Summary(pl):   Rozdzielanie IRQ pomiêdzy wiele procesorów
 Name:          irqbalance
-Version:       0.10
+Version:       0.55
 Release:       1
-License:       OSL v1.1
+License:       GPL
 Group:         Applications/System
-Source0:       http://people.redhat.com/arjanv/irqbalance/%{name}-%{version}.tar.gz
-# Source0-md5: aa22849eb4f3735c983adc9612f65003
+Source0:       http://www.irqbalance.org/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 9f6b314ff1fdc14173abeb40592d4edf
 Source1:       %{name}.init
 Patch0:                %{name}-opt.patch
+Patch1:                %{name}-pie.patch
+# due to -fpie
+URL:           http://www.irqbalance.org/
+BuildRequires: glib2-devel
+BuildRequires: gcc >= 5:3.4
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: xorg-util-gccmakedep
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Balancing of IRQs between multiple CPUs.
+irqbalance is a daemon that evenly distributes IRQ load across
+multiple CPUs for enhanced performance.
 
 %description -l pl
-Narzêdzie do rozdzielania przerwañ IRQ pomiêdzy wiele procesorów.
+Narzêdzie do rozdzielania przerwañ IRQ pomiêdzy wiele procesorów
+w celu zwiêkszenia wydajno¶ci systemu.
 
 %prep
-%setup -q -n %{name}
-%patch -p1
+%setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-%{__make} %{?debug:debug} \
+%{__make} \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}"
+       OPT="%{rpmcflags}%{?debug: debug.c -DDEBUG}" \
+       LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
 
 install %{name} $RPM_BUILD_ROOT%{_sbindir}
-install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
 %clean
@@ -39,23 +51,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add irqbalance
-if [ -f /var/lock/subsys/irqbalance ]; then
-        /etc/rc.d/init.d/irqbalance restart 1>&2
-else
-        echo "Run \"/etc/rc.d/init.d/irqbalance start\" to start irqbalance daemon."
-fi
+%service irqbalance restart "irqbalance daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/irqbalance ]; then
-                /etc/rc.d/init.d/irqbalance stop 1>&2
-        fi
-        /sbin/chkconfig --del irqbalance
+       %service irqbalance stop
+       /sbin/chkconfig --del irqbalance
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc Changelog TODO
 %attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man1/*
 %attr(754,root,root) /etc/rc.d/init.d/irqbalance
This page took 0.03506 seconds and 4 git commands to generate.