commit 8ab0eecc4134e3981e08d3fcaddfbd38180c0c42e63cfe63e4f2ef953ecbd75f Author: Marcus Meissner Date: Thu Dec 6 13:54:35 2018 +0000 Accepting request 655633 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/655633 OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..7770590 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + git://linuxtv.org/libcamera + master + 87ba17ba41f2c540efe9ecd46379477282852642 + 0~@TAG_OFFSET@.%h + + + *.tar + xz + + + diff --git a/libcamera-0~14.b99da21.tar.xz b/libcamera-0~14.b99da21.tar.xz new file mode 100644 index 0000000..fb64bb6 --- /dev/null +++ b/libcamera-0~14.b99da21.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48c427270449303cc1e411872363a5bf63e924fa8b844a750298c116b2d922cd +size 23364 diff --git a/libcamera.changes b/libcamera.changes new file mode 100644 index 0000000..ba9833e --- /dev/null +++ b/libcamera.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Dec 6 09:35:42 UTC 2018 - Jan Engelhardt + +- Initial package for build.opensuse.org +- Add vers.diff diff --git a/libcamera.spec b/libcamera.spec new file mode 100644 index 0000000..84a0bb3 --- /dev/null +++ b/libcamera.spec @@ -0,0 +1,91 @@ +# +# spec file for package libcamera +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libcamera +%define lname libcamera-suse0 +Version: 0~14.b99da21 +Release: 0 +Summary: A complex camera support library in C++ +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://git.linuxtv.org/libcamera.git/ +Source: %name-%version.tar.xz +Patch1: vers.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: c++_compiler +BuildRequires: meson >= 0.40 +BuildRequires: xz + +%description +libcamera is an experimental camera user-space API. + +A camera may consist of multiple sensors or function blocks, and can +expose multiple kernel device nodes in /dev for different stages of +the pipeline. The libcamera API groups and exposes these pieces as +what users consider one "camera". + +%package -n %lname +Summary: A complex camera support library in C++ +Group: System/Libraries + +%description -n %lname +libcamera is an experimental camera user-space API. + +A camera may consist of multiple sensors or function blocks, and can +expose multiple kernel device nodes in /dev for different stages of +the pipeline. The libcamera API groups and exposes these pieces as +what users consider one "camera". + +%package devel +Summary: Development for libcamera, a camera support library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libcamera is an experimental camera user-space API. + +This subpackage contains the header files. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +#%%make_install +b="%buildroot" +mkdir -p "$b/%_includedir/libcamera" "$b/%_libdir" +cp -a include/libcamera/*.h "$b/%_includedir/libcamera/" +cp -a build/lib/libcamera.so "$b/%_libdir/libcamera.so.suse0" +ln -s libcamera.so.suse0 "$b/%_libdir/libcamera.so" + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%defattr(-,root,root) +%_libdir/libcamera*.so.* + +%files devel +%defattr(-,root,root) +%_includedir/libcamera/ +%_libdir/libcamera.so + +%changelog diff --git a/vers.diff b/vers.diff new file mode 100644 index 0000000..9f042f0 --- /dev/null +++ b/vers.diff @@ -0,0 +1,18 @@ +From: Jan Engelhardt +Date: 2018-12-06 12:28:42.992186963 +0100 + +Unversioned libraries suck! +--- + lib/meson.build | 1 + + 1 file changed, 1 insertion(+) + +Index: libcamera-0~14.b99da21/lib/meson.build +=================================================================== +--- libcamera-0~14.b99da21.orig/lib/meson.build ++++ libcamera-0~14.b99da21/lib/meson.build +@@ -3,4 +3,5 @@ sources = ['main.cpp'] + libcamera = shared_library('camera', + sources, + install : true, ++ soversion : 'suse0', + include_directories : inc)