Split GraphViz-dependent components into subpackages

Only a few parts of perl-SQL-Translator use GraphViz, but because
they're in the core package, the entire thing depends on graphviz
and its huge dependency chain (which includes GTK+2). Splitting
them out allows things that use SQL-Translator but not the
GraphViz features to avoid this dependency chain.
epel9
Adam Williamson 3 years ago
parent 0a4d97418e
commit 0e5941e2ce

@ -131,6 +131,21 @@ Summary: ER diagram producer for SQL::Translator
%description Producer-Diagram %description Producer-Diagram
ER diagram producer for SQL::Translator. ER diagram producer for SQL::Translator.
%package Producer-GraphViz
Summary: GraphViz diagram producer for SQL::Translator
%description Producer-GraphViz
GraphViz diagram producer for SQL::Translator.
%package -n sqlt-graph
Summary: sqlt-graph tool to create a graph from a database schema
Obsoletes: %{name} < 1.62-4
%description -n sqlt-graph
The sqlt-graph tool from %{name} that can automatically create a graph
from a database schema. Packaged separately to avoid the main package
depending on Graphviz.
%prep %prep
%setup -q -n SQL-Translator-%{version} %setup -q -n SQL-Translator-%{version}
# Fix shell-bangs # Fix shell-bangs
@ -160,12 +175,22 @@ make test
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man[13]/* %{_mandir}/man[13]/*
%exclude %{perl_vendorlib}/SQL/Translator/Producer/Diagram.pm %exclude %{perl_vendorlib}/SQL/Translator/Producer/Diagram.pm
%exclude %{perl_vendorlib}/SQL/Translator/Producer/GraphViz.pm
%exclude %{_mandir}/man3/SQL::Translator::Producer::Diagram.* %exclude %{_mandir}/man3/SQL::Translator::Producer::Diagram.*
%exclude %{_mandir}/man3/SQL::Translator::Producer::GraphViz.*
%exclude %{_bindir}/sqlt-graph
%files Producer-Diagram %files Producer-Diagram
%{perl_vendorlib}/SQL/Translator/Producer/Diagram.pm %{perl_vendorlib}/SQL/Translator/Producer/Diagram.pm
%{_mandir}/man3/SQL::Translator::Producer::Diagram.* %{_mandir}/man3/SQL::Translator::Producer::Diagram.*
%files Producer-GraphViz
%{perl_vendorlib}/SQL/Translator/Producer/GraphViz.pm
%{_mandir}/man3/SQL::Translator::Producer::GraphViz.*
%files -n sqlt-graph
%{_bindir}/sqlt-graph
%changelog %changelog
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.62-5 * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.62-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

Loading…
Cancel
Save