SPECS (Titanium): kernel-desktop.spec - add notifier - rel 3
shadzik
shadzik at pld-linux.org
Thu Mar 19 17:29:40 CET 2009
Author: shadzik Date: Thu Mar 19 16:29:40 2009 GMT
Module: SPECS Tag: Titanium
---- Log message:
- add notifier
- rel 3
---- Files affected:
SPECS:
kernel-desktop.spec (1.204.2.5 -> 1.204.2.6)
---- Diffs:
================================================================
Index: SPECS/kernel-desktop.spec
diff -u SPECS/kernel-desktop.spec:1.204.2.5 SPECS/kernel-desktop.spec:1.204.2.6
--- SPECS/kernel-desktop.spec:1.204.2.5 Tue Mar 17 13:23:03 2009
+++ SPECS/kernel-desktop.spec Thu Mar 19 17:29:34 2009
@@ -6,6 +6,7 @@
%bcond_with verbose # verbose build (V=1)
%bcond_with pae # build PAE (HIGHMEM64G) support on uniprocessor
%bcond_with laptop # build for laptops - 100Hz
+%bcond_without notifier # don't build kernelupdatenotifier
%{?debug:%define with_verbose 1}
@@ -16,7 +17,7 @@
%define _basever 2.6.27
%define _postver .20
-%define _rel 2
+%define _rel 3
%define _enable_debug_packages 0
@@ -49,6 +50,8 @@
Source1: http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
# Source1-md5: 3edf81af0b4a48fc3a7c27101d11d67f
%endif
+Source200: kernelupdatenotifier-1.0.tar.gz
+# Source200-md5: dc77fa4e127948a8c305edc5189f9bf0
Source2: kernel-desktop-autoconf.h
Source3: kernel-desktop-config.h
@@ -66,6 +69,10 @@
#### End patches ##
URL: http://www.kernel.org/
+%if %{with notifier}
+BuildRequires: kde4-kdelibs-devel
+BuildRequires: kde4-kdebase-workspace-devel
+%endif
BuildRequires: binutils >= 3:2.18
BuildRequires: /sbin/depmod
BuildRequires: gcc >= 5:3.2
@@ -183,6 +190,17 @@
%{Features}
+%package kde4-notifier
+Summary: Kernel Update Notifier for KDE4
+Summary(pl.UTF-8): Powiadomienie o zaktualizowanym kernelu dla KDE4
+Group: X11/Application
+
+%description kde4-notifier
+Kernel Update Notifier for KDE4
+
+%description kde4-notifier -l pl.UTF-8
+Powiadomienie o zaktualizowanym kernelu dla KDE4
+
%package vmlinux
Summary: vmlinux - uncompressed kernel image
Summary(de.UTF-8): vmlinux - dekompressiertes Kernel Bild
@@ -381,7 +399,7 @@
/usr/src/linux/Documentation.
%prep
-%setup -q -n linux-%{_basever}
+%setup -q -n -a200 linux-%{_basever}
%if "%{_postver}" != "%{nil}"
%{__bzip2} -dc %{SOURCE1} | patch -p1 -s
@@ -406,6 +424,9 @@
find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
%build
+%if %{with notifier}
+%{__make} -f kernelupdatenotifier
+%endif
TuneUpConfigForIX86 () {
set -x
%ifarch %{ix86}
@@ -541,6 +562,12 @@
rm -rf $RPM_BUILD_ROOT
umask 022
+%if %{with notifier}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/apps/kernelupdatenotifier}
+install kernelupdatenotifier/*.notifyrc $RPM_BUILD_ROOT%{_datadir}/apps/kernelupdatenotifier/
+install kernelupdatenotifier/kernelupdatenotifier $RPM_BUILD_ROOT%{_bindir}
+%endif
+
export DEPMOD=%DepMod
install -d $RPM_BUILD_ROOT%{_kernelsrcdir}
@@ -634,6 +661,10 @@
elif [ -x /sbin/rc-boot ]; then
/sbin/rc-boot 1>&2 || :
fi
+if [ -x /usr/bin/kernelupdatenotifier ]; then
+ KDE4_USER=$(ps aux |grep kded4 |grep -v grep |cut -d" " -f1)
+ su - $KDE4_USER -c "/usr/bin/kernelupdatenotifier %{version}"
+fi
%post vmlinux
mv -f /boot/vmlinux-%{alt_kernel} /boot/vmlinux-%{alt_kernel}.old 2> /dev/null > /dev/null
@@ -739,6 +770,13 @@
%ghost /lib/modules/%{kernel_release}/source
%dir %{_sysconfdir}/modprobe.d/%{kernel_release}
+%if %{with notifier}
+%files kde4-notifier
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/kernelupdatenotifier
+%{_datadir}/kernelupdatenotifier
+%endif
+
%files vmlinux
%defattr(644,root,root,755)
/boot/vmlinux-%{kernel_release}
@@ -932,6 +970,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.204.2.6 2009/03/19 16:29:34 shadzik
+- add notifier
+- rel 3
+
Revision 1.204.2.5 2009/03/17 12:23:03 shadzik
- rel 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel-desktop.spec?r1=1.204.2.5&r2=1.204.2.6&f=u
More information about the pld-cvs-commit
mailing list