]> granicus.if.org Git - graphviz/commitdiff
remove PYTHON variable in Fedora/RHEL/CentOS packaging
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 20:40:03 +0000 (13:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 01:26:02 +0000 (18:26 -0700)
This is now false for all operating systems. Across all supported versions of
Fedora, RHEL, and CentOS Python 2 and Python 3 have consistent package names. So
there is no need to deal in the ambiguous Python names with no version number.
Related to #1992.

redhat/graphviz.spec.fedora.in

index 0530f5a67f1102e79668f1b0d1a8031fa591be7e..685efe864e5ecd854d24230db5071f90223e06e8 100644 (file)
@@ -32,7 +32,6 @@ Source0: https://gitlab.com/graphviz/graphviz/-/archive/@VERSION@/graphviz-@VERS
 %global LASI       1
 %global OCAML      1
 %global WEBP       1
-%global PYTHON     0
 %global PYTHON2    1
 %global PYTHON3    1
 %global QT5        1
@@ -108,9 +107,6 @@ BuildRequires: lasi-devel
 %if %{OCAML}
 BuildRequires: ocaml
 %endif
-%if %{PYTHON}
-BuildRequires: python python-devel
-%endif
 %if %{PYTHON2}
 BuildRequires: python2 python2-devel
 %endif
@@ -754,27 +750,6 @@ PHP extension for graphviz.
 %exclude %{_libdir}/graphviz/php/*.so
 %exclude %{_libdir}/graphviz/php/*.php
 
-#-- graphviz-lang-python rpm -------------------------------------------
-%if %{PYTHON}
-%package lang-python
-Group:          Applications/Multimedia
-Summary:        Python extension for graphviz
-Requires:       %{name} = %{version}-%{release}, python
-Obsoletes:      %{name}-python <= 2.41
-Provides:       %{name}-python = %{version}-%{release}
-
-%description lang-python
-Python extension for graphviz.
-
-%files lang-python
-%defattr(-,root,root,-)
-%{_libdir}/python*/*
-%{_datadir}/graphviz/demo/*.py*
-%{_mandir}/man3/gv.3python.*
-%exclude %{_libdir}/graphviz/python*/*.so
-%exclude %{_libdir}/graphviz/python*/*.py*
-%endif
-
 #-- graphviz-lang-python2 rpm -------------------------------------------
 %if %{PYTHON2}
 %package lang-python2
@@ -988,9 +963,7 @@ CFLAGS="$RPM_OPT_FLAGS" \
 %if ! %{ANN}
         --without-ann \
 %endif
-%if ! %{PYTHON}
         --disable-python \
-%endif
 %if ! %{PYTHON2}
         --disable-python2 \
 %endif