commit 1faa8b2183cd74a517f5700a195b575048ad5f6c
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Mon Aug 7 09:00:34 2023 +0300
Fix build with webp and gettext.
2d8d68cfcc1cf4fc8861671e185fdf235dcf9740.patch | 161 +++++++++++++++++++++++++
40ecd71ff361442f1579089481619dd7cae90ffd.patch | 24 ++++
motion.spec | 9 +-
3 files changed, 193 insertions(+), 1 deletion(-)
---
diff --git a/2d8d68cfcc1cf4fc8861671e185fdf235dcf9740.patch
b/2d8d68cfcc1cf4fc8861671e185fdf235dcf9740.patch
new file mode 100644
index 0000000..7f21166
--- /dev/null
+++ b/2d8d68cfcc1cf4fc8861671e185fdf235dcf9740.patch
@@ -0,0 +1,161 @@
+From 2d8d68cfcc1cf4fc8861671e185fdf235dcf9740 Mon Sep 17 00:00:00 2001
+From: David Seifert <16636962+SoapGentoo(a)users.noreply.github.com>
+Date: Fri, 30 Jun 2023 05:37:50 +0200
+Subject: [PATCH] Gettext 0.22 (#1681)
+
+* po: fix gettext 0.22 format specifier
+
+Bug:
https://bugs.gentoo.org/908965
+Bug:
https://savannah.gnu.org/bugs/index.php?64334#comment1
+
+* Autotools: fix `make distcheck`
+
+* use correct `dist_` specifiers for including files in tarball
+* do not override `docdir`, since this is a user variable
+* include headers in tarball
+---
+ Makefile.am | 11 +++++------
+ configure.ac | 1 -
+ man/Makefile.am | 1 -
+ po/de.po | 2 +-
+ po/fi.po | 2 +-
+ src/Makefile.am | 52 ++++++++++++++++++++++++++++++++++++-------------
+ 6 files changed, 46 insertions(+), 23 deletions(-)
+ delete mode 100644 man/Makefile.am
+
+diff --git a/Makefile.am b/Makefile.am
+index 3d2f968e2..5ae03cd2c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,19 +1,18 @@
+ ACLOCAL_AMFLAGS = -I m4
+
+-SUBDIRS = src po man
++SUBDIRS = src po
+
+-sysconfdir = @sysconfdir@/$(PACKAGE)
+-sysconf_DATA = \
++pkgsysconfdir = $(sysconfdir)/@PACKAGE@
++dist_pkgsysconf_DATA = \
+ data/motion-dist.conf \
+ data/camera1-dist.conf \
+ data/camera2-dist.conf \
+ data/camera3-dist.conf \
+ data/camera4-dist.conf
+
+-man_MANS = man/motion.1
++dist_man_MANS = man/motion.1
+
+-docdir = $(datadir)/doc/@PACKAGE@
+-doc_DATA = \
++dist_doc_DATA = \
+ doc/mask1.png \
+ doc/normal.jpg \
+ doc/outputmotion1.jpg \
+diff --git a/configure.ac b/configure.ac
+index dfcf5eae2..ce588f65b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -496,7 +496,6 @@ AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+ po/Makefile.in
+- man/Makefile
+ data/camera1-dist.conf
+ data/camera2-dist.conf
+ data/camera3-dist.conf
+diff --git a/man/Makefile.am b/man/Makefile.am
+deleted file mode 100644
+index 14aa069f0..000000000
+--- a/man/Makefile.am
++++ /dev/null
+@@ -1 +0,0 @@
+-man_MANS = motion.1
+\ No newline at end of file
+diff --git a/po/de.po b/po/de.po
+index 9142c9195..ccd5f09d7 100644
+--- a/po/de.po
++++ b/po/de.po
+@@ -3458,7 +3458,7 @@ msgstr "Sprache: Deutsch"
+ #: src/util.c
+ #, c-format
+ msgid "Could not allocate %llu bytes of memory!"
+-msgstr "%Llu Bytes Speicher konnten nicht zugeordnet werden!"
++msgstr "%llu Bytes Speicher konnten nicht zugeordnet werden!"
+
+ #: src/util.c
+ #, c-format
+diff --git a/po/fi.po b/po/fi.po
+index 1afbdb68b..d3117a922 100644
+--- a/po/fi.po
++++ b/po/fi.po
+@@ -3432,7 +3432,7 @@ msgstr "Kieli: englanti"
+ #: src/util.c
+ #, c-format
+ msgid "Could not allocate %llu bytes of memory!"
+-msgstr "%Llu-tavua muistia ei voitu varata!"
++msgstr "%llu-tavua muistia ei voitu varata!"
+
+ #: src/util.c
+ #, c-format
+diff --git a/src/Makefile.am b/src/Makefile.am
+index f93decf55..6f9d02e6b 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,17 +1,43 @@
+-AM_CPPFLAGS= -Dsysconfdir=\"$(sysconfdir)/motion\"
-DLOCALEDIR=\"$(DESTDIR)$(localedir)\"
+-
+-if INC_MMAL_SRC
+-MMAL_SRC=raspicam/RaspiCamControl.c raspicam/RaspiCLI.c
+-endif
+-
+-LIBS = @LIBINTL@ @LIBS@
++AM_CPPFLAGS= -Dsysconfdir=\"$(sysconfdir)/motion\"
-DLOCALEDIR=\"$(localedir)\"
++LDADD = $(LIBINTL)
+
+ bin_PROGRAMS = motion
+
+-motion_SOURCES = motion.c logger.c conf.c draw.c jpegutils.c video_loopback.c \
+- video_v4l2.c video_common.c video_bktr.c netcam.c netcam_http.c netcam_ftp.c \
+- netcam_jpeg.c netcam_wget.c netcam_rtsp.c track.c alg.c event.c picture.c \
+- rotate.c translate.c ffmpeg.c util.c dbse.c webu_status.c \
+- webu.c webu_html.c webu_stream.c webu_text.c mmalcam.c $(MMAL_SRC)
+-
++motion_SOURCES = \
++ alg.h alg.c \
++ conf.h conf.c \
++ dbse.h dbse.c \
++ draw.h draw.c \
++ event.h event.c \
++ ffmpeg.h ffmpeg.c \
++ jpegutils.h jpegutils.c \
++ logger.h logger.c \
++ mmalcam.h mmalcam.c \
++ motion.h motion.c \
++ netcam.h netcam.c \
++ netcam_ftp.h netcam_ftp.c \
++ netcam_http.h netcam_http.c \
++ netcam_jpeg.h netcam_jpeg.c \
++ netcam_rtsp.h netcam_rtsp.c \
++ netcam_wget.h netcam_wget.c \
++ picture.h picture.c \
++ rotate.h rotate.c \
++ track.h track.c \
++ translate.h translate.c \
++ util.h util.c \
++ video_bktr.h video_bktr.c \
++ video_common.h video_common.c \
++ video_loopback.h video_loopback.c \
++ video_v4l2.h video_v4l2.c \
++ webu.h webu.c \
++ webu_html.h webu_html.c \
++ webu_status.h webu_status.c \
++ webu_stream.h webu_stream.c \
++ webu_text.h webu_text.c \
++ mmx.h pwc-ioctl.h
+
++if INC_MMAL_SRC
++motion_SOURCES += \
++ raspicam/RaspiCamControl.h raspicam/RaspiCamControl.c \
++ raspicam/RaspiCLI.h raspicam/RaspiCLI.c
++endif
diff --git a/40ecd71ff361442f1579089481619dd7cae90ffd.patch
b/40ecd71ff361442f1579089481619dd7cae90ffd.patch
new file mode 100644
index 0000000..71019ab
--- /dev/null
+++ b/40ecd71ff361442f1579089481619dd7cae90ffd.patch
@@ -0,0 +1,24 @@
+From 40ecd71ff361442f1579089481619dd7cae90ffd Mon Sep 17 00:00:00 2001
+From: Piotr Mionskowski <piotr.mionskowski(a)gmail.com>
+Date: Sun, 9 Jul 2023 01:44:49 +0200
+Subject: [PATCH] Include libwebp when WEBP is enabled
+
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index ce588f65..ee45ac37 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -191,8 +191,8 @@ AS_IF([test "${WEBP}" = "yes" ], [
+ AS_IF([pkg-config libwebpmux ], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_WEBP], [1], [Define to 1 if WEBP is around])
+- TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags libwebpmux`
+- TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs libwebpmux`
++ TEMP_CFLAGS="$TEMP_CFLAGS "`pkg-config --cflags libwebpmux libwebp`
++ TEMP_LIBS="$TEMP_LIBS "`pkg-config --libs libwebpmux libwebp`
+ ],[
+ AC_MSG_RESULT(no)
+ ]
diff --git a/motion.spec b/motion.spec
index 089f8f1..79f8ae5 100644
--- a/motion.spec
+++ b/motion.spec
@@ -24,7 +24,7 @@
Name: motion
Version: 4.5.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A motion detection system
License: GPL-2.0-or-later
@@ -32,6 +32,10 @@ URL:
https://motion-project.github.io/
Source0:
https://github.com/Motion-Project/motion/archive/release-%{version}.tar.g...
Source1: motion.service
Source2: motion.tmpfiles
+#
https://github.com/Motion-Project/motion/commit/40ecd71ff361442f157908948...
+Patch0: 40ecd71ff361442f1579089481619dd7cae90ffd.patch
+#
https://github.com/Motion-Project/motion/issues/1700
+Patch1: 2d8d68cfcc1cf4fc8861671e185fdf235dcf9740.patch
BuildRequires: libjpeg-devel
BuildRequires: zlib-devel
@@ -139,6 +143,9 @@ find /var/motion -user root -group root -exec chown motion:video
'{}' ';'
%{_tmpfilesdir}/%{name}.conf
%changelog
+* Fri Aug 04 2023 Vasiliy N. Glazov <vascom2(a)gmail.com> - 4.5.1-4
+- Fix Build with webp
+
* Wed Aug 02 2023 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
4.5.1-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild