/[packages]/cauldron/kernel-tmb/current/SPECS/kernel-tmb.spec
ViewVC logotype

Diff of /cauldron/kernel-tmb/current/SPECS/kernel-tmb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 174468 by tmb, Wed Nov 30 17:47:21 2011 UTC revision 196339 by tmb, Sun Jan 15 04:21:57 2012 UTC
# Line 2  Line 2 
2  # *tmb* series kernels now use kernel.org versioning  # *tmb* series kernels now use kernel.org versioning
3  #  #
4  %define kernelversion   3  %define kernelversion   3
5  %define patchlevel      1  %define patchlevel      2
6  # sublevel is now used for -stable patches  # sublevel is now used for -stable patches
7  %define sublevel        4  %define sublevel        1
8    
9  # Package release  # Package release
10  %define mgarel          2  %define mgarel          1
11    
12  # kernel Makefile extraversion is substituted by  # kernel Makefile extraversion is substituted by
13  # kpatch/kgit wich are either 0 (empty), rc (kpatch), git (kgit)  # kpatch/kgit wich are either 0 (empty), rc (kpatch), git (kgit)
# Line 223  input and output, etc. Line 223  input and output, etc.
223  %define requires1       mkinitrd >= 6.0.92-12  %define requires1       mkinitrd >= 6.0.92-12
224  %define requires2       bootloader-utils >= 1.12-1  %define requires2       bootloader-utils >= 1.12-1
225  %define requires3       sysfsutils >= 1.3.0-1 module-init-tools >= 3.6-10  %define requires3       sysfsutils >= 1.3.0-1 module-init-tools >= 3.6-10
226  %define requires4       kernel-firmware >= 20100217-1  %define requires4       kernel-firmware >= 20111229-1
227    
228  %define kprovides       %{kname} = %{kverrel}, kernel = %{tar_ver}, drbd-api = 88  %define kprovides       %{kname} = %{kverrel}, kernel = %{tar_ver}, drbd-api = 88
229    
 BuildRoot:              %{_tmppath}/%{kname}-%{kversion}-%{_arch}-build  
 %define buildroot       %{_tmppath}/%{kname}-%{kversion}-%{_arch}-build  
230  Autoreqprov:            no  Autoreqprov:            no
231  BuildRequires:          gcc >= 4.0.1-5 module-init-tools >= 3.2-0.pre8.2  BuildRequires:          gcc >= 4.0.1-5 module-init-tools >= 3.2-0.pre8.2
232    
# Line 304  latest %{kname}-%{1}-devel installed... Line 302  latest %{kname}-%{1}-devel installed...
302  %endif                                                  \  %endif                                                  \
303                                                          \                                                          \
304  %post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \  %post -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-post \
305    %posttrans -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-posttrans \
306  %preun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-preun \  %preun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-preun \
307  %postun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-postun \  %postun -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1}-postun \
308                                                          \                                                          \
# Line 314  latest %{kname}-%{1}-devel installed... Line 313  latest %{kname}-%{1}-devel installed...
313                                                          \                                                          \
314  %files -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1} \  %files -n %{kname}-%{1}-%{buildrel} -f kernel_files.%{1} \
315  %files -n %{kname}-%{1}-latest                          \  %files -n %{kname}-%{1}-latest                          \
 %defattr(-,root,root)                                   \  
316                                                          \                                                          \
317  %if %build_devel                                        \  %if %build_devel                                        \
318  %files -n %{kname}-%{1}-devel-%{buildrel} -f kernel_devel_files.%{1} \  %files -n %{kname}-%{1}-devel-%{buildrel} -f kernel_devel_files.%{1} \
319  %files -n %{kname}-%{1}-devel-latest                    \  %files -n %{kname}-%{1}-devel-latest                    \
 %defattr(-,root,root)                                   \  
