commit 032048c38e63b8d381d51b023ce9c27f8ed13ae3
Author: Göran Uddeborg <goeran(a)uddeborg.se>
Date: Sat Jan 26 20:41:02 2019 +0100
Update to 1.0.0
.gitignore | 3 +--
mythtv-status-update-motd.patch | 50 -----------------------------------------
mythtv-status.spec | 20 +++++++++++------
sources | 2 +-
sysconfig | 5 +++++
5 files changed, 20 insertions(+), 60 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3493bd3..9f62031 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-mythtv-status-0.10.4.tar.gz
-/mythtv-status-0.10.8.tar.gz
+/mythtv-status-1.0.0.tar.gz
diff --git a/mythtv-status.spec b/mythtv-status.spec
index a5e6128..39f5238 100644
--- a/mythtv-status.spec
+++ b/mythtv-status.spec
@@ -1,14 +1,17 @@
Name: mythtv-status
-Version: 0.10.8
+Version: 1.0.0
Release: 1%{?dist}
Summary: Get the current status of your MythTV system at the command line
Summary(sv): Hämta ett MythTV-systems status på kommandoraden
License: GPLv3
URL:
http://www.etc.gen.nz/projects/mythtv/mythtv-status.html
Source0:
http://www.etc.gen.nz/projects/mythtv/tarballs/mythtv-status-%{version}.t...
+Source1: sysconfig
# Patch for Fedora specifics
Patch0: mythtv-status-fedora.patch
-Patch1: mythtv-status-update-motd.patch
+# Perl warns about uninitialized value in list assignment.
+# Reported upstreams via e-mail.
+Patch2: mythtv-status-undefined.patch
BuildArch: noarch
# For perl dependency auto-detection
BuildRequires: perl-generators
@@ -28,7 +31,7 @@ command line. It can optionally append it to the system message of the
day
(MOTD) on a regular basis.
If you want to enable motd update, edit /etc/sysconfig/mythtv-status and change
-UPDATEMOTD=no to UPDATEMOTD=yes. The update is run hourly. The resulting motd
+UPDATE_MOTD=no to UPDATE_MOTD=yes. The update is run hourly. The resulting motd
is based on /etc/motd.stub, added with the output of mythtv-status.
%description -l sv
@@ -37,14 +40,14 @@ kommandoraden. Möjligheten finns även att lägga till statusen till
dagens
systemmeddelande (MOTD) med regelbundna intervaller.
För att aktivera motd-uppdateringar redigerar man
-/etc/sysconfig/mythtv-status och ändrar UPDATEMOTD=no till UPDATEMOTD=yes.
+/etc/sysconfig/mythtv-status och ändrar UPDATE_MOTD=no till UPDATE_MOTD=yes.
Uppdateringen körs en gång i timmen. Den resulterande motd:n baseras på
/etc/motd.stub med utskriften från mythtv-status tillagd.
%prep
%setup -q
%patch0 -p1 -b .orig
-%patch1 -p1 -b .fedora
+%patch2 -p1 -b .undefined
%build
pod2man bin/mythtv-status man/mythtv-status.1
@@ -61,7 +64,7 @@ install -p -m 644 man/* %{buildroot}%{_mandir}/man1
# Sysconfig file
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
-echo -e "HOST=127.0.0.1\nUPDATEMOTD=no" >
%{buildroot}%{_sysconfdir}/sysconfig/%{name}
+install -p -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/sysconfig/%{name}
# Cron file to update motd, doesn't do anything if not enabled in sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/cron.hourly
@@ -75,9 +78,12 @@ chmod 755
%{buildroot}%{_sysconfdir}/cron.hourly/mythtv-update-motd.cron
%{_sbindir}/mythtv*
%{_mandir}/man1/mythtv*.1.gz
%{_sysconfdir}/cron.hourly/mythtv-update-motd.cron
-%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%config %{_sysconfdir}/sysconfig/%{name}
%changelog
+* Sat Jan 26 2019 Göran Uddeborg <goeran(a)Uddeborg.se> - 1.0.0-1
+- Update to 1.0.0
+
* Sun Dec 23 2018 Sérgio Basto <sergio(a)serjux.com> - 0.10.8-1
- Update to 0.10.8
diff --git a/sources b/sources
index 0fc438e..70f5e16 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3ae4b0c58f041e55a3155a28773214ae mythtv-status-0.10.8.tar.gz
+137ae016100b476464370ffe99e78a48 mythtv-status-1.0.0.tar.gz
diff --git a/sysconfig b/sysconfig
new file mode 100644
index 0000000..ece30ae
--- /dev/null
+++ b/sysconfig
@@ -0,0 +1,5 @@
+# Configurations for the update of /etc/motd
+# Set UPDATE_MOTD to "yes" to enable updates.
+UPDATE_MOTD=no
+# Talk the MythTV server on this host.
+HOST=127.0.0.1