Package kernel-build-tools: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 | %define _unpackaged_files_terminate_build 1 Name: kernel-build-tools Version: 0.121 Release: alt1 Summary: Utilities to build kernel packages for ALT Linux License: GPL-2.0-or-later Group: Development/Kernel Packager: Kernel Maintainers Team <kernel@packages.altlinux.org> Source: %name-%version.tar Requires: describe-specfile Requires: rpm-build-kernel = %EVR Requires: rpm-utils # due to RPM macro expansion support Requires: gear >= 1.3.1 BuildRequires: help2man %{?!_without_check:%{?!_disable_check: BuildRequires: describe-specfile BuildRequires: faketime BuildRequires: rpm-utils BuildRequires: shellcheck }} %package -n rpm-build-kernel Summary: RPM macros to build kernel packages Group: Development/Kernel Conflicts: rpm-build < 4.0.4-alt1 # ExclusiveArch / ExcludeArch are evaluated after BuildRequires(pre) is # satisfied, but kernel-modules-s have kernel-headers-modules-@kflavour@ # there causing unmet. As a workaround hack this package creates fake # provides on the _excluded_ arches. %ifnarch x86_64 aarch64 Provides: kernel-headers-modules-centos Provides: kernel-headers-modules-rt %endif %ifnarch x86_64 Provides: kernel-headers-modules-ovz-el7 %endif %ifnarch %ix86 Provides: kernel-headers-modules-std-pae %endif %ifnarch aarch64 Provides: kernel-headers-modules-mp %endif %ifnarch %e2k Provides: kernel-headers-modules-elbrus-def %endif %ifnarch e2k Provides: kernel-headers-modules-elbrus-4c %endif %ifnarch e2kv4 Provides: kernel-headers-modules-elbrus-1cp Provides: kernel-headers-modules-elbrus-8c %endif %description Utilities to facilitate creation of kernel and additional module packages according to ALT Linux kernel packaging conventions. %description -n rpm-build-kernel RPM macros used to build kernel packages according to ALT Linux kernel packaging conventions. %prep %setup %build %make_build %install %makeinstall_std %check %ifarch i586 armh loongarch64 # FAKETIME does not work on armh and i586 # FAKETITME fails to build on LoongArch %make_build shellcheck %else %make_build check %endif %files %_bindir/* %_mandir/man?/* %doc config.sh.sample %files -n rpm-build-kernel %_rpmmacrosdir/kernel %_rpmlibdir/query-kEVR.sh %_rpmlibdir/kernel.req* %changelog * Sat May 04 2024 Vitaly Chikunov <vt@altlinux.org> 0.121-alt1 - Added fake P:kernel-headers-modules-rt. * Fri Jun 16 2023 Alexey Sheplyakov <asheplyakov@altlinux.org> 0.120-alt2 - Defined base_arch for LoongArch. - Disabled some check on LoongArch (libfaketime is not available). - Note: release is -alt2 so this version is newer than the one in sisyphus_loongarch64. * Mon May 22 2023 Vitaly Chikunov <vt@altlinux.org> 0.119-alt1 - Fix fgrep warning. - kernel.req: Detect unmets between kernel modules. * Sun Nov 13 2022 Vitaly Chikunov <vt@altlinux.org> 0.118-alt1 - Install safe-add-changelog (with safe-stamp-spec) tool(s) a safer version of add_changelog (and stamp_spec) which works with kernel-image.spec. * Tue Oct 25 2022 Vitaly Chikunov <vt@altlinux.org> 0.117-alt1 - Do not install obsoleted scripts: buildkernel, buildmodules, updatemodules, merge-all-branches. - Slightly improve packaging: add %%check, unify install. * Mon Nov 29 2021 L.A. Kostis <lakostis@altlinux.ru> 0.116-alt2 - Added -centos kernel to the list of fake providers. * Wed Sep 08 2021 Andrew A. Vasilyev <andy@altlinux.org> 0.116-alt1 - Updated the list of fake provides related to ovz kernel flavours. * Tue Aug 17 2021 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.115-alt1 - Dropped old outdated documentation files. - km-create-tag: added armh to default karch value. * Thu Mar 11 2021 Anton V. Boyarshinov <boyarsh@altlinux.org> 0.114-alt1 - added finding requires for kernel modules * Thu Aug 15 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.113-alt1 - km-create-tag: changed km-karch config handling to fall back to default @karch@ on unmatched flavours. * Wed Aug 14 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.112-alt1 - rpm-build-kernel: removed P: kernel-headers-modules-std-def on aarch64. - km-create-tag: + added aarch64 and ppc64le to default karch; + changed -a/--arches argument handling to accumulate parameters; + added support of .gear/km-karch config file to map kernel flavour to module's @karch@ specsubst variable. * Fri Jul 05 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.111-alt1 - rpm-build-kernel: + removed P: kernel-headers-modules-std-def on ppc64le; + added P: kernel-headers-modules-std-debug on excluded architectures. * Thu Jul 04 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.110-alt1 - rpm-build-kernel: removed P: kernel-headers-modules-un-def on ppc64le. * Fri May 17 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.109-alt1 - Made the test in the packages produced by %%update_kernel_modules_checkinstall not ignore the exit status of update-kernel. * Tue May 07 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.108-alt1 - kernel-macros: added powerpc support to %%base_arch macro. * Thu Apr 04 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.107-alt1 - kernel-macros: made %%setup_kernel_module automatically add the usual {,Build}Requires for kernel-modules-*. - kernel-macros: added for possible use in modules: + %%kimage & %%requires_kimage; + %%update_kernel_modules_checkinstall (to produce a specific kind of checkinstall subpkg); + %%setup_kernel_module_from_globals (split from %%setup_kernel_module) for those who want to set %%kversion and %%krelease manually, without rpmquery). * Wed Jul 04 2018 Michael Shigorin <mike@altlinux.org> 0.106-alt1 - added %%e2k support * Sat Jun 09 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.105-alt1 - km-create-tag: added --force and --arches options. - kernel-macros: + added mips and riscv support to %%base_arch macro; + dropped buggy karch macro. - rpm-build-kernel: added fake provides for existing kernel flavours. * Tue Sep 29 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.104-alt1 - kernel-macros: added new arch translation aarch64 -> arm64. * Tue Jul 16 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.103.1-alt1 - fix *_kernel_headers macros. * Thu Jun 20 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.103-alt1 - kernel-macros: + deprecated %%post_kernel_headers and %%postun_kernel_headers. * Mon Jun 03 2013 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.102-alt2 - 4-component kernel versions in kcode calculation changed * Fri May 31 2013 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.102-alt1 - added support for 4-component kernel versions in kcode calculation * Thu Jan 24 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.101-alt1 - Added km-create-tag script * Fri Jan 18 2013 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.100-alt4 - %%base_arch macro extended to arm * Thu Dec 20 2012 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.100-alt3 - Fixed last change. * Thu Dec 20 2012 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.100-alt2 - Added workaround for std-pae. * Tue Dec 11 2012 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.100-alt1 - Added %%setup_kernel_module. * Fri Dec 07 2012 Dmitry V. Levin <ldv@altlinux.org> 0.99.5-alt1 - kernel-macros: deprecated %%post_kernel_modules and %%postun_kernel_modules. * Fri Nov 02 2012 Dmitry V. Levin <ldv@altlinux.org> 0.99.4-alt1 - Relocated kernel macros to %_rpmmacrosdir. - kernel-macros: + removed %%kgcc and %%kgcc_package; + made %%post_kernel_image and %%preun_kernel_image obsolete. * Mon Sep 19 2011 Anton Protopopov <aspsk@altlinux.org> 0.99.3-alt1 - Add -d option (the same as in buildmodules) * Sun Aug 21 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.99.2-alt2 - Fetching ftom /gears/k fixed. * Fri Aug 19 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.99.2-alt1 - New option --pull for pull from gears/k/module_name * Wed Jun 24 2009 Anton Protopopov <aspsk@altlinux.org> 0.99.1-alt1 - Run hasher by default in buildmodules - Add new script for updating modules: updatemodules - Save tag names into $TOP/out/taglist when --tag option is used - Use - instead of / when signing modules - Try to get a value of def_repo from hasher config - Try to set hsh_workdir from hasher config first - Fix hasher option parsing * Thu Mar 26 2009 Anton Protopopov <aspsk@altlinux.org> 0.99.0-alt2 - integrate setarch - Get right modules.build - Fix buildmodules to work with new templates * Tue Apr 22 2008 Sergey Vlasov <vsu@altlinux.ru> 0.99.0-alt1 - Add new scripts to the kernel-build-tools package: + buildkernel, buildmodules - scripts for build kernel and module packages from git repositories; + merge-all-branches - script for easier merging of multiple fix and feature branches into the release branch of a kernel package. - Add documentation for new scripts (README.ru.koi8, README.ru.html) and a sample config file. - Remove obsolete update_module_specs script. * Sun Feb 03 2008 Sergey Vlasov <vsu@altlinux.ru> 0.11-alt1 - kernel-macros: + %%base_arch: Fix problem with athlon and athlon_xp architectures due to broken regexp (#14300). * Wed Nov 07 2007 Sergey Vlasov <vsu@altlinux.ru> 0.10-alt1 - kernel-macros: %%base_arch: Add pentium2, pentium3, athlon_xp architectures. - Split package into separate parts: + rpm-build-kernel - files actually required for building kernel-related packages (this package should replace kernel-build-tools in BuildRequires); + kernel-build-tools - scripts and documentation used by kernel package maintainers (should not be used in BuildRequires anymore). - Updated kernel-policy and spec example for new package split. - Fixed summary and description (#2730). * Mon May 08 2006 Sergey Vlasov <vsu@altlinux.ru> 0.9-alt1 - kernel-macros: + %%get_patch_list: add package versions to the returned list (needed to get correct BuildRequires for kernel packages); + %%get_patch_list, %%format_patch_list: pass current %%_dbpath to rpmquery to get correct results when using build scripts from kernel CVS. * Sat Dec 03 2005 Sergey Vlasov <vsu@altlinux.ru> 0.8-alt2 - kernel-macros: fix by Dmitry V. Levin <ldv@altlinux>: + %%_src_list: quote %% to avoid unneeded macro expansion * Thu Jul 14 2005 Anton D. Kachalov <mouse@altlinux.org> 0.8-alt1 - kernel-macros: added macros for per-arch configuration: + %%set_kernel_arches + %%get_kernel_config * Sat Jun 11 2005 Sergey Vlasov <vsu@altlinux.ru> 0.7-alt2 - kernel-macros: fix %%base_arch to support pentium4 and k6 targets (#7055). * Tue Aug 03 2004 Sergey Vlasov <vsu@altlinux.ru> 0.7-alt1 - kernel-macros: added macros for installation scripts: + %%post_kernel_image + %%preun_kernel_image + %%post_kernel_headers + %%preun_kernel_headers + %%post_kernel_modules + %%postun_kernel_modules - updated kernel-policy: + added description for new macros - updated kernel spec example: + use new macros in scripts * Mon Feb 02 2004 Sergey Vlasov <vsu@altlinux.ru> 0.6-alt6 - kernel-macros: - added not_PATCHSET support - updated kernel-policy - updated kernel spec example and separated it from policy text * Sun Jan 18 2004 Sergey Vlasov <vsu@altlinux.ru> 0.6-alt5 - kernel-macros: - fixed apply_recursive fix - allow URLs in %%source - updated kernel-policy * Thu Jan 15 2004 Ed V. Bartosh <ed@altlinux.org> 0.6-alt4 - apply_recursive fix: check for return code in recursive calls * Thu Dec 18 2003 Sergey Vlasov <vsu@altlinux.ru> 0.6-alt3 - kernel-macros: - enhanced %%source to take an optional subdirectory for patch file installation - dropped %%source_kver (now this is handled by %%source) * Wed Dec 17 2003 Sergey Vlasov <vsu@altlinux.ru> 0.6-alt2 - kernel-macros: - %%apply_patches: cleanup; fixed bugs in recursive patch application; allow 00_ prefixes for all special directories - %%install_patches, %%source: reworked kernel version specific patch installation * Fri Dec 5 2003 Ed V. Bartosh <ed@altlinux.ru> 0.6-alt1 - kernel-policy: Sergey Vlasov added to the kernel committee - kernel-macros: added ability to apply patches only to the specified kernel version * Tue Nov 11 2003 Ed V. Bartosh <ed@altlinux.ru> 0.5-alt5 - fix: set right permissions to upgrade_module_specs * Thu Oct 30 2003 Ed V. Bartosh <ed@altlinux.ru> 0.5-alt4 - Change packager to ed@altlinux.ru * Wed Sep 3 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.5-alt3 - upgrade_module_spec: fixed bug with non-only-digit release increment - upgrade_module_spec: save spec formatting during replace * Thu Aug 7 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.5-alt2 - macro 'format_patch_list' corrected * Tue Aug 5 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.5-alt1 - apply_patches macro: improve support of applying dependent patches - upgrade_module_spec improved - kgcc_package added to the kernel-macros * Thu Jul 31 2003 Peter Novodvorsky <nidd@altlinux.com> 0.4-alt1 - added upgrade_module_specs script. * Fri Jul 4 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.3-alt4 - spec typos fixed * Tue Jul 1 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.3-alt3 - policy naming rules minor changes - %%source and %%install_patches macroses added * Fri Jun 6 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.3-alt2 - Sinchronized with Peter's work, added kernel-policy * Mon May 26 2003 Peter Novodvorsky <nidd@altlinux.com> 0.3-alt1 - new version of kernel-macros from Ed. - 1.0 version of kernel-policy. * Wed Apr 30 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.1-alt5 - %%copy_sources macro added * Tue Apr 22 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.1-alt4 - stop applying patches when patch or apply script return error * Tue Apr 22 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.1-alt3 - %%kernel_src and %%kernel_srcdir defines added * Sat Apr 19 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.1-alt2 - %%apply_patches: add ability to don't apply patch for specific kernel version - %%apply_patches: add ability to use 'NN_' prefix for directory patches * Tue Apr 15 2003 Ed V. Bartosh <ed@sam-solutions.net> 0.1-alt1 - Initial release |