From 557e5c070b7f0a31650bf8483e1c45139b64fd3d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 14 Dec 2021 12:00:19 -0800 Subject: [PATCH] Split tools into a subpackage They have additional dependencies (GraphViz, Readonly) that the modules do not have, so packaging them separately will help cut down dependency sprawl for other things that only need the modules (e.g. SQL-Translator). --- perl-Text-RecordParser.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/perl-Text-RecordParser.spec b/perl-Text-RecordParser.spec index 533d144..7d9d78d 100644 --- a/perl-Text-RecordParser.spec +++ b/perl-Text-RecordParser.spec @@ -60,6 +60,16 @@ not, and it will be called implicitly). If the first line contains data, you can still bind your own field names via bind_fields. Either way, you can then use many methods to get at the data as arrays or hashes. +%package tools +Summary: %{name} command-line tools +Obsoletes: %{name} < 1.6.5-21 + +%description tools +This package contains the directly-runnable tools from %{name} +(tab2graph, tablify etc.) They are packaged separately so things that +only need the %{name} modules do not also pull in dependencies +specific to the tools. + %prep %setup -q -n Text-RecordParser-%{version} # Remove bundled modules @@ -81,10 +91,12 @@ make test %files %doc Changes README TODO -%{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man[13]/* +%files tools +%{_bindir}/* + %changelog * Fri Jul 23 2021 Fedora Release Engineering - 1.6.5-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild