Don't build GTK 2 bits on ELN/RHEL 10
GTK 2 won't be part of RHEL 10, see the following announcements: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/KH2BKEOZTLV4G6WF5FUXU6RYDPC62UEX/ https://github.com/minimization/content-resolver-input/pull/724 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.1_release_notes/deprecated_functionality#deprecated-functionality_desktop
This commit is contained in:
parent
ca5090298b
commit
8d8d1dd380
@ -9,6 +9,12 @@
|
|||||||
%endif
|
%endif
|
||||||
%bcond_with python2
|
%bcond_with python2
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 10
|
||||||
|
%bcond_with gtk2
|
||||||
|
%else
|
||||||
|
%bcond_without gtk2
|
||||||
|
%endif
|
||||||
|
|
||||||
# Necessary conditionals
|
# Necessary conditionals
|
||||||
%ifarch %{mono_arches}
|
%ifarch %{mono_arches}
|
||||||
%global SHARP 1
|
%global SHARP 1
|
||||||
@ -82,7 +88,7 @@
|
|||||||
Name: graphviz
|
Name: graphviz
|
||||||
Summary: Graph Visualization Tools
|
Summary: Graph Visualization Tools
|
||||||
Version: 7.0.5
|
Version: 7.0.5
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: EPL-1.0
|
License: EPL-1.0
|
||||||
URL: http://www.graphviz.org/
|
URL: http://www.graphviz.org/
|
||||||
Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
||||||
@ -123,7 +129,9 @@ BuildRequires: cairo-devel >= 1.1.10
|
|||||||
BuildRequires: pango-devel
|
BuildRequires: pango-devel
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
|
%if %{with gtk2}
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
|
%endif
|
||||||
BuildRequires: gd-devel
|
BuildRequires: gd-devel
|
||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
BuildRequires: swig >= 1.3.33
|
BuildRequires: swig >= 1.3.33
|
||||||
@ -237,6 +245,7 @@ Graphviz plugin for renderers based on gd. (Unless you absolutely have to use
|
|||||||
GIF, you are recommended to use the PNG format instead because of the better
|
GIF, you are recommended to use the PNG format instead because of the better
|
||||||
quality anti-aliased lines provided by the cairo+pango based renderer.)
|
quality anti-aliased lines provided by the cairo+pango based renderer.)
|
||||||
|
|
||||||
|
%if %{with gtk2}
|
||||||
%package gtk2
|
%package gtk2
|
||||||
Summary: Graphviz plugin for renderers based on gtk2
|
Summary: Graphviz plugin for renderers based on gtk2
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -245,6 +254,7 @@ Requires(postun): %{_bindir}/dot /sbin/ldconfig
|
|||||||
|
|
||||||
%description gtk2
|
%description gtk2
|
||||||
Graphviz plugin for renderers based on gtk2.
|
Graphviz plugin for renderers based on gtk2.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package graphs
|
%package graphs
|
||||||
Summary: Demo graphs for graphviz
|
Summary: Demo graphs for graphviz
|
||||||
@ -556,6 +566,7 @@ php --no-php-ini \
|
|||||||
%{_bindir}/dot -c 2>/dev/null || :
|
%{_bindir}/dot -c 2>/dev/null || :
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
|
|
||||||
|
%if %{with gtk2}
|
||||||
%post gtk2
|
%post gtk2
|
||||||
%{_bindir}/dot -c 2>/dev/null || :
|
%{_bindir}/dot -c 2>/dev/null || :
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
@ -563,6 +574,7 @@ php --no-php-ini \
|
|||||||
%postun gtk2
|
%postun gtk2
|
||||||
%{_bindir}/dot -c 2>/dev/null || :
|
%{_bindir}/dot -c 2>/dev/null || :
|
||||||
%{?ldconfig}
|
%{?ldconfig}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{MING}
|
%if %{MING}
|
||||||
# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config*
|
# run "dot -c" to generate plugin config in %%{_libdir}/graphviz/config*
|
||||||
@ -638,9 +650,11 @@ php --no-php-ini \
|
|||||||
%files gd
|
%files gd
|
||||||
%{_libdir}/graphviz/libgvplugin_gd.so.*
|
%{_libdir}/graphviz/libgvplugin_gd.so.*
|
||||||
|
|
||||||
|
%if %{with gtk2}
|
||||||
%files gtk2
|
%files gtk2
|
||||||
%{_libdir}/graphviz/libgvplugin_gtk.so.*
|
%{_libdir}/graphviz/libgvplugin_gtk.so.*
|
||||||
%{_libdir}/graphviz/libgvplugin_gdk.so.*
|
%{_libdir}/graphviz/libgvplugin_gdk.so.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files graphs
|
%files graphs
|
||||||
%dir %{_datadir}/graphviz
|
%dir %{_datadir}/graphviz
|
||||||
@ -730,6 +744,9 @@ php --no-php-ini \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 06 2023 Tomas Popela <tpopela@redhat.com> - 7.0.5-3
|
||||||
|
- Don't build GTK 2 bits on ELN/RHEL 10 as GTK 2 won't be available there
|
||||||
|
|
||||||
* Wed Jan 04 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0.5-2
|
* Wed Jan 04 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 7.0.5-2
|
||||||
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2
|
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user