320  %endif  %endif
321    
322    
# Line 328  latest %{kname}-%{1}-devel installed... Line 325  latest %{kname}-%{1}-devel installed...
325  #  #
326  %ifarch %{ix86}  %ifarch %{ix86}
327  %if %build_desktop586  %if %build_desktop586
328  %define summary_desktop586 Linux kernel for desktop use with i586 & 4GB RAM  %define summary_desktop586 Linux kernel for desktop use with i586 and up to 4GB RAM
329  %define info_desktop586 This kernel is compiled for desktop use, single or \  %define info_desktop586 This kernel is compiled for desktop use, single or \
330  multiple i586 processor(s)/core(s) and less than 4GB RAM, using full \  multiple i586 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \
331  preempt, BFS cpu scheduler and cfq i/o scheduler. \  detected, if you need/want to use all 4GB or more, install %{kname}-server),\
332     using full preempt, BFS cpu scheduler and cfq i/o scheduler. \
333  This kernel relies on in-kernel smp alternatives to switch between up & smp \  This kernel relies on in-kernel smp alternatives to switch between up & smp \
334  mode depending on detected hardware. To force the kernel to boot in single \  mode depending on detected hardware. To force the kernel to boot in single \
335  processor mode, use the "nosmp" boot parameter.  processor mode, use the "nosmp" boot parameter.
# Line 344  processor mode, use the "nosmp" boot par Line 342  processor mode, use the "nosmp" boot par
342  #  #
343  %if %build_desktop  %if %build_desktop
344  %ifarch %{ix86}  %ifarch %{ix86}
345  %define summary_desktop Linux Kernel for desktop use with i686 & 4GB RAM  %define summary_desktop Linux Kernel for desktop use with i686 and up to 4GB RAM
346  %define info_desktop This kernel is compiled for desktop use, single or \  %define info_desktop This kernel is compiled for desktop use, single or \
347  multiple i686 processor(s)/core(s) and less than 4GB RAM, using full \  multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \
348  preempt, BFS cpu scheduler and cfq i/o scheduler. \  detected, if you need/want to use all 4GB or more, install %{kname}-server), \
349    using full preempt, BFS cpu scheduler and cfq i/o scheduler. \
350  This kernel relies on in-kernel smp alternatives to switch between up & smp \  This kernel relies on in-kernel smp alternatives to switch between up & smp \
351  mode depending on detected hardware. To force the kernel to boot in single \  mode depending on detected hardware. To force the kernel to boot in single \
352  processor mode, use the "nosmp" boot parameter.  processor mode, use the "nosmp" boot parameter.
# Line 368  processor mode, use the "nosmp" boot par Line 367  processor mode, use the "nosmp" boot par
367  #  #
368  %if %build_laptop  %if %build_laptop
369  %ifarch %{ix86}  %ifarch %{ix86}
370  %define summary_laptop Linux kernel for laptop use with i686-up/smp-4GB  %define summary_laptop Linux kernel for laptop use with i686 and up to 4GB
371  %define info_laptop This kernel is compiled for laptop use, single or \  %define info_laptop This kernel is compiled for laptop use, single or \
372  multiple i686 processor(s)/core(s) and less than 4GB RAM, using HZ_250 \  multiple i686 processor(s)/core(s) and less than 4GB RAM (usually 3-3.5GB \
373  to save battery, voluntary preempt, BFS cpu scheduler, cfq i/o scheduler \  detected, if you need/want to use all 4GB or more, install %{kname}-server), \
374  and some other laptop-specific optimizations. If you want to sacrifice \  using HZ_250 to save battery, voluntary preempt, BFS cpu scheduler, \
375  battery life for performance, you better use the %{kname}-desktop. \  cfq i/o scheduler and some other laptop-specific optimizations. \
376    If you want to sacrifice battery life for performance, you better use the \
377    %{kname}-desktop. \
378  This kernel relies on in-kernel smp alternatives to switch between up & smp \  This kernel relies on in-kernel smp alternatives to switch between up & smp \
379  mode depending on detected hardware. To force the kernel to boot in single \  mode depending on detected hardware. To force the kernel to boot in single \
380  processor mode, use the "nosmp" boot parameter. \  processor mode, use the "nosmp" boot parameter. \
# Line 674  SaveDevel() { Line 675  SaveDevel() {
675          # add acpica header files, needed for fglrx build          # add acpica header files, needed for fglrx build
676          cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/          cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/
677    
678          for i in alpha arm arm26 avr32 blackfin cris frv h8300 ia64 microblaze mips m32r m68k \          for i in alpha arm arm26 avr32 blackfin cris frv h8300 hexagon ia64 microblaze mips m32r m68k \
679                   m68knommu mn10300 openrisc parisc powerpc ppc s390 sh sh64 score sparc tile \                   m68knommu mn10300 openrisc parisc powerpc ppc s390 sh sh64 score sparc tile \
680                   unicore32 v850 xtensa; do                   unicore32 v850 xtensa; do
681                  rm -rf $TempDevelRoot/arch/$i                  rm -rf $TempDevelRoot/arch/$i
# Line 703  SaveDevel() { Line 704  SaveDevel() {
704    
705  ### Create the kernel_devel_files.*  ### Create the kernel_devel_files.*
706  cat > $kernel_devel_files <<EOF  cat > $kernel_devel_files <<EOF
 %defattr(-,root,root)  
