Package gcc-defaults: 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 | %set_compress_method none %define gcc_branch 10 %define psuffix -%gcc_branch %define gnat_arches %ix86 x86_64 %define go_arches %ix86 x86_64 %define libasan_arches %ix86 x86_64 %arm aarch64 ppc64le %define libatomic_arches %ix86 x86_64 %arm aarch64 mips mipsel s390x riscv64 ppc64le %define libitm_arches %ix86 x86_64 %arm aarch64 s390x ppc64le %define liblsan_arches x86_64 aarch64 ppc64le %define libquadmath_arches %ix86 x86_64 ppc64le %define libtsan_arches x86_64 aarch64 ppc64le %define libubsan_arches %ix86 x86_64 %arm aarch64 ppc64le %define libvtv_arches %ix86 x86_64 Name: gcc-defaults Version: %gcc_branch Release: alt1 License: None Group: Development/Other Summary: %vendor GNU Compiler Collection Setup Url: http://git.altlinux.org/gears/g/gcc-defaults.git %define gcc_target_platform %_target_platform %description This package contains default %vendor GNU Compiler Collection Setup. %package -n cpp Summary: Dependency package for GNU C preprocessor Group: Development/C Requires: cpp%gcc_branch Conflicts: cpp3.4 < 3.4.5-alt18 Conflicts: cpp4.1 < 4.1.2-alt13 Conflicts: cpp4.3 < 4.3.2-alt21 Conflicts: cpp4.4 < 4.4.7-alt5 Conflicts: cpp4.5 < 4.5.4-alt5 Conflicts: cpp4.6 < 4.6.3-alt12 Conflicts: cpp4.7 < 4.7.2-alt11 Conflicts: cpp4.8 < 4.8.2-alt6 Conflicts: cpp4.9 < 4.9.2-alt6 Conflicts: cpp5 < 5.3.1-alt5 Conflicts: cpp6 < 6.3.1-alt3 %description -n cpp This is metapackage for the default GNU C preprocessor. %package -n gcc Summary: Dependency package for GNU C compiler Group: Development/C Requires: cpp = %EVR Requires: gcc%gcc_branch Conflicts: gcc3.4 < 3.4.5-alt18 Conflicts: gcc4.1 < 4.1.2-alt13 Conflicts: gcc4.3 < 4.3.2-alt21 Conflicts: gcc4.4 < 4.4.7-alt5 Conflicts: gcc4.5 < 4.5.4-alt5 Conflicts: gcc4.6 < 4.6.3-alt12 Conflicts: gcc4.7 < 4.7.2-alt11 Conflicts: gcc4.8 < 4.8.2-alt6 Conflicts: gcc4.9 < 4.9.2-alt6 Conflicts: gcc5 < 5.3.1-alt5 Conflicts: gcc6 < 6.3.1-alt3 %description -n gcc This is metapackage for the default GNU C compiler. %package -n gcc-c++ Summary: Dependency package for GNU C++ compiler Group: Development/C++ Requires: gcc = %EVR Requires: gcc%gcc_branch-c++ Conflicts: gcc3.4-c++ < 3.4.5-alt18 Conflicts: gcc4.1-c++ < 4.1.2-alt13 Conflicts: gcc4.3-c++ < 4.3.2-alt21 Conflicts: gcc4.4-c++ < 4.4.7-alt5 Conflicts: gcc4.5-c++ < 4.5.4-alt5 Conflicts: gcc4.6-c++ < 4.6.3-alt12 Conflicts: gcc4.7-c++ < 4.7.2-alt11 Conflicts: gcc4.8-c++ < 4.8.2-alt6 Conflicts: gcc4.9-c++ < 4.9.2-alt6 Conflicts: gcc5-c++ < 5.3.1-alt5 Conflicts: gcc6-c++ < 6.3.1-alt3 %description -n gcc-c++ This is metapackage for the default GNU C++ compiler. %package -n gcc-gdc Summary: Dependency package for GNU D compiler Group: Development/Other Requires: gcc = %EVR Requires: gcc%gcc_branch-gdc %description -n gcc-gdc This is metapackage for the default GNU D compiler. %package -n gcc-fortran Summary: Dependency package for GNU Fortran compiler Group: Development/C Provides: gcc-g77 = %EVR Requires: gcc = %EVR Requires: gcc%gcc_branch-fortran Conflicts: gcc4.1-fortran < 4.1.2-alt13 Conflicts: gcc4.3-fortran < 4.3.2-alt21 Conflicts: gcc4.4-fortran < 4.4.7-alt5 Conflicts: gcc4.5-fortran < 4.5.4-alt5 Conflicts: gcc4.6-fortran < 4.6.3-alt12 Conflicts: gcc4.7-fortran < 4.7.2-alt11 Conflicts: gcc4.8-fortran < 4.8.2-alt6 Conflicts: gcc4.9-fortran < 4.9.2-alt6 Conflicts: gcc5-fortran < 5.3.1-alt5 Conflicts: gcc6-fortran < 6.3.1-alt3 %description -n gcc-fortran This is metapackage for the default GNU Fortran compiler. %package -n gcc-go Summary: Dependency package for GNU Go compiler Group: Development/C Requires: gcc = %EVR Requires: gcc%gcc_branch-go Conflicts: gcc4.7-go < 4.7.2-alt11 Conflicts: gcc4.8-go < 4.8.2-alt6 Conflicts: gcc4.9-go < 4.9.2-alt6 Conflicts: gcc5-go < 5.3.1-alt5 Conflicts: gcc6-go < 6.3.1-alt3 %description -n gcc-go This is metapackage for the default GNU Go compiler. %package -n gcc-gnat Summary: Dependency package for GNU Ada compiler Group: Development/C Requires: gcc = %EVR Requires: gcc%gcc_branch-gnat Conflicts: gcc4.1-gnat < 4.1.2-alt13 Conflicts: gcc4.3-gnat < 4.3.2-alt21 Conflicts: gcc4.4-gnat < 4.4.7-alt5 Conflicts: gcc4.5-gnat < 4.5.4-alt5 Conflicts: gcc4.6-gnat < 4.6.3-alt12 Conflicts: gcc4.7-gnat < 4.7.2-alt11 Conflicts: gcc4.8-gnat < 4.8.2-alt6 Conflicts: gcc4.9-gnat < 4.9.2-alt6 Conflicts: gcc5-gnat < 5.3.1-alt5 Conflicts: gcc6-gnat < 6.3.1-alt3 %description -n gcc-gnat This is metapackage for the default GNU Ada compiler. %global do_package() \ %if 0%{3} \ %package -n %{1}-%{2} \ Summary: Dependency package for %{1}-%{2} \ Group: Development/C \ Requires: %{1}%gcc_branch-%{2}\ %{4}BuildArch: noarch \ %description -n %{1}-%{2} \ This is metapackage for %{1}-%{2}. \ %files -n %{1}-%{2} \ %endif # noarch %do_package gcc doc 1 %nil %do_package gcc gdb-plugin 1 %nil %do_package gcc locales 1 %nil %do_package gcc objc 1 %nil %do_package gcc objc++ 1 %nil %do_package gcc plugin-devel 1 %nil %do_package libgccjit devel 1 %nil %do_package libgfortran devel 1 %nil %do_package libgfortran devel-static 1 %nil %do_package libgomp devel 1 %nil %do_package libgomp devel-static 1 %nil %do_package libobjc devel 1 %nil %do_package libobjc devel-static 1 %nil %do_package libstdc++ devel 1 %nil %do_package libstdc++ devel-static 1 %nil # arch %ifarch %libasan_arches %do_package libasan devel-static 1 # %endif %ifarch %libatomic_arches %do_package libatomic devel-static 1 # %endif %ifarch %gnat_arches %do_package libgnat devel 1 # %do_package libgnat devel-static 1 # %endif %ifarch %libitm_arches %do_package libitm devel-static 1 # %endif %ifarch %liblsan_arches %do_package liblsan devel-static 1 # %endif %ifarch %libquadmath_arches %do_package libquadmath devel 1 # %do_package libquadmath devel-static 1 # %endif %ifarch %libtsan_arches %do_package libtsan devel-static 1 # %endif %ifarch %libubsan_arches %do_package libubsan devel-static 1 # %endif %ifarch %libvtv_arches %do_package libvtv devel-static 1 # %endif %install mkdir -p %buildroot%_bindir mkdir -p %buildroot%_man1dir ln_bin() { for i; do ln -s %gcc_target_platform-"$i"%psuffix \ %buildroot%_bindir/%gcc_target_platform-"$i" done } ln_man() { for i; do ln -s "$i"%psuffix.1.xz %buildroot%_man1dir/"$i".1.xz done } # cpp ln_bin cpp ln_man cpp # gcc ln_bin gcc ln_man gcc ln_bin gcc-{ar,nm,ranlib} ln_bin gcov{,-tool,-dump} ln_man gcov{,-tool,-dump} ln_bin lto-dump ln_man lto-dump # gcc-c++ ln_bin g++ ln_man g++ # gcc-gdc ln_bin gdc ln_man gdc # gcc-fortran ln_bin gfortran ln_man gfortran %ifarch %go_arches ln_bin gccgo ln_man gccgo %endif %ifarch %gnat_arches ln_bin gnat gnatbind gnatchop gnatclean gnatfind gnatkr gnatlink gnatls \ gnatmake gnatname gnatprep gnatxref %endif %add_findreq_skiplist %_man1dir/* %files -n cpp %_bindir/%gcc_target_platform-cpp %_man1dir/cpp.1.xz %files -n gcc %_bindir/%gcc_target_platform-gcc %_man1dir/gcc.1.xz %_bindir/%gcc_target_platform-gcc-ar %_bindir/%gcc_target_platform-gcc-nm %_bindir/%gcc_target_platform-gcc-ranlib %_bindir/%gcc_target_platform-gcov %_man1dir/gcov.1.xz %_bindir/%gcc_target_platform-gcov-tool %_man1dir/gcov-tool.1.xz %_bindir/%gcc_target_platform-gcov-dump %_man1dir/gcov-dump.1.xz %_bindir/%gcc_target_platform-lto-dump %_man1dir/lto-dump.1.xz %files -n gcc-c++ %_bindir/%gcc_target_platform-g++ %_man1dir/g++.1.xz %files -n gcc-gdc %_bindir/%gcc_target_platform-gdc %_man1dir/gdc.1.xz %files -n gcc-fortran %_bindir/%gcc_target_platform-gfortran %_man1dir/gfortran.1.xz %ifarch %go_arches %files -n gcc-go %_bindir/%gcc_target_platform-gccgo %_man1dir/gccgo.1.xz %endif %ifarch %gnat_arches %files -n gcc-gnat %_bindir/%gcc_target_platform-gnat* %endif %changelog * Wed Dec 02 2020 Gleb F-Malinovskiy <glebfm@altlinux.org> 10-alt1 - Changed default compiler to gcc10. - gcc: added lto-dump symlinks. * Mon May 18 2020 Andrew Savchenko <bircoph@altlinux.org> 9-alt2 - Added libquadmath-devel-static subpackage. * Wed Oct 09 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 9-alt1 - Added gcc-gdc metapacakge. - Dropped libmpx-devel-static subpackage. * Wed Aug 07 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 8-alt2 - Added ppc64le (ALT#37086) and riscv64 support. - Added gcc-gdb-plugin subpackage. * Mon Oct 29 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 8-alt1 - Changed default gcc version to 8. - Dropped libcilkrts-* subpackages. * Wed Jun 06 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 7-alt6 - Fixed installation (with rpm --excludedocs option) of subpackages containing symlinks on gcc manpages (ALT#34996). * Sun May 13 2018 Ivan Zakharyaschev <imz@altlinux.org> 7-alt5 - (.spec) Made possible to disable noarch subpkgs. - More specific Group for gcc-c++. (ALT#34901) - Filled URL. (ALT#34624) * Sun Feb 18 2018 Dmitry V. Levin <ldv@altlinux.org> 7-alt4 - aarch64: packaged liblsan-devel-static and libtsan-devel-static. * Sat Feb 17 2018 Dmitry V. Levin <ldv@altlinux.org> 7-alt3 - Upgraded Conflicts tags. * Sat Feb 17 2018 Dmitry V. Levin <ldv@altlinux.org> 7-alt2 - gcc-fortran: provide gcc-g77. - Fixed conditional packaging of subpackages. - Fixed symlinks. - Made arch-agnostic dependency packages noarch. * Wed Jan 17 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 7-alt1 - Initial build. |