From: Matthew Fernandez Date: Sat, 5 Jun 2021 20:40:03 +0000 (-0700) Subject: remove PYTHON variable in Fedora/RHEL/CentOS packaging X-Git-Tag: 2.47.3~8^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1fc152af9449654886c36d6bb4596963d11632d;p=graphviz remove PYTHON variable in Fedora/RHEL/CentOS packaging 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. --- diff --git a/redhat/graphviz.spec.fedora.in b/redhat/graphviz.spec.fedora.in index 0530f5a67..685efe864 100644 --- a/redhat/graphviz.spec.fedora.in +++ b/redhat/graphviz.spec.fedora.in @@ -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