forked from pool/libcamera
Use meson_install (by plater)
OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=3
This commit is contained in:
parent
1e45003c76
commit
89bf3d723a
@ -29,6 +29,7 @@ Patch1: vers.diff
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: c++_compiler
|
BuildRequires: c++_compiler
|
||||||
BuildRequires: meson >= 0.40
|
BuildRequires: meson >= 0.40
|
||||||
|
BuildRequires: pkg-config
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -69,12 +70,7 @@ This subpackage contains the header files.
|
|||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#%%make_install
|
%meson_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
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
@ -88,5 +84,6 @@ ln -s libcamera.so.suse0 "$b/%_libdir/libcamera.so"
|
|||||||
%license licenses/*gpl*
|
%license licenses/*gpl*
|
||||||
%_includedir/libcamera/
|
%_includedir/libcamera/
|
||||||
%_libdir/libcamera.so
|
%_libdir/libcamera.so
|
||||||
|
%_libdir/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user