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 9 |
%define patchlevel 10 |
6 |
# sublevel is now used for -stable patches |
# sublevel is now used for -stable patches |
7 |
%define sublevel 8 |
%define sublevel 7 |
8 |
|
# extstable is for extended stable patches |
9 |
|
%define extstable 0 |
10 |
|
|
11 |
# Package release |
# Package release |
12 |
%define mgarel 1 |
%define mgarel 1 |
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 |
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 |
214 |
%endif |
%endif |
215 |
|
%if %extstable |
216 |
|
Patch3: patch-%{kernelversion}.%{patchlevel}.%{sublevel}.%{extstable}.patch |
217 |
%endif |
%endif |
218 |
|
|
219 |
#END |
#END |
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 >= 025-8 |
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 |
|
|
241 |
|
# conflict dkms packages that dont support kernel-3.10 |
242 |
|
%define kconflicts1 dkms-broadcom-wl < 5.100.82.112-13 |
243 |
|
%define kconflicts1 dkms-fglrx < 13.101-0.3 |
244 |
|
%define kconflicts2 dkms-nvidia-current < 319.32-2 |
245 |
|
%define kconflicts3 dkms-nvidia304 < 304.88-4 |
246 |
|
%define kconflicts4 dkms-nvidia173 < 173.14.37-4 |
247 |
|
# (tmb) nvidia96xx does not support this kernel or x11-server-1.13 |
248 |
|
%define kconflicts5 dkms-nvidia96xx <= 96.43.23 |
249 |
|
%define kconflicts6 dmms-xtables-addons < 2.3-1 |
250 |
|
# (tmb) conflict too old lvm2 rules to make upgrades work (tv, mga #9536) |
251 |
|
%define kconflicts7 lvm2 < 2.02.98-3 |
252 |
|
# (tmb) conflict too old drakxtools-backend to avoid bogus root=/dev/ (#9536) |
253 |
|
%define kconflicts8 drakxtools-backend < 15.37-1 |
254 |
|
# (tmb) conflict older btrfs-progs to get the new in same transaction and in initrd |
255 |
|
%define kconflicts9 btrfs-progs < 0.20-0.rc1.20130607.2 |
256 |
|
# (tmb) conflict too old plymouth (#10128) |
257 |
|
%define kconflicts10 plymouth < 0.8.6.1-8 |
258 |
|
# (tmb) conflict too old radeon-firmware to get the uvd firmwares in initrd |
259 |
|
%define kconflicts11 radeon-firmware < 20130626-1 |
260 |
|
|
261 |
Autoreqprov: no |
Autoreqprov: no |
262 |
BuildRequires: gcc >= 4.0.1-5 kmod >= 7-6 bc |
BuildRequires: gcc >= 4.0.1-5 kmod >= 7-6 bc |
272 |
%package -n %{kname}-%{1}-%{buildrel} \ |
%package -n %{kname}-%{1}-%{buildrel} \ |
273 |
Version: %{fakever} \ |
Version: %{fakever} \ |
274 |
Release: %{fakerel} \ |
Release: %{fakerel} \ |
275 |
Provides: %kprovides \ |
Summary: %{expand:%{summary_%(echo %{1})}} \ |
276 |
Provides: should-restart = system \ |
Group: System/Kernel and hardware \ |
277 |
Requires(pre): %requires1 %requires2 %requires3 %requires4 \ |
Provides: %{kname}-%{1} \ |
278 |
|
Provides: %kprovides1 %kprovides2 %kprovides3 \ |
279 |
|
%{expand:%%{?kprovides_%{1}:Provides: %{kprovides_%{1}}}} \ |
280 |
|
Provides: should-restart = system \ |
281 |
|
Requires(pre): %requires1 %requires2 %requires3 %requires4 \ |
282 |
|
Requires: %requires2 %requires5 \ |
283 |
|
Conflicts: %kconflicts1 %kconflicts2 %kconflicts3 \ |
284 |
|
Conflicts: %kconflicts4 %kconflicts5 %kconflicts6 \ |
285 |
|
Conflicts: %kconflicts7 %kconflicts8 %kconflicts9 \ |
286 |
|
Conflicts: %kconflicts10 %kconflicts11 \ |
287 |
|
Suggests: crda iw cpupower \ |
288 |
|
Suggests: %{kname}-%{1}-latest \ |
289 |
%ifarch %{ix86} \ |
%ifarch %{ix86} \ |
290 |
Conflicts: arch(x86_64) \ |
Conflicts: arch(x86_64) \ |
291 |
%endif \ |
%endif \ |
|
Summary: %{expand:%{summary_%(echo %{1})}} \ |
|
|
Group: System/Kernel and hardware \ |
|
292 |
%description -n %{kname}-%{1}-%{buildrel} \ |
%description -n %{kname}-%{1}-%{buildrel} \ |
293 |
%common_description_kernel %{expand:%{info_%(echo %{1})}} \ |
%common_description_kernel %{expand:%{info_%(echo %{1})}} \ |
294 |
\ |
\ |
296 |
%package -n %{kname}-%{1}-devel-%{buildrel} \ |
%package -n %{kname}-%{1}-devel-%{buildrel} \ |
297 |
Version: %{fakever} \ |
Version: %{fakever} \ |
298 |
Release: %{fakerel} \ |
Release: %{fakerel} \ |
299 |
|
Summary: The kernel-devel files for %{kname}-%{1}-%{buildrel} \ |
300 |
|
Group: Development/Kernel \ |
301 |
Requires: glibc-devel ncurses-devel make gcc perl \ |
Requires: glibc-devel ncurses-devel make gcc perl \ |
302 |
%ifarch %{ix86} \ |
%ifarch %{ix86} \ |
303 |
Conflicts: arch(x86_64) \ |
Conflicts: arch(x86_64) \ |
304 |
%endif \ |
%endif \ |
|
Summary: The kernel-devel files for %{kname}-%{1}-%{buildrel} \ |
|
|
Group: Development/Kernel \ |
|
305 |
Provides: kernel-devel = %{kverrel} \ |
Provides: kernel-devel = %{kverrel} \ |
306 |
|
Suggests: %{kname}-%{1}-devel-latest \ |
307 |
%description -n %{kname}-%{1}-devel-%{buildrel} \ |
%description -n %{kname}-%{1}-devel-%{buildrel} \ |
308 |
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 \ |
309 |
3rdparty drivers against for use with %{kname}-%{1}-%{buildrel}. \ |
3rdparty drivers against for use with %{kname}-%{1}-%{buildrel}. \ |
587 |
%if %kgit |
%if %kgit |
588 |
%patch2 -p1 |
%patch2 -p1 |
589 |
%endif |
%endif |
590 |
|
%if %extstable |
591 |
|
%patch3 -p1 |
592 |
|
%endif |
593 |
|
|
594 |
%{patches_dir}/scripts/apply_patches |
%{patches_dir}/scripts/apply_patches |
595 |
|
|
642 |
fi |
fi |
643 |
|
|
644 |
# make sure EXTRAVERSION says what we want it to say |
# make sure EXTRAVERSION says what we want it to say |
645 |
|
%if %extstable |
646 |
|
LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = .%{extstable}-$extension/" Makefile |
647 |
|
%else |
648 |
LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile |
LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -$extension/" Makefile |
649 |
|
%endif |
650 |
|
|
651 |
%smake oldconfig |
%smake oldconfig |
652 |
} |
} |
690 |
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/ |
691 |
cp -fR arch/x86/syscalls/syscall* $TempDevelRoot/arch/x86/syscalls/ |
cp -fR arch/x86/syscalls/syscall* $TempDevelRoot/arch/x86/syscalls/ |
692 |
cp -fR arch/x86/include $TempDevelRoot/arch/x86/ |
cp -fR arch/x86/include $TempDevelRoot/arch/x86/ |
693 |
cp -fR arch/x86/tools/relocs.c $TempDevelRoot/arch/x86/tools/ |
cp -fR arch/x86/tools $TempDevelRoot/arch/x86/ |
694 |
%else |
%else |
695 |
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/ |
696 |
cp -fR arch/%{_arch}/include $TempDevelRoot/arch/%{_arch}/ |
cp -fR arch/%{_arch}/include $TempDevelRoot/arch/%{_arch}/ |
769 |
$DevelRoot/include/config |
$DevelRoot/include/config |
770 |
$DevelRoot/include/crypto |
$DevelRoot/include/crypto |
771 |
$DevelRoot/include/drm |
$DevelRoot/include/drm |
772 |
|
$DevelRoot/include/dt-bindings |
773 |
$DevelRoot/include/generated |
$DevelRoot/include/generated |
774 |
$DevelRoot/include/keys |
$DevelRoot/include/keys |
775 |
$DevelRoot/include/linux |
$DevelRoot/include/linux |
1088 |
%{_kerneldir}/include/clocksource |
%{_kerneldir}/include/clocksource |
1089 |
%{_kerneldir}/include/crypto |
%{_kerneldir}/include/crypto |
1090 |
%{_kerneldir}/include/drm |
%{_kerneldir}/include/drm |
1091 |
|
%{_kerneldir}/include/dt-bindings |
1092 |
%{_kerneldir}/include/keys |
%{_kerneldir}/include/keys |
1093 |
%{_kerneldir}/include/linux |
%{_kerneldir}/include/linux |
1094 |
%{_kerneldir}/include/math-emu |
%{_kerneldir}/include/math-emu |
1140 |
%endif |
%endif |
1141 |
|
|
1142 |
%changelog |
%changelog |
1143 |
|
* Sat Aug 17 2013 Thomas Backlund <tmb@mageia.org> 3.10.7-1.mga4 |
1144 |
|
- update to 3.10.7 |
1145 |
|
- drop merged/obsolete patches: |
1146 |
|
* AA01-AA17: stable queue fixes |
1147 |
|
* DN01-DN04: alx backport |
1148 |
|
* DN22: carl9170 fix |
1149 |
|
- update patches: |
1150 |
|
* CK01: -ck patchset including BFS 0.440 |
1151 |
|
* FO01-FO09: overlayfs support |
1152 |
|
* FR01: Reiser4 support |
1153 |
|
* KP01: TuxOnIce support |
1154 |
|
- add patches: |
1155 |
|
* MB14: ndiswrapper kernel 3.10 buildfix |
1156 |
|
- add support for extended stable builds |
1157 |
|
- update requires on firmwares and tools |
1158 |
|
- add conflicts on too old dkms, firmware and |
1159 |
|
tools to get better upgrade transactions |
1160 |
|
- update defconfigs |
1161 |
|
- update filelists |
1162 |
|
|
1163 |
* Fri Jun 28 2013 Thomas Backlund <tmb@mageia.org> 3.9.8-1.mga4 |
* Fri Jun 28 2013 Thomas Backlund <tmb@mageia.org> 3.9.8-1.mga4 |
1164 |
- update to 3.9.8 |
- update to 3.9.8 |
1165 |
- add patches: |
- add patches: |