#4 Rename gcc-gdc to gcc-d and add compatibility Provides
Opened 3 years ago by ngompa. Modified 3 years ago
rpms/ ngompa/gcc master-gdc-gxx-provides  into  rawhide

file modified
+16 -6
@@ -4,7 +4,7 @@ 

  %global gcc_major 9

  # Note, gcc_release must be integer, if you want to add suffixes to

  # %%{release}, append them after %%{gcc_release} on Release: line.

- %global gcc_release 0.3

+ %global gcc_release 0.4

  %global nvptx_tools_gitrev c28050f60193b3b95a18866a96f03334e874e78f

  %global nvptx_newlib_gitrev aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24

  %global _unpackaged_files_terminate_build 0
@@ -324,6 +324,8 @@ 

  

  %package c++

  Summary: C++ support for GCC

+ Provides: gcc-g++ = %{version}-%{release}

+ Provides: g++ = %{version}-%{release}

  Requires: gcc = %{version}-%{release}

  Requires: libstdc++ = %{version}-%{release}

  Requires: libstdc++-devel = %{version}-%{release}
@@ -432,14 +434,17 @@ 

  %description -n libgfortran-static

  This package contains static Fortran libraries.

  

- %package gdc

+ %package d

  Summary: D support

+ Obsoletes: gcc-gdc < 9.0.1-0.4

+ Provides: gcc-gdc = %{version}-%{release}

+ Provides: gdc = %{version}-%{release}

  Requires: gcc = %{version}-%{release}

  Requires: libgphobos = %{version}-%{release}

  Autoreq: true

  

- %description gdc

- The gcc-gdc package provides support for compiling D

+ %description d

+ The gcc-d package provides support for compiling D

  programs with the GNU Compiler Collection.

  

  %package -n libgphobos
@@ -453,7 +458,7 @@ 

  %package -n libgphobos-static

  Summary: Static D libraries

  Requires: libgphobos = %{version}-%{release}

- Requires: gcc-gdc = %{version}-%{release}

+ Requires: gcc-d = %{version}-%{release}

  

  %description -n libgphobos-static

  This package contains static D libraries.
@@ -2484,7 +2489,7 @@ 

  %endif

  

  %if %{build_d}

- %files gdc

+ %files d

  %{_prefix}/bin/gdc

  %{_mandir}/man1/gdc.1*

  %{_infodir}/gdc*
@@ -2951,6 +2956,11 @@ 

  %endif

  

  %changelog

+ * Fri Feb  8 2019 Neal Gompa <ngompa13@gmail.com> 9.0.1-0.4

+ - Rename gcc-gdc to gcc-d for consistency

+ - Add Provides for gcc-gdc and gdc for multi-distro compatibility

+ - Add Provides for gcc-g++ and g++ for multi-distro compatibility

+ 

  * Sun Feb  3 2019 Jakub Jelinek <jakub@redhat.com> 9.0.1-0.3

  - update from trunk

    - PRs c++/80864, c++/86943, c++/87175, c++/88325, c++/88752, c++/88761,

  • Rename gcc-gdc to gcc-d for consistency
  • Add Provides for gcc-gdc and gdc for multi-distro compatibility
  • Add Provides for gcc-g++ and g++ for multi-distro compatibility

Why do you think gcc-d is better? E.g. gcc-gfortran is not a name of the language, but name of the command, like in the gcc-gdc case.

@jakub It is consistent with what we do for C++ and seems to also be the same path that SUSE has picked as well, so it makes it easy to match up to.

I guess the alternative would be to flip it and make the gcc-c++ package to be gcc-g++...

Well, c++ is both language and command - /usr/bin/c++. I have no issue with adding Provides: gcc-d to gcc-gdc.

gdc is also how the project calls itself: https://gdcproject.org/

Metadata