GTK2 stuff Split to the gtk2 subpackage

Resolves: rhbz#2032671
This commit is contained in:
Jaroslav Škarvada 2021-12-15 21:19:21 +01:00
parent 6bb19c4e3e
commit 57287b1c27

View File

@ -68,7 +68,7 @@
Name: graphviz Name: graphviz
Summary: Graph Visualization Tools Summary: Graph Visualization Tools
Version: 2.50.0 Version: 2.50.0
Release: 1%{?dist} Release: 2%{?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
@ -199,6 +199,15 @@ 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.)
%package gtk2
Summary: Graphviz plugin for renderers based on gtk2
Requires: %{name} = %{version}-%{release}
Requires(post): %{_bindir}/dot /sbin/ldconfig
Requires(postun): %{_bindir}/dot /sbin/ldconfig
%description gtk2
Graphviz plugin for renderers based on gtk2.
%package graphs %package graphs
Summary: Demo graphs for graphviz Summary: Demo graphs for graphviz
@ -488,6 +497,14 @@ php --no-php-ini \
%{_bindir}/dot -c 2>/dev/null || : %{_bindir}/dot -c 2>/dev/null || :
%{?ldconfig} %{?ldconfig}
%post gtk2
%{_bindir}/dot -c 2>/dev/null || :
%{?ldconfig}
%postun gtk2
%{_bindir}/dot -c 2>/dev/null || :
%{?ldconfig}
%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*
%post ming %post ming
@ -521,6 +538,8 @@ php --no-php-ini \
%exclude %{_libdir}/graphviz/*/* %exclude %{_libdir}/graphviz/*/*
%exclude %{_libdir}/graphviz/libgvplugin_gd.* %exclude %{_libdir}/graphviz/libgvplugin_gd.*
%exclude %{_libdir}/graphviz/libgvplugin_gtk.*
%exclude %{_libdir}/graphviz/libgvplugin_gdk.*
%if %{DEVIL} %if %{DEVIL}
%exclude %{_libdir}/graphviz/libgvplugin_devil.* %exclude %{_libdir}/graphviz/libgvplugin_devil.*
%endif %endif
@ -549,6 +568,10 @@ php --no-php-ini \
%files gd %files gd
%{_libdir}/graphviz/libgvplugin_gd.so.* %{_libdir}/graphviz/libgvplugin_gd.so.*
%files gtk2
%{_libdir}/graphviz/libgvplugin_gtk.so.*
%{_libdir}/graphviz/libgvplugin_gdk.so.*
%files graphs %files graphs
%dir %{_datadir}/graphviz %dir %{_datadir}/graphviz
%{_datadir}/graphviz/graphs %{_datadir}/graphviz/graphs
@ -629,6 +652,10 @@ php --no-php-ini \
%{_mandir}/man3/*.3tcl* %{_mandir}/man3/*.3tcl*
%changelog %changelog
* Wed Dec 15 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.50.0-2
- GTK2 stuff Split to the gtk2 subpackage
Resolves: rhbz#2032671
* Mon Dec 6 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.50.0-1 * Mon Dec 6 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.50.0-1
- New version - New version
Resolves: rhbz#2029089 Resolves: rhbz#2029089