2.4.18 kernel.spec - mała poprawka
Pepe
pepe w apollo.net.pl
Wto, 28 Maj 2002, 12:57:10 CEST
Wywaliło załącznik. Oto on.
kernel.spec.diff
-- ciach --
--- rpm/SPECS/kernel.spec.orig Tue May 28 09:55:58 2002
+++ rpm/SPECS/kernel.spec Tue May 28 10:43:10 2002
@@ -918,7 +918,9 @@
install -d $RPM_BUILD_ROOT%{_prefix}/{include,src/linux-%{version}}
KERNEL_BUILD_DIR=`pwd`
-cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT
+%{!?_without_up:%{!?_without_smp:cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT}}
+%{?_without_up:%{!?_without_smp:cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT}}
+%{!?_without_up:%{?_without_smp:cp -a $KERNEL_BUILD_DIR-installed/* $RPM_BUILD_ROOT}}
for i in "" smp ; do
if [ -e $RPM_BUILD_ROOT/lib/modules/%{version}-%{release}$i ] ; then
@@ -1167,6 +1169,28 @@
/sbin/depmod -a -F /boot/System.map-%{version}-%{release}smp %{version}-%{release}smp
%if %{?_without_up:0}%{!?_without_up:1}
+%files pcmcia-cs
+%defattr(644,root,root,755)
+%ifarch %{ix86}
+/lib/modules/%{version}-%{release}/pcmcia
+%endif
+/lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
+/lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
+/lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
+/lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
+/lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o
+/lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o
+%ifnarch ppc
+/lib/modules/%{version}-%{release}/kernel/drivers/ide/ide-cs.o
+/lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o
+/lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o
+/lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o
+%endif
+
+%files drm
+%defattr(644,root,root,755)
+/lib/modules/%{version}-%{release}/kernel/drivers/char/drm
+
%files
%defattr(644,root,root,755)
%ifarch alpha sparc ppc
@@ -1195,30 +1219,8 @@
#%if !%{test_build}
-%files pcmcia-cs
-%defattr(644,root,root,755)
-%ifarch %{ix86}
-/lib/modules/%{version}-%{release}/pcmcia
-%endif
-/lib/modules/%{version}-%{release}/kernel/drivers/pcmcia
-/lib/modules/%{version}-%{release}/kernel/drivers/net/pcmcia
-/lib/modules/%{version}-%{release}/kernel/drivers/scsi/pcmcia
-/lib/modules/%{version}-%{release}/kernel/drivers/char/pcmcia
-/lib/modules/%{version}-%{release}/kernel/drivers/net/wireless/*_cs.o
-/lib/modules/%{version}-%{release}/kernel/drivers/parport/*_cs.o
-%ifnarch ppc
-/lib/modules/%{version}-%{release}/kernel/drivers/ide/ide-cs.o
-/lib/modules/%{version}-%{release}/kernel/drivers/isdn/avmb1/avm_cs.o
-/lib/modules/%{version}-%{release}/kernel/drivers/isdn/hisax/*_cs.o
-/lib/modules/%{version}-%{release}/kernel/drivers/telephony/*_pcmcia.o
-%endif
-
-%files drm
-%defattr(644,root,root,755)
-/lib/modules/%{version}-%{release}/kernel/drivers/char/drm
-
%if %{?_without_smp:0}%{!?_without_smp:1}
-%files -n kernel-smp-pcmcia-cs
+%files smp-pcmcia-cs
%defattr(644,root,root,755)
%ifarch %{ix86}
/lib/modules/%{version}-%{release}smp/pcmcia
@@ -1236,7 +1238,7 @@
/lib/modules/%{version}-%{release}smp/kernel/drivers/telephony/*_pcmcia.o
%endif
-%files -n kernel-smp-drm
+%files smp-drm
%defattr(644,root,root,755)
/lib/modules/%{version}-%{release}smp/kernel/drivers/char/drm
-- ciach --
--
Pepe
Więcej informacji o liście dyskusyjnej pld-kernel