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

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

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

revision 413044 by tmb, Sun May 12 11:43:15 2013 UTC revision 549320 by tmb, Mon Nov 4 00:08:24 2013 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      8  %define patchlevel      12
6  # sublevel is now used for -stable patches  # sublevel is now used for -stable patches
7  %define sublevel        13  %define sublevel        0
8    # extstable is for extended stable patches
9    %define extstable       0
10    
11  # Package release  # Package release
12  %define mgarel          1  %define mgarel          1
# Line 38  Line 40 
40  %define fakerel         %mkrel 1  %define fakerel         %mkrel 1
41    
42  # version defines  # version defines
43    %if %extstable
44    %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}.%{extstable}
45    %else
46  %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}  %define kversion        %{kernelversion}.%{patchlevel}.%{sublevel}
47    %endif
48  %define kverrel         %{kversion}-%{rpmrel}  %define kverrel         %{kversion}-%{rpmrel}
49    
50  # When we are using a pre/rc patch, the tarball is a sublevel -1  # When we are using a pre/rc patch, the tarball is a sublevel -1
# Line 156  URL:           http://www.kernel.org Line 162  URL:           http://www.kernel.org
162  # Sources  # Sources
163  #  #
164  ### This is for full SRC RPM  ### This is for full SRC RPM
165  Source0:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-%{tar_ver}.tar.xz  Source0:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-3.11.tar.xz
166  Source1:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-%{tar_ver}.tar.sign  Source1:        ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/linux-3.11.tar.sign
167  ### This is for stripped SRC RPM  ### This is for stripped SRC RPM
168  %if %build_nosrc  %if %build_nosrc
169  NoSource: 0  NoSource: 0
# Line 202  Patch1:                ftp://ftp.kernel.org/pub/linux/ Line 208  Patch1:                ftp://ftp.kernel.org/pub/linux/
208  Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kernelversion}.%{patchlevel}.%{prev_sublevel}.sign  Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kernelversion}.%{patchlevel}.%{prev_sublevel}.sign
209  %endif  %endif
210  %else  %else
211  Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kversion}.xz  Patch1:         ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kernelversion}.%{patchlevel}.%{sublevel}.xz
212  Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kversion}.sign  Source10:       ftp://ftp.kernel.org/pub/linux/kernel/v%{kernelversion}.%{patchlevel}/patch-%{kernelversion}.%{patchlevel}.%{sublevel}.sign
213  %endif  %endif
214  %endif  %endif
215    %if %extstable
216    Patch3:         patch-%{kernelversion}.%{patchlevel}.%{sublevel}.%{extstable}.patch
217    %endif
218    
219  #END  #END
220  ####################################################################  ####################################################################
# Line 218  of the operating system:  memory allocat Line 227  of the operating system:  memory allocat
227  input and output, etc.  input and output, etc.
228    
229  ### Global Requires/Provides  ### Global Requires/Provides
230  %define requires1       dracut >= 017-9  %define requires1       bootloader-utils >= 1.16-1
231  %define requires2       bootloader-utils >= 1.12-1  %define requires2       dracut >= 033-1
232  %define requires3       sysfsutils >= 1.3.0-1 kmod >= 7-6  %define requires3       kmod >= 12-2
233  %define requires4       kernel-firmware >= 20111229-1  %define requires4       sysfsutils >= 2.1.0-16
234    %define requires5       kernel-firmware >= 20130624-1
235  %define kprovides       %{kname} = %{kverrel}, kernel = %{tar_ver}, drbd-api = 88  
236    %define kprovides1      %{kname} = %{kverrel}
237    %define kprovides2      kernel = %{tar_ver}
238    %define kprovides3      alsa = 1.0.26
239    %define kprovides_server drbd-api = 88
240    # conflict dkms packages that dont support kernel-3.12
241    %define kconflicts1     dkms-broadcom-wl < 6.30.223.141-1
242    %define kconflicts1     dkms-fglrx < 13.200.16-1
243    %define kconflicts2     dkms-nvidia-current < 319.60-2
244    %define kconflicts3     dkms-nvidia304 < 304.108-2
245    %define kconflicts4     dkms-nvidia173 < 173.14.38-1
246    # (tmb) nvidia96xx does not support this kernel or x11-server-1.13
247    %define kconflicts5     dkms-nvidia96xx <= 96.43.23
248    %define kconflicts6     dmms-xtables-addons < 2.3-1
249    # (tmb) conflict too old lvm2 rules to make upgrades work (tv, mga #9536)
250    %define kconflicts7     lvm2 < 2.02.98-3
251    # (tmb) conflict too old drakxtools-backend to avoid bogus root=/dev/ (#9536)
252    %define kconflicts8     drakxtools-backend < 15.37-1
253    # (tmb) conflict older btrfs-progs to get the new in same transaction and in initrd
254    %define kconflicts9     btrfs-progs < 0.20-0.rc1.20130607.2
255    # (tmb) conflict too old plymouth (#10128)
256    %define kconflicts10    plymouth < 0.8.6.1-8
257    # (tmb) conflict too old radeon-firmware to get the uvd firmwares in initrd
258    %define kconflicts11    radeon-firmware < 20130626-1
259    
260  Autoreqprov:            no  Autoreqprov:            no
261  BuildRequires:          gcc >= 4.0.1-5 kmod >= 7-6  BuildRequires:          gcc >= 4.0.1-5 kmod >= 12-2 bc
262    
263  %description  %description
264  %common_description_kernel  %common_description_kernel
# Line 239  BuildRequires:                 gcc >= 4.0.1-5 kmod >= Line 271  BuildRequires:                 gcc >= 4.0.1-5 kmod >=
271  %package -n %{kname}-%{1}-%{buildrel}                   \  %package -n %{kname}-%{1}-%{buildrel}                   \
272  Version:        %{fakever}                              \  Version:        %{fakever}                              \
273  Release:        %{fakerel}                              \  Release:        %{fakerel}                              \
274  Provides:       %kprovides                              \  Summary:        %{expand:%{summary_%(echo %{1})}}       \
275  Provides:       should-restart = system                 \  Group:          System/Kernel and hardware              \
276  Requires(pre):  %requires1 %requires2 %requires3 %requires4 \  Provides:       %{kname}-%{1}                           \
277    Provides:       %kprovides1 %kprovides2 %kprovides3     \
278    %{expand:%%{?kprovides_%{1}:Provides: %{kprovides_%{1}}}} \
279    Provides:       should-restart = system                 \
280    Requires(pre):  %requires1 %requires2 %requires3 %requires4 \
281    Requires:       %requires2 %requires5                   \
282    Conflicts:      %kconflicts1 %kconflicts2 %kconflicts3  \
283    Conflicts:      %kconflicts4 %kconflicts5 %kconflicts6  \
284    Conflicts:      %kconflicts7 %kconflicts8 %kconflicts9  \
285    Conflicts:      %kconflicts10 %kconflicts11             \
286    Suggests:       crda iw cpupower                        \
287    Suggests:       %{kname}-%{1}-latest                    \
288  %ifarch %{ix86}                                         \  %ifarch %{ix86}                                         \
289  Conflicts:      arch(x86_64)                            \  Conflicts:      arch(x86_64)                            \
290  %endif                                                  \  %endif                                                  \
 Summary:        %{expand:%{summary_%(echo %{1})}}       \  
 Group:          System/Kernel and hardware              \  
291  %description -n %{kname}-%{1}-%{buildrel}               \  %description -n %{kname}-%{1}-%{buildrel}               \
292  %common_description_kernel %{expand:%{info_%(echo %{1})}} \  %common_description_kernel %{expand:%{info_%(echo %{1})}} \
293                                                          \                                                          \
# Line 254  Group:         System/Kernel and hardware              \ Line 295  Group:         System/Kernel and hardware              \
295  %package -n     %{kname}-%{1}-devel-%{buildrel}         \  %package -n     %{kname}-%{1}-devel-%{buildrel}         \
296  Version:        %{fakever}                              \  Version:        %{fakever}                              \
297  Release:        %{fakerel}                              \  Release:        %{fakerel}                              \
298    Summary:        The kernel-devel files for %{kname}-%{1}-%{buildrel} \
299    Group:          Development/Kernel                      \
300  Requires:       glibc-devel ncurses-devel make gcc perl \  Requires:       glibc-devel ncurses-devel make gcc perl \
301  %ifarch %{ix86}                                         \  %ifarch %{ix86}                                         \
302  Conflicts:      arch(x86_64)                            \  Conflicts:      arch(x86_64)                            \
303  %endif                                                  \  %endif                                                  \
 Summary:        The kernel-devel files for %{kname}-%{1}-%{buildrel} \  
 Group:          Development/Kernel                      \  
304  Provides:       kernel-devel = %{kverrel}               \  Provides:       kernel-devel = %{kverrel}               \
305    Suggests:       %{kname}-%{1}-devel-latest              \
306  %description -n %{kname}-%{1}-devel-%{buildrel}         \  %description -n %{kname}-%{1}-devel-%{buildrel}         \
307  This package contains the kernel-devel files that should be enough to build \  This package contains the kernel-devel files that should be enough to build \
308  3rdparty drivers against for use with %{kname}-%{1}-%{buildrel}. \  3rdparty drivers against for use with %{kname}-%{1}-%{buildrel}. \
# Line 544  cd %src_dir Line 586  cd %src_dir
586  %if %kgit  %if %kgit
587  %patch2 -p1  %patch2 -p1
588  %endif  %endif
589    %if %extstable
590    %patch3 -p1
591    %endif
592    
593  %{patches_dir}/scripts/apply_patches  %{patches_dir}/scripts/apply_patches
594    
# Line 596  PrepareKernel() { Line 641  PrepareKernel() {
641          fi          fi
642    
643          # make sure EXTRAVERSION says what we want it to say          # make sure EXTRAVERSION says what we want it to say
644            %if %extstable
645            LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = .%{extstable}-$extension/" Makefile
646            %else
647          LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile          LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile
648            %endif
649    
650          %smake oldconfig          %smake oldconfig
651  }  }
# Line 640  SaveDevel() { Line 689  SaveDevel() {
689                  cp -fR arch/x86/kernel/asm-offsets_{32,64}.c $TempDevelRoot/arch/x86/kernel/                  cp -fR arch/x86/kernel/asm-offsets_{32,64}.c $TempDevelRoot/arch/x86/kernel/
690                  cp -fR arch/x86/syscalls/syscall* $TempDevelRoot/arch/x86/syscalls/                  cp -fR arch/x86/syscalls/syscall* $TempDevelRoot/arch/x86/syscalls/
691                  cp -fR arch/x86/include $TempDevelRoot/arch/x86/                  cp -fR arch/x86/include $TempDevelRoot/arch/x86/
692                  cp -fR arch/x86/tools/relocs.c $TempDevelRoot/arch/x86/tools/                  cp -fR arch/x86/tools $TempDevelRoot/arch/x86/
693          %else          %else
694                  cp -fR arch/%{_arch}/kernel/asm-offsets.{c,s} $TempDevelRoot/arch/%{_arch}/kernel/                  cp -fR arch/%{_arch}/kernel/asm-offsets.{c,s} $TempDevelRoot/arch/%{_arch}/kernel/
695                  cp -fR arch/%{_arch}/include $TempDevelRoot/arch/%{_arch}/                  cp -fR arch/%{_arch}/include $TempDevelRoot/arch/%{_arch}/
# Line 659  SaveDevel() { Line 708  SaveDevel() {
708          # Needed for lirc_gpio (Anssi Hannula, #39004, #54907)          # Needed for lirc_gpio (Anssi Hannula, #39004, #54907)
709          cp -fR drivers/media/pci/bt8xx/bttv{,p}.h $TempDevelRoot/drivers/media/pci/bt8xx/          cp -fR drivers/media/pci/bt8xx/bttv{,p}.h $TempDevelRoot/drivers/media/pci/bt8xx/
710          cp -fR drivers/media/pci/bt8xx/bt848.h $TempDevelRoot/drivers/media/pci/bt8xx/          cp -fR drivers/media/pci/bt8xx/bt848.h $TempDevelRoot/drivers/media/pci/bt8xx/
711          cp -fR drivers/media/i2c/btcx-risc.h $TempDevelRoot/drivers/media/i2c/          cp -fR drivers/media/common/btcx-risc.h $TempDevelRoot/drivers/media/common/
712    
713          # Needed for external dvb tree (#41418)          # Needed for external dvb tree (#41418)
714          cp -fR drivers/media/dvb-core/*.h $TempDevelRoot/drivers/media/dvb-core/          cp -fR drivers/media/dvb-core/*.h $TempDevelRoot/drivers/media/dvb-core/
# Line 668  SaveDevel() { Line 717  SaveDevel() {
717          # add acpica header files, needed for fglrx build          # add acpica header files, needed for fglrx build
718          cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/          cp -fR drivers/acpi/acpica/*.h $TempDevelRoot/drivers/acpi/acpica/
719    
720          for i in alpha arm arm26 arm64 avr32 blackfin c6x cris frv h8300 hexagon ia64 \          for i in alpha arc arm arm26 arm64 avr32 blackfin c6x cris frv h8300 hexagon ia64 \
721                   microblaze mips m32r m68k m68knommu mn10300 openrisc parisc \                   microblaze mips m32r m68k m68knommu metag mn10300 openrisc parisc \
722                   powerpc ppc s390 sh sh64 score sparc tile unicore32 v850 xtensa; do                   powerpc ppc s390 sh sh64 score sparc tile unicore32 v850 xtensa; do
723                  rm -rf $TempDevelRoot/arch/$i                  rm -rf $TempDevelRoot/arch/$i
724          done          done
# Line 678  SaveDevel() { Line 727  SaveDevel() {
727                  rm -rf $TempDevelRoot/arch/x86                  rm -rf $TempDevelRoot/arch/x86
728          %endif          %endif
729    
730            rm -rf $TempDevelRoot/include/kvm/arm*
731    
732          # Clean the scripts tree, and make sure everything is ok (sanity check)          # Clean the scripts tree, and make sure everything is ok (sanity check)
733          # running prepare+scripts (tree was already "prepared" in build)          # running prepare+scripts (tree was already "prepared" in build)
734          pushd $TempDevelRoot >/dev/null          pushd $TempDevelRoot >/dev/null
# Line 719  $DevelRoot/include/clocksource Line 770  $DevelRoot/include/clocksource
770  $DevelRoot/include/config  $DevelRoot/include/config
771  $DevelRoot/include/crypto  $DevelRoot/include/crypto
772  $DevelRoot/include/drm  $DevelRoot/include/drm
773    $DevelRoot/include/dt-bindings
774  $DevelRoot/include/generated  $DevelRoot/include/generated
775  $DevelRoot/include/keys  $DevelRoot/include/keys
776  $DevelRoot/include/linux  $DevelRoot/include/linux
# Line 956  chmod -R a+rX %{target_source} Line 1008  chmod -R a+rX %{target_source}
1008    
1009  # we remove all the source files that we don't ship  # we remove all the source files that we don't ship
1010  # first architecture files  # first architecture files
1011  for i in alpha arm arm26 arm64 avr32 blackfin c6x cris frv h8300 hexagon ia64 \  for i in alpha arc arm arm26 arm64 avr32 blackfin c6x cris frv h8300 hexagon ia64 \
1012           microblaze mips m32r m68k m68knommu mn10300 openrisc parisc \           microblaze mips m32r m68k m68knommu metag mn10300 openrisc parisc \
1013           powerpc ppc s390 sh sh64 score sparc tile v850 xtensa unicore32; do           powerpc ppc s390 sh sh64 score sparc tile v850 xtensa unicore32; do
1014          rm -rf %{target_source}/arch/$i          rm -rf %{target_source}/arch/$i
1015  done  done
# Line 966  done Line 1018  done
1018          rm -rf %{target_source}/arch/x86          rm -rf %{target_source}/arch/x86
1019  %endif  %endif
1020    
1021    rm -rf %{target_source}/include/kvm/arm*
1022    
1023  # other misc files  # other misc files
1024  rm -f %{target_source}/{.config.old,.config.cmd,.mailmap,.missing-syscalls.d,arch/.gitignore}  rm -f %{target_source}/{.config.old,.config.cmd,.mailmap,.missing-syscalls.d,arch/.gitignore}
1025  rm -rf %{target_source}/.tmp_depmod/  rm -rf %{target_source}/.tmp_depmod/
# Line 1037  popd Line 1091  popd
1091  %{_kerneldir}/include/clocksource  %{_kerneldir}/include/clocksource
1092  %{_kerneldir}/include/crypto  %{_kerneldir}/include/crypto
1093  %{_kerneldir}/include/drm  %{_kerneldir}/include/drm
1094    %{_kerneldir}/include/dt-bindings
1095  %{_kerneldir}/include/keys  %{_kerneldir}/include/keys
1096  %{_kerneldir}/include/linux  %{_kerneldir}/include/linux
1097  %{_kerneldir}/include/math-emu  %{_kerneldir}/include/math-emu
# Line 1088  popd Line 1143  popd
1143  %endif  %endif
1144    
1145  %changelog  %changelog
1146    * Mon Nov  4 2013 Thomas Backlund <tmb@mageia.org> 3.12.0-1.mga4
1147    - update to 3.12 final
1148    
1149    * Mon Oct 14 2013 Thomas Backlund <tmb@mageia.org> 3.12.0-0.rc5.1.mga4
1150    - update to 3.12-rc5
1151    - drop patches:
1152      * DN40: bcma BCM43142 support (merged)
1153    - update patches:
1154      * FO01-FO09: overlayfs support
1155    - rediff patches:
1156      * NI10: netfilter IFWLOG support
1157    - add patches:
1158      * MB15: ndiswrapper buildfix for kernel 3.12
1159    - disable patches:
1160      * CK01: BFS scheduler (needs update to support 3.12)
1161      * FR01: reiser4 support (needs update to support 3.12)
1162      * KP01: TuxOnIce support (needs update to support 3.12)
1163    - update filelists
1164    - update defconfigs
1165    - update dkms conflicts
1166    
1167    * Thu Oct 3 2013 Thomas Backlund <tmb@mageia.org> 3.10.15-1.mga4
1168    - update to 3.10.15
1169    - drop merged patches:
1170      * DG01, DG02, NM01, NS01, NS02, NW01
1171    
1172    * Thu Aug 22 2013 Thomas Backlund <tmb@mageia.org> 3.10.9-1.mga4
1173    - update to 3.10.9
1174    - add patches:
1175      * DG01: drm/radeon: fix WREG32_OR macro setting bits in a register
1176      * DG02: drm/radeon/r7xx: fix copy paste typo in golden register setup
1177      * NM01: mac80211: add a flag to indicate CCK support for HT clients
1178      * NS01: net_sched: psched_ratecfg_precompute() improvements
1179      * NS02: net_sched: restore "linklayer atm" handling
1180      * NW01: ath9k: Enable PLL fix only for AR9340/AR9330
1181    
1182    * Sat Aug 17 2013 Thomas Backlund <tmb@mageia.org> 3.10.7-1.mga4
1183    - update to 3.10.7
1184    - drop merged/obsolete patches:
1185      * AA01-AA17: stable queue fixes
1186      * DN01-DN04: alx backport
1187      * DN22: carl9170 fix
1188    - update patches:
1189      * CK01: -ck patchset including BFS 0.440
1190      * FO01-FO09: overlayfs support
1191      * FR01: Reiser4 support
1192      * KP01: TuxOnIce support
1193    - add patches:
1194      * MB14: ndiswrapper kernel 3.10 buildfix
1195    - add support for extended stable builds
1196    - update requires on firmwares and tools
1197    - add conflicts on too old dkms, firmware and
1198      tools to get better upgrade transactions
1199    - update defconfigs
1200    - update filelists
1201    
1202    * Fri Jun 28 2013 Thomas Backlund <tmb@mageia.org> 3.9.8-1.mga4
1203    - update to 3.9.8
1204    - add patches:
1205      * AA01-AA17: -stable queue fixes
1206      * DN40: bcma: add support for BCM43142 (mga#9378, mga#10611)
1207    - drop merged patches:
1208      * DN10, DN21, DN30
1209    
1210    * Fri Jun 21 2013 Thomas Backlund <tmb@mageia.org> 3.9.7-1.mga4
1211    - update to 3.9.7
1212    - drop merged patches:
1213      * AA01-AA82 (stable queue fixes)
1214    - add patches:
1215      * DN10: ath9k_htc: Handle IDLE state transition properly
1216      * DN30: rtl8192cu: Fix problem in connecting to WEP or WPA(1) networks
1217    
1218    * Sun Jun  2 2013 Thomas Backlund <tmb@mageia.org> 3.9.4-1.mga4
1219    - update to 3.9.4
1220    - drop merged patches:
1221      * DI01, DI10-DI12, DI20-DI22, DI30-DI31, DI40-DI41
1222      * DI50-DI64, DI70-DI75, DM10, DN10-DN14, DS10
1223    - update patches:
1224      * CK01: -ck1 patchset including BFS 0.430
1225      * FR01: Reiser4 support for kernel 3.9
1226      * KP01: TuxOnIce 3.3 for kernel 3.9
1227    - rediff patches:
1228      * FO01, FO04: overlayfs support
1229      * MB02: 3rdparty tree merge
1230    - add patches:
1231      * DN04: fix up alx AR8161 breakage (mga #10079)
1232      * MB13: ndiswrapper buildfix for kernel 3.9
1233    - update filelists
1234    - update defconfigs
1235    
1236  * Sun May 12 2013 Thomas Backlund <tmb@mageia.org> 3.8.13-1.mga3  * Sun May 12 2013 Thomas Backlund <tmb@mageia.org> 3.8.13-1.mga3
1237  - update to 3.8.13  - update to 3.8.13
1238  - drop merged patches:  - drop merged patches:

Legend:
Removed from v.413044  
changed lines
  Added in v.549320

  ViewVC Help
Powered by ViewVC 1.1.30