From 0c600c7466d897de928f457424d518cd34b4fd0b Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 17 May 2021 12:55:17 -0400 Subject: [PATCH] 2021-05-17 Fred Gleason * Added code to generate 'debian/changelog' and 'debian/control' automatically. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ autogen.sh | 9 ++++++++- debian/Makefile.am | 5 +++++ debian/changelog | 5 ----- debian/changelog.src | 5 +++++ debian/{control => control.src} | 4 ++-- 6 files changed, 23 insertions(+), 8 deletions(-) delete mode 100644 debian/changelog create mode 100644 debian/changelog.src rename debian/{control => control.src} (93%) diff --git a/ChangeLog b/ChangeLog index 1935dd5f..cbb8567c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21695,3 +21695,6 @@ * Fixed a regressions that broke the 'make deb' target. 2021-05-17 Fred Gleason * Added 'compile' to the 'MAINTAINERCLEANFILES' rule. +2021-05-17 Fred Gleason + * Added code to generate 'debian/changelog' and 'debian/control' + automatically. diff --git a/autogen.sh b/autogen.sh index 0aa0fa14..584805e4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,6 @@ #!/bin/sh ## -## (C) Copyright 2002-2003,2016 Fred Gleason +## (C) Copyright 2002-2021 Fred Gleason ## ## Adapted from './autogen.sh' in the Jack Audio Connection Kit. ## Copyright (C) 2001-2003 Paul Davis, et al. @@ -20,6 +20,13 @@ ## Boston, MA 02111-1307 USA ## +# +# Generate Debian packaging metadata +# +DATESTAMP=`date +%a,\ %d\ %B\ %Y\ %T\ %z` +sed s/@VERSION@/`cat PACKAGE_VERSION`/ < debian/control.src > debian/control +sed s/@VERSION@/`cat PACKAGE_VERSION`/ < debian/changelog.src | sed "s/@DATESTAMP@/$DATESTAMP/" > debian/changelog + mkdir -p m4 libtoolize=libtoolize diff --git a/debian/Makefile.am b/debian/Makefile.am index 75183681..a31d4967 100644 --- a/debian/Makefile.am +++ b/debian/Makefile.am @@ -23,9 +23,14 @@ SUBDIRS = source EXTRA_DIST = changelog\ + changelog.src\ control\ + control.src\ copyright\ postinst\ postrm\ prerm\ rules + +MAINTAINERCLEANFILES = changelog\ + control diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index b66c2c24..00000000 --- a/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -rivendell (4.0.0beta0-1) unstable; urgency=medium - - * Initial release (Closes: #nnnn) - - -- Fred Gleason Wed, 05 May 2021 14:12:22 -0400 diff --git a/debian/changelog.src b/debian/changelog.src new file mode 100644 index 00000000..6d303f49 --- /dev/null +++ b/debian/changelog.src @@ -0,0 +1,5 @@ +rivendell (@VERSION@-1) unstable; urgency=medium + + * Beta release (see ChangeLog for details) + + -- Fred Gleason @DATESTAMP@ diff --git a/debian/control b/debian/control.src similarity index 93% rename from debian/control rename to debian/control.src index 7c504a49..3a7c7eca 100644 --- a/debian/control +++ b/debian/control.src @@ -7,7 +7,7 @@ Standards-Version: 4.4.1 Package: rivendell Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, mysql-client, libqt5sql5-mysql, apache2, curl, rsyslog, rivendell-pypad (= @VERSION@) Description: Radio Broadcast Automation System Rivendell is a complete radio broadcast automation solution, with facilities for the acquisition, management, scheduling and playout of @@ -16,7 +16,7 @@ Description: Radio Broadcast Automation System Package: rivendell-importers Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, rivendell Description: Library importers for the Rivendell Broadcast Automation System This package contains various importer scripts, which can be used to import audio from existing legacy automation systems into Rivendell.