From a7972f338cbbf544c096cd24c391a710dd520005 Mon Sep 17 00:00:00 2001 From: Silvan Date: Sun, 27 Aug 2023 16:40:59 +0200 Subject: [PATCH] plugins/spec-create: add LICENSES directory if present; templates/kde5: minor changes --- plugins/spec-create.in | 11 +++++++++++ templates/kde5 | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/spec-create.in b/plugins/spec-create.in index 04c1e0f..9b6b3dc 100644 --- a/plugins/spec-create.in +++ b/plugins/spec-create.in @@ -838,6 +838,9 @@ echo "$line" | sed "s|.*=[\ \t]*\"\(.*\)\"|\1|") ..." # vim highlight need a " MANUAL THANKS' + local standard_docs_dirlist=' + LICENSES' + local standard_docs_devel_list=' BACKLOG BUGS @@ -857,6 +860,14 @@ echo "$line" | sed "s|.*=[\ \t]*\"\(.*\)\"|\1|") ..." # vim highlight need a " # ignore empty documentation files [ -s $tmpdir/$pck_rootdir/$currdoc ] && standard_docs="\ +${standard_docs:+$standard_docs }$currdoc" + done + done + for doc in $standard_docs_dirlist; do + currdocs=$(cd $tmpdir/$pck_rootdir && ls -d $doc 2>/dev/null) + for currdoc in $currdocs; do + [ -d $tmpdir/$pck_rootdir/$currdoc ] && + standard_docs="\ ${standard_docs:+$standard_docs }$currdoc" done done diff --git a/templates/kde5 b/templates/kde5 index b0d0d96..75d9474 100644 --- a/templates/kde5 +++ b/templates/kde5 @@ -3,14 +3,13 @@ Name: @pck_name@ Version: @pck_version@ Release: @spec_first_release@@DISTRO_rpm@ -Summary: KDE Frameworks 5 ... +Summary: ... Group: ... Vendor: @VENDOR@ Distribution: @DISTRO@ Packager: @packager_fullname@ <@packager_email@> URL: https://kde.org Source: ... -# Source: https://download.kde.org/stable/frameworks/%{majver}/...-%{version}.tar.xz License: ... ## AUTOBUILDREQ-BEGIN ## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.