commit 46411ed63b5e8e5115f368c02da87d281fb7e439
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Sep 17 14:39:12 2024 +0100
Update to 4.7.0
.gitignore | 1 +
motion.spec | 15 ++++++++++-----
sources | 2 +-
3 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3eebc17..15479cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@ motion-3.3.0.tar.gz
/motion-release-4.5.0.tar.gz
/motion-release-4.5.1.tar.gz
/motion-release-4.6.0.tar.gz
+/motion-release-4.7.0.tar.gz
diff --git a/motion.spec b/motion.spec
index 2e3e3dd..fef3747 100644
--- a/motion.spec
+++ b/motion.spec
@@ -23,8 +23,8 @@
%global _lto_cflags %{nil}
Name: motion
-Version: 4.6.0
-Release: 3%{?dist}
+Version: 4.7.0
+Release: 1%{?dist}
Summary: A motion detection system
License: GPL-2.0-or-later
@@ -92,11 +92,13 @@ mv %{buildroot}%{_sysconfdir}/%{name}/camera3-dist.conf
%{buildroot}%{_sysconfdi
mv %{buildroot}%{_sysconfdir}/%{name}/camera4-dist.conf
%{buildroot}%{_sysconfdir}/%{name}/camera4.conf
#Delete doc directory
rm -rf %{buildroot}%{_datadir}/doc
+#Fix path
+sed -i 's|/usr/etc|/etc|g' %{buildroot}%{_sysconfdir}/%{name}/motion.conf
#We change the PID file path to match the one in the startup script
-sed -i 's|/var/run/motion/motion.pid|/var/run/motion.pid|g'
%{buildroot}%{_sysconfdir}/%{name}/motion.conf
+sed -i 's|; pid_file value|pid_file /var/run/motion.pid|g'
%{buildroot}%{_sysconfdir}/%{name}/motion.conf
#We set the log file and target directory - logging is for 3.3 branch
-sed -i 's|;logfile /tmp/motion.log|logfile /var/log/motion.log|g'
%{buildroot}%{_sysconfdir}/%{name}/motion.conf
-sed -i 's|target_dir /tmp/motion|target_dir /var/motion|g'
%{buildroot}%{_sysconfdir}/%{name}/motion.conf
+sed -i 's|; log_file value|log_file /var/log/motion.log|g'
%{buildroot}%{_sysconfdir}/%{name}/motion.conf
+sed -i 's|; target_dir value|target_dir /var/motion|g'
%{buildroot}%{_sysconfdir}/%{name}/motion.conf
#We install our startup script
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
#We install tmpfiles configuration
@@ -139,6 +141,9 @@ find /var/motion -user root -group root -exec chown motion:video
'{}' ';'
%{_tmpfilesdir}/%{name}.conf
%changelog
+* Tue Sep 17 2024 Leigh Scott <leigh123linux(a)gmail.com> - 4.7.0-1
+- Update to 4.7.0
+
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
4.6.0-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
diff --git a/sources b/sources
index fc2d847..de27c56 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (motion-release-4.6.0.tar.gz) =
96984254e316694e98ac55a0216c712d7280a3b5b8d5e1bca17282eee5426022c56e54aa4175269117c6128a3a834a550528bfc2a04c9f5b670e41e740456d29
+SHA512 (motion-release-4.7.0.tar.gz) =
121be986ef0d4a2dd4f8147ee9a6513d1fe373852f351953d12a914a832c31fa83365b2a285f1449de3f1f6156ad84b36f2fe90fe9dff966e27c793b1753fafc