Accepting request 236327 from home:adra:branches:devel:libraries:c_c++

Update to version 1.0.1, Updated build requirements, Removed/Added patches

OBS-URL: https://build.opensuse.org/request/show/236327
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/v4l-utils?expand=0&rev=27
This commit is contained in:
Stephan Kulow 2014-06-05 06:18:07 +00:00 committed by Git OBS Bridge
parent 49a5bc8908
commit 8803c1ae11
9 changed files with 111 additions and 128 deletions

View File

@ -1,4 +1,5 @@
libv4l libv4l
libv4l1-0 libv4l1-0
libv4l2-0 libv4l2-0
libv4l2rds0
libv4lconvert0 libv4lconvert0

View File

@ -0,0 +1,11 @@
--- lib/libdvbv5/descriptors.c.orig 2014-01-13 21:51:46.000000000 +0200
+++ lib/libdvbv5/descriptors.c 2014-06-04 21:49:02.691930747 +0300
@@ -1007,7 +1007,7 @@
{
char t[4];
snprintf (t, sizeof(t), "%02x ", (unsigned int) data[i]);
- strncat (hex, t, sizeof(hex));
+ strncat (hex, t, sizeof(hex) - 1);
if (data[i] > 31 && data[i] < 128 )
ascii[j] = data[i];
else

View File

@ -1,8 +0,0 @@
--- utils/Makefile.orig 2012-04-06 19:55:44.000000000 +0300
+++ utils/Makefile 2012-04-11 23:14:12.100253708 +0300
@@ -1,4 +1,4 @@
-SUBDIRS=libv4l2util libmedia_dev decode_tm6000 keytable rds v4l2-compliance v4l2-ctl v4l2-dbg v4l2-sysfs-path xc3028-firmware dvb
+SUBDIRS=libv4l2util libmedia_dev decode_tm6000 keytable v4l2-compliance v4l2-ctl v4l2-dbg v4l2-sysfs-path xc3028-firmware dvb
all install:
@for i in $(SUBDIRS); do \

View File

@ -1,21 +0,0 @@
Index: v4l-utils-0.8.8/utils/keytable/Makefile
===================================================================
--- v4l-utils-0.8.8.orig/utils/keytable/Makefile
+++ v4l-utils-0.8.8/utils/keytable/Makefile
@@ -1,4 +1,5 @@
TARGETS = ir-keytable
+UDEVRULESDIR=/lib/udev/rules.d
all: $(TARGETS)
@@ -37,8 +38,8 @@ install: $(TARGETS)
install -m 644 -p rc_maps.cfg $(DESTDIR)/etc
install -m 755 -d $(DESTDIR)/etc/rc_keymaps
install -m 644 -p rc_keymaps/* $(DESTDIR)/etc/rc_keymaps
- install -m 755 -d $(DESTDIR)/lib/udev/rules.d
- install -m 644 -p 70-infrared.rules $(DESTDIR)/lib/udev/rules.d
+ install -m 755 -d $(DESTDIR)/$(UDEVRULESDIR)
+ install -m 644 -p 70-infrared.rules $(DESTDIR)/$(UDEVRULESDIR)
install -m 755 -d $(DESTDIR)$(MANDIR)/man1
install -m 644 -p ir-keytable.1 $(DESTDIR)$(MANDIR)/man1

View File

@ -1,32 +0,0 @@
From ac8eb4d8e1c16b907e795da123a032869c77c56f Mon Sep 17 00:00:00 2001
From: Riku Voipio <riku.voipio@linaro.org>
Date: Tue, 22 Jan 2013 12:44:48 +0200
Subject: [PATCH] libv4lsyscall-priv.h: use openat when available
New architectures such as 64-Bit arm build kernels without legacy
system calls - Such as the the no-at system calls. Thus, use
SYS_openat whenever it is available.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
lib/libv4lconvert/libv4lsyscall-priv.h | 5 +++++
1 file changed, 5 insertions(+)
Index: v4l-utils-0.8.9/lib/libv4lconvert/libv4lsyscall-priv.h
===================================================================
--- v4l-utils-0.8.9.orig/lib/libv4lconvert/libv4lsyscall-priv.h
+++ v4l-utils-0.8.9/lib/libv4lconvert/libv4lsyscall-priv.h
@@ -72,8 +72,13 @@ typedef off_t __off_t;
#ifndef CONFIG_SYS_WRAPPER
+#ifdef SYS_openat
+#define SYS_OPEN(file, oflag, mode) \
+ syscall(SYS_openat, AT_FDCWD, (const char *)(file), (int)(oflag), (mode_t)(mode))
+#else
#define SYS_OPEN(file, oflag, mode) \
syscall(SYS_open, (const char *)(file), (int)(oflag), (mode_t)(mode))
+#endif
#define SYS_CLOSE(fd) \
syscall(SYS_close, (int)(fd))
#define SYS_IOCTL(fd, cmd, arg) \

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e5511c252b3c320d0b03418f7ee19b42d00ed0871c6b525779007416e46d08e
size 460681

3
v4l-utils-1.0.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc0132e82a18dfad9619be3abf50c206e2f449b1c14440cde36f25874fdce7df
size 971381

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Wed Jun 4 19:51:21 UTC 2014 - asterios.dramis@gmail.com
- Update to version 1.0.1:
* Lots of changes: See ChangeLog for details.
- Removed ImageMagick and sysfsutils-devel build requirements (not needed
anymore).
- Added pkg-config build requirement.
- Use desktop-file-utils instead of update-desktop-files for openSUSE > 12.1.
Added desktop-file-utils build requirement for this.
- Removed the following patches:
* disable_rds_compilation.patch (not needed anymore).
* udev-rules-dir.patch (fixed upstream).
* use-openat-if-available.patch (fixed upstream).
- Added a patch "bufferoverflowstrncat.patch" to fix rpm post build check error
"Statement might be overflowing a buffer in strncat".
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 2 10:02:04 UTC 2014 - dmueller@suse.com Thu Jan 2 10:02:04 UTC 2014 - dmueller@suse.com

View File

@ -16,14 +16,11 @@
# #
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190 %define _udevdir %(pkg-config --variable udevdir udev)
%define _udevrulesdir /usr/lib/udev/rules.d %define so_ver 0
%else
%define _udevrulesdir /lib/udev/rules.d
%endif
Name: v4l-utils Name: v4l-utils
Version: 0.8.9 Version: 1.0.1
Release: 0 Release: 0
Summary: Utilities for video4linux and DVB devices Summary: Utilities for video4linux and DVB devices
License: GPL-2.0+ and GPL-2.0 License: GPL-2.0+ and GPL-2.0
@ -31,33 +28,24 @@ Group: Hardware/TV
Url: http://linuxtv.org/downloads/v4l-utils/ Url: http://linuxtv.org/downloads/v4l-utils/
Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2 Source0: http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
Source100: baselibs.conf Source100: baselibs.conf
# PATCH-FIX-OPENSUSE disable_rds_compilation.patch asterios.dramis@gmail.com -- Disable compilation of utils/rds (it isn't installed anyway) as it fails to compile with i2c-dev.h from i2c-tools (needs the one from linux-glibc-devel) # PATCH-FIX-UPSTREAM bufferoverflowstrncat.patch asterios.dramis@gmail.com -- Fix rpm post build check error "Statement might be overflowing a buffer in strncat"
Patch0: disable_rds_compilation.patch Patch0: bufferoverflowstrncat.patch
# PATCH-FIX-UPSTREAM udev-rules-dir.patch fcrozat@suse.com -- allow udev rules directory to be overridden %if 0%{?suse_version} > 1210
Patch1: udev-rules-dir.patch BuildRequires: desktop-file-utils
Patch2: use-openat-if-available.patch %else
# Only needed to patch broken images in the upstream tarball BuildRequires: update-desktop-files
BuildRequires: ImageMagick %endif
BuildRequires: kernel-headers BuildRequires: kernel-headers
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libqt4-devel BuildRequires: libqt4-devel
%if 0%{?suse_version} > 1130 BuildRequires: pkg-config
BuildRequires: sysfsutils-devel
%else
BuildRequires: sysfsutils
%endif
BuildRequires: udev BuildRequires: udev
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Requires: libv4l = %{version} Requires: libv4l = %{version}
Requires: udev Requires: udev
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
v4l-utils is a collection of various video4linux (V4L) and DVB utilities. The v4l-utils is a collection of various video4linux (V4L) and DVB utilities.
main v4l-utils package contains cx18-ctl, ir-keytable, ivtv-ctl, v4l2-ctl and
v4l2-sysfs-path.
%package devel-tools %package devel-tools
Summary: Utilities for v4l2 / DVB driver development and debugging Summary: Utilities for v4l2 / DVB driver development and debugging
@ -66,8 +54,7 @@ Group: Hardware/TV
Requires: libv4l = %{version} Requires: libv4l = %{version}
%description devel-tools %description devel-tools
Utilities for v4l2 / DVB driver authors: decode_tm6000, v4l2-compliance and Utilities for v4l2 / DVB driver authors.
v4l2-dbg.
%package -n libv4l %package -n libv4l
Summary: Collection of video4linux support libraries Summary: Collection of video4linux support libraries
@ -78,53 +65,65 @@ Group: System/Libraries
libv4l is a collection of libraries which adds a thin abstraction layer on libv4l is a collection of libraries which adds a thin abstraction layer on
top of video4linux2 devices. The purpose of this (thin) layer is to make it top of video4linux2 devices. The purpose of this (thin) layer is to make it
easy for application writers to support a wide variety of devices without easy for application writers to support a wide variety of devices without
having to write separate code for different devices in the same class. libv4l having to write separate code for different devices in the same class.
consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
%package -n libv4l1-0 %package -n libv4l1-%{so_ver}
Summary: Video4linux support library Summary: Video4linux support library
License: LGPL-2.1+ License: LGPL-2.1+
Group: System/Libraries Group: System/Libraries
Requires: libv4l Requires: libv4l
%description -n libv4l1-0 %description -n libv4l1-%{so_ver}
libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
of the drivers for those devices supporting v4l1 compatibility (which many of the drivers for those devices supporting v4l1 compatibility (which many
v4l2 drivers do not). v4l2 drivers do not).
This package contains shared lib for packages that use libv4l1.so.0 This package contains shared lib for packages that use libv4l1.
%package -n libv4l2-0 %package -n libv4l2-%{so_ver}
Summary: Video4linux support library Summary: Video4linux support library
License: LGPL-2.1+ License: LGPL-2.1+
Group: System/Libraries Group: System/Libraries
Requires: libv4l Requires: libv4l
%description -n libv4l2-0 %description -n libv4l2-%{so_ver}
libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
application transparent libv4lconvert conversion where necessary. application transparent libv4lconvert conversion where necessary.
This package contains shared lib for packages that use libv4l2.so.0 This package contains shared lib for packages that use libv4l2.
%package -n libv4lconvert0 %package -n libv4l2rds%{so_ver}
Summary: Video4linux support library Summary: Video4linux support library
License: LGPL-2.1+ License: LGPL-2.1+
Group: System/Libraries Group: System/Libraries
Requires: libv4l Requires: libv4l
%description -n libv4lconvert0 %description -n libv4l2rds%{so_ver}
libv4l2rds offers decoding raw RDS data from V4L2 Radio devices and simple ways
to access the received RDS information.
This package contains shared lib for packages that use libv4l2rds.
%package -n libv4lconvert%{so_ver}
Summary: Video4linux support library
License: LGPL-2.1+
Group: System/Libraries
Requires: libv4l
%description -n libv4lconvert%{so_ver}
libv4lconvert offers functions to convert from any (known) pixel-format libv4lconvert offers functions to convert from any (known) pixel-format
to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420. to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420.
This package contains shared lib for packages that use libv4lconvert.so.0 This package contains shared lib for packages that use libv4lconvert.
%package -n libv4l-devel %package -n libv4l-devel
Summary: Development files for libv4l Summary: Development files for libv4l
License: LGPL-2.1+ License: LGPL-2.1+
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libv4l1-0 = %{version} Requires: libv4l1-%{so_ver} = %{version}
Requires: libv4l2-0 = %{version} Requires: libv4l2-%{so_ver} = %{version}
Requires: libv4lconvert0 = %{version} Requires: libv4l2rds%{so_ver} = %{version}
Requires: libv4lconvert%{so_ver} = %{version}
%description -n libv4l-devel %description -n libv4l-devel
The libv4l-devel package contains libraries and header files for The libv4l-devel package contains libraries and header files for
@ -142,47 +141,59 @@ qv4l2 is a test control and streaming test application for video4linux.
%prep %prep
%setup -q %setup -q
%patch0 %patch0
%patch1 -p1
%patch2 -p1
%build %build
make PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags}" %{?_smp_mflags} %configure --disable-static --disable-silent-rules --with-udevdir=%{_udevdir}
make %{?_smp_mflags}
%install %install
make install PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=%{buildroot} UDEVRULESDIR=%{_udevrulesdir} make DESTDIR=%{buildroot} install
# Patch image with wrong dimensions - fix rpmlint warning "wrong-icon-size" # Remove libtool config files
mogrify -extent "36x36" -background transparent -gravity "south" %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/qv4l2.png find %{buildroot}%{_libdir} -name '*.la' -exec rm -f {} ';'
mogrify -scale 32x32 -background transparent %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/qv4l2.png
%if 0%{?suse_version} # Not needed (links to plugins in libv4l subdir)
rm %{buildroot}%{_libdir}/{v4l1compat.so,v4l2convert.so}
%if 0%{?suse_version} > 1210
desktop-file-edit --set-name="QV4l2" --set-generic-name="V4L2 Test Utility" \
--add-category=Qt --add-category=Video --add-category=TV %{buildroot}%{_datadir}/applications/qv4l2.desktop
%else
%suse_update_desktop_file -N "QV4l2" -G "V4L2 Test Utility" -r qv4l2 Qt AudioVideo Video TV %suse_update_desktop_file -N "QV4l2" -G "V4L2 Test Utility" -r qv4l2 Qt AudioVideo Video TV
%endif %endif
%post -n libv4l1-0 -p /sbin/ldconfig %post -n libv4l1-%{so_ver} -p /sbin/ldconfig
%postun -n libv4l1-0 -p /sbin/ldconfig %postun -n libv4l1-%{so_ver} -p /sbin/ldconfig
%post -n libv4l2-0 -p /sbin/ldconfig %post -n libv4l2-%{so_ver} -p /sbin/ldconfig
%postun -n libv4l2-0 -p /sbin/ldconfig %postun -n libv4l2-%{so_ver} -p /sbin/ldconfig
%post -n libv4lconvert0 -p /sbin/ldconfig %post -n libv4l2rds%{so_ver} -p /sbin/ldconfig
%postun -n libv4lconvert0 -p /sbin/ldconfig %postun -n libv4l2rds%{so_ver} -p /sbin/ldconfig
%post -n libv4lconvert%{so_ver} -p /sbin/ldconfig
%postun -n libv4lconvert%{so_ver} -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING ChangeLog README TODO %doc COPYING ChangeLog README TODO
%dir %{_sysconfdir}/rc_keymaps %dir %{_sysconfdir}/rc_keymaps/
%config(noreplace) %{_sysconfdir}/rc_keymaps/*
%config(noreplace) %{_sysconfdir}/rc_maps.cfg %config(noreplace) %{_sysconfdir}/rc_maps.cfg
%{_udevrulesdir}/70-infrared.rules %{_udevdir}/rc_keymaps/
%if 0%{?suse_version} <= 1310
%dir %{_udevdir}/rules.d/
%endif
%{_udevdir}/rules.d/70-infrared.rules
%{_bindir}/cx18-ctl %{_bindir}/cx18-ctl
%{_bindir}/dvb-* %{_bindir}/dvb-*
%{_bindir}/dvbv5-* %{_bindir}/dvbv5-*
%{_bindir}/ir-keytable %{_bindir}/ir-keytable
%{_bindir}/ivtv-ctl %{_bindir}/ivtv-ctl
%{_bindir}/rds-ctl
%{_bindir}/v4l2-ctl %{_bindir}/v4l2-ctl
%{_bindir}/v4l2-sysfs-path %{_bindir}/v4l2-sysfs-path
%{_mandir}/man1/ir-keytable.1%{ext_man} %{_mandir}/man1/ir-keytable.1%{ext_man}
@ -196,20 +207,24 @@ mogrify -scale 32x32 -background transparent %{buildroot}%{_datadir}/icons/hicol
%files -n libv4l %files -n libv4l
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING.LIB ChangeLog README README.lib TODO %doc COPYING.libv4l ChangeLog README README.libv4l TODO
%{_libdir}/libv4l/ %{_libdir}/libv4l/
%files -n libv4l1-0 %files -n libv4l1-%{so_ver}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libv4l1.so.* %{_libdir}/libv4l1.so.%{so_ver}*
%files -n libv4l2-0 %files -n libv4l2-%{so_ver}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libv4l2.so.* %{_libdir}/libv4l2.so.%{so_ver}*
%files -n libv4lconvert0 %files -n libv4l2rds%{so_ver}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libv4lconvert.so.* %{_libdir}/libv4l2rds.so.%{so_ver}*
%files -n libv4lconvert%{so_ver}
%defattr(-,root,root,-)
%{_libdir}/libv4lconvert.so.%{so_ver}*
%files -n libv4l-devel %files -n libv4l-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)