707  %dir $DevelRoot  %dir $DevelRoot
708  %dir $DevelRoot/arch  %dir $DevelRoot/arch
709  %dir $DevelRoot/include  %dir $DevelRoot/include
# Line 730  $DevelRoot/include/keys Line 730  $DevelRoot/include/keys
730  $DevelRoot/include/linux  $DevelRoot/include/linux
731  $DevelRoot/include/math-emu  $DevelRoot/include/math-emu
732  $DevelRoot/include/media  $DevelRoot/include/media
733    $DevelRoot/include/misc
734  $DevelRoot/include/mtd  $DevelRoot/include/mtd
735  $DevelRoot/include/net  $DevelRoot/include/net
736  $DevelRoot/include/pcmcia  $DevelRoot/include/pcmcia
# Line 794  CreateFiles() { Line 795  CreateFiles() {
795    
796  ### Create the kernel_files.*  ### Create the kernel_files.*
797  cat > $kernel_files <<EOF  cat > $kernel_files <<EOF
 %defattr(-,root,root)  
798  %{_bootdir}/System.map-%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}  %{_bootdir}/System.map-%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}
799  %{_bootdir}/config-%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}  %{_bootdir}/config-%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}
800  %{_bootdir}/vmlinuz-%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}  %{_bootdir}/vmlinuz-%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}
# Line 836  fi Line 836  fi
836  %endif  %endif
837  EOF  EOF
838    
839    ### Create kernel Posttran script
840    cat > $kernel_files-posttrans <<EOF
841    if [ -x /usr/sbin/dkms_autoinstaller -a -d /usr/src/%{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel} ]; then
842        /usr/sbin/dkms_autoinstaller start %{kversion}-%{ktag}-$kernel_flavour-%{buildrpmrel}
843    fi
844    EOF
845    
846  ### Create kernel Preun script on the fly  ### Create kernel Preun script on the fly
847  cat > $kernel_files-preun <<EOF  cat > $kernel_files-preun <<EOF
# Line 954  chmod -R a+rX %{target_source} Line 960  chmod -R a+rX %{target_source}
960    
961  # we remove all the source files that we don't ship  # we remove all the source files that we don't ship
962  # first architecture files  # first architecture files
963  for i in alpha arm arm26 avr32 blackfin cris frv h8300 ia64 microblaze mips m32r m68k \  for i in alpha arm arm26 avr32 blackfin cris frv h8300 hexagon ia64 microblaze mips m32r m68k \
964           m68knommu mn10300 openrisc parisc powerpc ppc s390 sh sh64 score sparc tile \           m68knommu mn10300 openrisc parisc powerpc ppc s390 sh sh64 score sparc tile \
965           v850 xtensa unicore32; do           v850 xtensa unicore32; do
966          rm -rf %{target_source}/arch/$i          rm -rf %{target_source}/arch/$i
# Line 990  done Line 996  done
996  popd  popd
997    
998    
 ###  
 ### clean  
 ###  
 %clean  
 rm -rf %{buildroot}  
   
   
999  # We don't want to remove this, the whole reason of its existence is to be  # We don't want to remove this, the whole reason of its existence is to be
1000  # able to do several rpm --short-circuit -bi for testing install  # able to do several rpm --short-circuit -bi for testing install
1001  # phase without repeating compilation phase  # phase without repeating compilation phase
# Line 1007  rm -rf %{buildroot} Line 1006  rm -rf %{buildroot}
1006  ###  ###
1007  %if %build_source  %if %build_source
1008  %files -n %{kname}-source-%{buildrel}  %files -n %{kname}-source-%{buildrel}
 %defattr(-,root,root)  
1009  %dir %{_kerneldir}  %dir %{_kerneldir}
1010  %dir %{_kerneldir}/arch  %dir %{_kerneldir}/arch
1011  %dir %{_kerneldir}/include  %dir %{_kerneldir}/include
# Line 1032  rm -rf %{buildroot} Line 1030  rm -rf %{buildroot}
1030  %{_kerneldir}/include/linux  %{_kerneldir}/include/linux
1031  %{_kerneldir}/include/math-emu  %{_kerneldir}/include/math-emu
1032  %{_kerneldir}/include/media  %{_kerneldir}/include/media
1033    %{_kerneldir}/include/misc
1034  %{_kerneldir}/include/mtd  %{_kerneldir}/include/mtd
1035  %{_kerneldir}/include/net  %{_kerneldir}/include/net
1036  %{_kerneldir}/include/pcmcia  %{_kerneldir}/include/pcmcia
# Line 1068  rm -rf %{buildroot} Line 1067  rm -rf %{buildroot}
1067  %doc README.kernel-%{ktag}-sources  %doc README.kernel-%{ktag}-sources
1068    
1069  %files -n %{kname}-source-latest  %files -n %{kname}-source-latest
 %defattr(-,root,root)  
1070  %endif  %endif
1071    
1072  %if %build_doc  %if %build_doc
1073  %files -n %{kname}-doc  %files -n %{kname}-doc
 %defattr(-,root,root)  
1074  %doc linux-%{tar_ver}/Documentation/*  %doc linux-%{tar_ver}/Documentation/*
1075  %endif  %endif
1076    
1077  %changelog  %changelog
1078    * Sun Jan 15 2012 Thomas Backlund <tmb@mandriva.org> 3.2.1-1.mga2
1079    - update to 3.2.1
1080    
1081    * Thu Jan  5 2012 Thomas Backlund <tmb@mandriva.org> 3.2.0-1.mga2
1082    - update to 3.2
1083    - add patches:
1084        * FU02: fix unionfs build with 3.2 series kernels
1085        * MB13: fix ndiswrapper build with 3.2 series kernels
1086    - update patches:
1087        * CK01: BFS scheduler 0.416
1088    - rediff patches:
1089        * DP11, MB02, NI11, NI16, Source2
1090    - drop patches:
1091        * FB01: btrfs fix, merged
1092    - update filelists and defconfigs
1093    
1094    * Thu Dec 22 2011 Thomas Backlund <tmb@mandriva.org> 3.1.6-1.mga2
1095    - update to 3.1.6
1096    - drop patch DS01 (merged)
1097    - trigger dkms build in posttrans so modules get built at kernel install
1098      instead of at boot (speeds up boot time with new kernel)
1099    - update desktop(586) & laptop summaries and descriptions to point out that
1100      only 3-3.5GB RAM is detected on 32bit, and that server kernel is needed to
1101      fully support 4GB or more
1102    - switch transparent hugepages from on by default to madvise (only enabled
1103      for apps that requests it), as it fixes desktop freeze when accessing
1104      slow media such as usb (thanks to fbui/mdv mail on @cooker ml).
1105    
1106    * Fri Dec  9 2011 Thomas Backlund <tmb@mandriva.org> 3.1.5-1.mga2
1107    - update to 3.1.5
1108    - drop merged patches:
1109        * DG01-DG06, FX01-FX06
1110    - add patch:
1111        * DS01: ALSA: hda/realtek - Fix Oops in alc_mux_select()
1112    - clean spec: drop buildroot and defattr
1113    
1114    * Tue Dec  6 2011 Thomas Backlund <tmb@mandriva.org> 3.1.4-3.mga2
1115    - fix patch NI12: IFWLOG: fix return value of checkentry
1116      (not properly modified in 2.6.35+ patch, blino, #3594)
1117    - rebuild with GCC-4.6.2
1118    
1119  * Wed Nov 30 2011 Thomas Backlund <tmb@mandriva.org> 3.1.4-2.mga2  * Wed Nov 30 2011 Thomas Backlund <tmb@mandriva.org> 3.1.4-2.mga2
1120  - update patch:  - update patch:
1121    * CK01: upstream 3.1.0-ck2 including BFS 0.415    * CK01: upstream 3.1.0-ck2 including BFS 0.415

Legend:
Removed from v.174468  
changed lines
  Added in v.196339

  ViewVC Help
Powered by ViewVC 1.1.30